* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background: var(--bg-app);
    color: var(--color-text);
    font-family: var(--font-primary);
    height: 100vh;
    overflow: hidden;
    user-select: none;
    font-weight: 500;
}

#app {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

#dashboard {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 16px 0;
    gap: 12px;
    min-height: 0;
}

#main-cols {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    min-height: 0;
}

#left-col,
#mid-col,
#right-col {
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    border-radius: 16px;
}

#right-col {
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    padding-left: 16px;
}

#history-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

#history-panel-header {
    flex-shrink: 0;
    padding: 0 4px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#history-panel-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 8px;
}

/* ============================================================ */
/*  PATIENT BAR                                                  */
/* ============================================================ */
#patient-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 4px 0;
}

#patient-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-primary-dim);
    flex-shrink: 0;
}

#patient-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 0.3px;
}

/* ============================================================ */
/*  UP NEXT CARD (hero)                                         */
/* ============================================================ */
#up-next-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #1e293b 0%, #1a2438 100%);
    border: 1px solid rgba(45, 212, 191, 0.15);
    border-radius: 20px;
    padding: 32px 24px 28px;
    flex-shrink: 0;
}

#up-next-time {
    font-size: 80px;
    font-weight: 900;
    color: var(--color-text);
    letter-spacing: 3px;
    line-height: 1;
}

#up-next-date {
    font-size: 18px;
    color: var(--color-text-dim);
    margin-top: 4px;
    font-weight: 500;
}

#up-next-med-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin: 24px 0 20px;
}

#up-next-img {
    width: 112px;
    height: 112px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

#up-next-med-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

#up-next-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

#up-next-med-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
}

#up-next-eye {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#up-next-btn {
    background: linear-gradient(135deg, var(--color-primary) 0%, #5eead4 100%);
    color: #0a0f1e;
    border: none;
    border-radius: 16px;
    padding: 20px 64px;
    font-size: 24px;
    font-weight: 800;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: var(--transition-fast);
    letter-spacing: 1.5px;
    box-shadow: 0 8px 32px rgba(45, 212, 191, 0.3);
    width: 100%;
    max-width: 420px;
}

#up-next-btn:hover {
    background: linear-gradient(135deg, var(--color-primary-bright) 0%, #5eead4 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(45, 212, 191, 0.45);
}

#up-next-btn:active {
    transform: scale(0.97);
}

/* ============================================================ */
/*  MEDICATION HOURS BOX (left column)                          */
/* ============================================================ */
#dose-hours-box {
    margin-top: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 16px;
}

#dose-hours-header {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

#dose-hours-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dh-hour {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    min-width: 44px;
}

.dh-hour-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text);
}

.dh-dots {
    display: flex;
    gap: 4px;
}

.dh-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-future);
}

.dh-dot.done {
    background: var(--color-done);
}

/* ============================================================ */
/*  SCHEDULE / TASK LIST                                        */
/* ============================================================ */
#schedule-section {
    display: flex;
    flex-direction: column;
}

#schedule-header {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 8px 4px 12px;
}

.schedule-subheader {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 4px 10px;
}

#schedule-coming {
    display: flex;
    flex-direction: column;
}

#schedule-done {
    display: flex;
    flex-direction: column;
    margin-top: 18px;
}

#schedule-done .task-card {
    opacity: 0.75;
}

#task-list-coming,
#task-list-done {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 30px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.task-card:hover {
    background: var(--bg-card-hover);
}

.task-card.focused {
    border-color: var(--color-upcoming);
    box-shadow: 0 0 16px rgba(45, 212, 191, 0.12);
}

.task-card.done {
    border-color: rgba(34, 197, 94, 0.15);
    background: rgba(34, 197, 94, 0.04);
}

/* Status icon */
.task-status {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    transition: var(--transition-fast);
}

.task-status.done {
    background: var(--color-done-bg);
    color: var(--color-done);
}

.task-status.next {
    background: var(--color-upcoming-bg);
    color: var(--color-upcoming);
}

.task-status.pending {
    background: var(--color-future-bg);
    color: var(--color-future);
}

.task-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.task-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.task-time {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-muted);
    min-width: 44px;
    flex-shrink: 0;
}

.task-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.task-med-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
}

.task-med-sub {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-muted);
    line-height: 1.3;
}

/* ============================================================ */
/*  HISTORY PANEL (right column)                                */
/* ============================================================ */
.history-panel-empty {
    padding: 20px;
    text-align: center;
    color: var(--color-text-dim);
    font-size: 14px;
}

.history-panel-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 22px 12px;
    border-radius: 8px;
    margin-bottom: 2px;
    transition: var(--transition-fast);
}

.history-panel-entry:hover {
    background: var(--bg-card-hover);
}

.hp-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 6px;
}

.hp-img-ph {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hp-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.hp-med {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text);
}

.hp-eye {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-dim);
    text-transform: uppercase;
}

.hp-sched {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-dim);
    opacity: 0.8;
    text-align: left;
}

.hp-time-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
    gap: 2px;
}

.hp-time {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text);
    min-width: 44px;
    text-align: left;
    flex-shrink: 0;
}

.hp-by {
    font-size: 15px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    flex-shrink: 0;
}

.hp-by.p {
    background: var(--color-poppy-bg);
    color: var(--color-poppy);
}

.hp-by.g {
    background: var(--color-gonzague-bg);
    color: var(--color-gonzague);
}

/* ============================================================ */
/*  BOTTOM NAV                                                   */
/* ============================================================ */
#bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 100;
}

.nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-family: var(--font-primary);
    cursor: pointer;
    padding: 8px 24px;
    transition: var(--transition-fast);
    position: relative;
}

.nav-tab:hover {
    color: var(--color-text-dim);
}

.nav-tab.active {
    color: var(--color-primary);
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 0 0 3px 3px;
}

.nav-tab-icon {
    font-size: 22px;
    line-height: 1;
}

.nav-tab-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ============================================================ */
/*  OVERLAY SHARED                                              */
/* ============================================================ */
.hidden { display: none !important; }

#splash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-app);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#splash-panel {
    text-align: center;
}

#splash-title {
    font-size: 64px;
    font-weight: 900;
    color: var(--color-primary);
    letter-spacing: 6px;
}

#splash-subtitle {
    font-size: 20px;
    color: var(--color-text-dim);
    margin-top: 12px;
}

#splash-version {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 24px;
}

#log-overlay, #undo-overlay, #clear-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

#log-panel, #undo-panel, #clear-panel {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 28px 32px;
    min-width: 380px;
    max-width: 480px;
}

#log-question {
    font-size: 18px;
    color: var(--color-text);
    margin: 0 0 20px;
    line-height: 1.5;
    font-weight: 600;
    text-align: center;
}

#log-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#log-med-info {
    margin-bottom: 4px;
}

.log-med-info-inner {
    display: flex;
    gap: 14px;
    align-items: center;
}

.log-med-img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: contain;
}

.log-med-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.log-med-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
}

.log-med-eye {
    font-size: 13px;
    color: var(--color-primary);
    text-transform: uppercase;
    font-weight: 600;
}

.log-med-num {
    font-size: 13px;
    color: var(--color-text-dim);
}

.log-med-times {
    display: flex;
    gap: 20px;
    margin-top: 4px;
}

.log-med-time, .log-med-now {
    font-size: 13px;
    color: var(--color-text-dim);
}

.log-time-label {
    color: var(--color-text-muted);
}

#log-choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.log-choice {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.log-choice.focused {
    border-color: var(--color-primary);
    background: var(--color-primary-dim);
}

.log-initial {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.log-choice:nth-child(1) .log-initial {
    background: var(--color-poppy-bg);
    color: var(--color-poppy);
}

.log-choice:nth-child(2) .log-initial {
    background: var(--color-gonzague-bg);
    color: var(--color-gonzague);
}

.log-choice:nth-child(3) .log-initial {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text-dim);
}

#history-overlay, #summary-overlay, #print-overlay, #sync-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

#history-panel, #summary-panel, #print-panel, #sync-panel {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    min-width: 500px;
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

#history-header, #summary-header, #print-header, #sync-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-shrink: 0;
}

#history-header h2, #summary-header h2, #print-header h2, #sync-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

#history-close, #summary-close, #print-close, #sync-close {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-dim);
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

#history-close.focused, #summary-close.focused, #sync-close.focused {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

#history-list {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.history-day-group {
    margin-bottom: 16px;
}

.history-day-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-dim);
    padding: 8px 0 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 4px;
}

.history-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.history-entry.focused {
    background: rgba(45, 212, 191, 0.08);
}

.history-empty {
    text-align: center;
    color: var(--color-text-dim);
    padding: 40px 0;
}

.h-logged {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    min-width: 44px;
}

.h-time {
    font-size: 13px;
    color: var(--color-text-dim);
    min-width: 44px;
}

.h-time-side {
    font-style: italic;
}

.h-med {
    flex: 1;
    font-size: 14px;
    color: var(--color-text);
}

.h-eye, .h-eye-label {
    font-size: 12px;
    color: var(--color-text-dim);
    margin-left: 4px;
}

.h-by-p, .h-by-g {
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}

.h-by-p { background: var(--color-poppy-bg); color: var(--color-poppy); }
.h-by-g { background: var(--color-gonzague-bg); color: var(--color-gonzague); }

#summary-table-container { flex: 1; overflow-y: auto; }

.summary-table {
    width: 100%;
    border-collapse: collapse;
}

.summary-table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-dim);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.summary-table td {
    padding: 10px 12px;
    font-size: 14px;
    color: var(--color-text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.summary-total td {
    font-weight: 700;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-primary);
}

#print-header-right {
    display: flex;
    gap: 8px;
}

.print-action {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-dim);
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.print-action.focused {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

#print-table-container { flex: 1; overflow-y: auto; }

.print-table {
    width: 100%;
    border-collapse: collapse;
}

.print-table th {
    text-align: left;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-dim);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.print-table td {
    padding: 8px 10px;
    font-size: 13px;
    color: var(--color-text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.print-separator td {
    height: 6px;
    padding: 0;
}

.print-pet-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    padding-bottom: 12px;
}

.print-date {
    font-size: 13px;
    color: var(--color-text-dim);
    text-align: right;
}

.print-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    vertical-align: middle;
}

.print-med-name { font-weight: 600; }
.print-dose { color: var(--color-text-dim); }
.print-eye { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.print-eye.both { background: rgba(45, 212, 191, 0.1); color: var(--color-primary); }
.print-eye.left, .print-eye.right { background: rgba(168, 85, 247, 0.1); color: var(--color-pending); }
.print-status { font-size: 12px; font-weight: 600; }
.print-status.done { color: var(--color-primary); }
.print-status.pending { color: var(--color-pending); }

#print-panel {
    max-width: 800px;
}

#undo-panel, #clear-panel {
    text-align: center;
}

#undo-icon, #clear-icon {
    font-size: 36px;
    font-weight: 900;
    color: var(--color-warning);
}

#undo-title, #clear-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin: 8px 0;
}

#undo-msg, #clear-msg {
    font-size: 14px;
    color: var(--color-text-dim);
    margin: 0 0 20px;
}

#undo-choices, #clear-choices {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.undo-choice, .clear-choice {
    padding: 10px 32px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.undo-choice.focused, .clear-choice.focused {
    border-color: var(--color-primary);
    background: var(--color-primary-dim);
}

#sync-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

#sync-info {
    font-size: 14px;
    color: var(--color-text-dim);
}

#sync-choices {
    display: flex;
    gap: 12px;
}

.sync-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 24px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text);
    font-family: var(--font-primary);
    cursor: pointer;
    transition: var(--transition-fast);
    flex: 1;
}

.sync-choice.focused {
    border-color: var(--color-primary);
    background: var(--color-primary-dim);
}

.sync-choice-label {
    font-size: 15px;
    font-weight: 600;
}

.sync-choice-sub {
    font-size: 12px;
    color: var(--color-text-dim);
}

#sync-status {
    font-size: 14px;
    color: var(--color-text-dim);
    text-align: center;
    margin-top: 8px;
}

/* ============================================================ */
/*  SCROLLBAR                                                    */
/* ============================================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ============================================================ */
/*  RESPONSIVE - tablet (collapse columns)                      */
/* ============================================================ */
@media (max-width: 1100px) {
    body {
        height: auto;
        overflow-y: auto;
    }

    #app {
        height: auto;
        max-width: 720px;
    }

    #dashboard {
        padding-bottom: 72px;
    }

    #main-cols {
        grid-template-columns: 1fr;
        overflow: visible;
    }

    #left-col,
    #mid-col,
    #right-col {
        overflow: visible;
        border-radius: 0;
    }

    #right-col {
        border-left: none;
        padding-left: 0;
    }

    #history-panel {
        height: auto;
    }

    #history-panel-header {
        padding: 8px 4px 12px;
    }

    #history-panel-list {
        overflow: visible;
        max-height: none;
        padding-right: 0;
    }
}

/* ============================================================ */
/*  RESPONSIVE - phone                                           */
/* ============================================================ */
@media (max-width: 480px) {
    #dashboard {
        padding: 12px 12px 72px;
        gap: 12px;
    }

    #patient-bar {
        padding: 2px 0;
    }

    #patient-icon {
        width: 40px;
        height: 40px;
    }

    #patient-name {
        font-size: 18px;
    }

    #up-next-card {
        padding: 24px 16px 20px;
    }

    #up-next-time {
        font-size: 56px;
    }

    #up-next-date {
        font-size: 15px;
    }

    #up-next-img {
        width: 80px;
        height: 80px;
    }

    #up-next-med-name {
        font-size: 24px;
    }

    #up-next-eye {
        font-size: 14px;
    }

    #up-next-btn {
        font-size: 20px;
        padding: 16px 40px;
    }

    .task-card {
        padding: 12px 14px;
    }

    .task-med-name {
        font-size: 15px;
    }

    .task-med-sub {
        font-size: 13px;
    }

    #bottom-nav {
        height: 56px;
    }

    .nav-tab {
        padding: 6px 16px;
    }

    .nav-tab-icon {
        font-size: 18px;
    }

    .nav-tab-label {
        font-size: 10px;
    }

    #log-panel, #undo-panel, #clear-panel {
        min-width: unset;
        width: 90%;
        max-width: 380px;
        padding: 20px;
    }

    #history-panel, #summary-panel, #print-panel, #sync-panel {
        min-width: unset;
        width: 90%;
        max-width: unset;
    }
}
