* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: white;
    color: black;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Force portrait dimensions but make it slightly taller to allow scrolling */
    width: 600px;
    height: 850px; 
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto; /* This allows you to swipe the search bar away */
}

/* The strict Grid System + Rotation Magic */
.trmnl-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    
    /* The actual dimensions of your landscape dashboard */
    width: 800px;
    height: 600px;
    
    /* Wait 50px from the top so when you scroll, it perfectly hits the edge */
    margin-top: 50px; 
    
    /* Rotate 90 degrees to force landscape */
    transform: rotate(90deg);
    transform-origin: top left;
    
    /* Shift it back onto the screen after rotation */
    margin-left: 600px; 
    border: 4px solid black; 
}

/* Base Panel Styling */
.panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
}

/* Grid Placements & Inner Borders */
.half-left {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    border-right: 3px solid black;
}

.quadrant-top-right {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    border-bottom: 3px solid black;
}

.quadrant-bottom-right {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

/* TRMNL Typography Framework */
.title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.value {
    font-size: 84px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 4px;
}

.subtitle {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.content {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 10px;
    margin-bottom: 10px;
}

.meta {
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    border-top: 2px solid black;
    padding-top: 12px;
}

/* Status Text Formatting */
.center-text {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #444;
    letter-spacing: 1px;
}