.ai-mini-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid #d7e3ea;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ai-mini-toggle:hover,
.ai-mini-toggle:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
    outline: none;
}

.ai-mini-toggle.active {
    border-color: #0f766e;
    background: #ecfdf5;
    color: #0f766e;
}

.ai-mini-label {
    color: #10202b;
}

.hero {
    margin: -16px -16px 24px;
    padding: 30px 24px 28px;
    border: 1px solid #d7e3ea;
    border-radius: 10px;
    background: #f7fafc;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    margin: 0 0 10px;
    color: #10202b;
    font-size: 2rem;
    line-height: 1.2;
    text-align: center;
}

.hero-subtitle {
    max-width: 620px;
    margin: 0 auto;
    color: #475569;
    font-size: 1rem;
    line-height: 1.55;
    text-align: center;
}

.ai-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.ai-pulse.active {
    background: #16a34a;
}

.ai-pulse.inactive {
    background: #dc2626;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 24px 0;
}

.staff-home-orders-panel {
    margin: 10px 0 24px;
    padding: 18px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.staff-home-orders-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.staff-home-orders-kicker {
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.staff-home-orders-header h2 {
    margin: 3px 0 0;
    color: #10202b;
    font-size: 1.35rem;
    line-height: 1.2;
}

.staff-home-orders-link {
    flex: 0 0 auto;
    border-radius: 8px;
    background: #0f766e;
    color: #ffffff;
    font-weight: 800;
    padding: 10px 14px;
    text-decoration: none;
}

.staff-home-orders-link:hover,
.staff-home-orders-link:focus {
    background: #115e59;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
}

.staff-home-order-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.staff-home-order-counts span {
    border-radius: 999px;
    background: #ecfdf5;
    color: #0f766e;
    font-size: 0.88rem;
    font-weight: 800;
    padding: 6px 10px;
}

.staff-home-order-list {
    display: grid;
    gap: 12px;
}

.staff-home-order-card {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
    gap: 14px;
    padding: 14px;
    border: 1px solid #94a3b8;
    border-radius: 8px;
    background: #ffffff;
}

.staff-home-order-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.86rem;
}

.staff-home-order-status {
    border-radius: 999px;
    background: #dcfce7;
    color: #047857;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    padding: 4px 9px;
    text-transform: uppercase;
}

.staff-home-order-main h3 {
    margin: 10px 0 4px;
    color: #10202b;
    font-size: 1.1rem;
    line-height: 1.2;
}

.staff-home-order-main p {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
}

.staff-home-order-items {
    border-radius: 8px;
    background: #f1f5f9;
    padding: 10px 12px;
}

.staff-home-order-items span {
    display: block;
    margin-bottom: 7px;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.staff-home-order-items ul {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.staff-home-order-items li {
    color: #10202b;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.35;
}

.staff-home-orders-empty {
    margin: 0;
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #64748b;
    text-align: center;
}

.active-assessment-panel {
    margin: 6px 0 24px;
    padding: 16px;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    background: #f8fcff;
}

.active-assessment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.active-assessment-kicker {
    color: #0369a1;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.active-assessment-header h2 {
    margin: 2px 0 0;
    color: #082f49;
    font-size: 1.25rem;
    line-height: 1.2;
}

.active-assessment-status {
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 5px 10px;
}

.latest-token-link {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    background: #ffffff;
    color: #0c4a6e;
    text-decoration: none;
}

.latest-token-link:hover,
.latest-token-link:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
    transform: translateY(-1px);
}

.latest-token-icon {
    color: #0369a1;
}

.latest-token-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.latest-token-label {
    color: #0369a1;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.latest-token-copy strong {
    color: #082f49;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 1.05rem;
}

.latest-token-copy small {
    color: #475569;
    line-height: 1.35;
}

.appointment-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.appointment-tab {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 94px;
    padding: 16px;
    border: 1px solid #d7e3ea;
    border-radius: 8px;
    background: #ffffff;
    color: #10202b;
    text-decoration: none;
}

.ui-icon {
    display: block;
    width: 100%;
    height: 100%;
}

.tab-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.07), 0 5px 12px rgba(15, 23, 42, 0.06);
    transition: transform 0.16s ease, box-shadow 0.2s ease;
}

.appointment-tab:hover .tab-icon,
.appointment-tab:focus .tab-icon {
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.1), 0 8px 16px rgba(15, 23, 42, 0.1);
}

.btn-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.appointment-tab:hover,
.appointment-tab:focus {
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
    transform: translateY(-1px);
}

.appointment-tab strong,
.appointment-tab small {
    display: block;
    text-align: left;
}

.appointment-tab strong {
    font-size: 1rem;
    margin-bottom: 4px;
}

.appointment-tab small {
    color: #64748b;
    line-height: 1.35;
}

.appointment-tab-new {
    order: 2;
    border-color: #16a34a;
    background: #f0fdf4;
    color: #14532d;
}

.appointment-tab-new:hover,
.appointment-tab-new:focus {
    border-color: #15803d;
}

.appointment-tab-followup {
    order: 3;
    border-color: #f59e0b;
    background: #fffbeb;
    color: #713f12;
}

.appointment-tab-followup:hover,
.appointment-tab-followup:focus {
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}

.appointment-tab-hospital {
    order: 1;
    border-color: #7dd3fc;
    background: #f0f9ff;
    color: #0c4a6e;
}

.appointment-tab-hospital:hover,
.appointment-tab-hospital:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14);
}

.appointment-tab-emergency {
    order: 4;
    border-color: #fca5a5;
    background: #fef2f2;
    color: #7f1d1d;
}

.appointment-tab-emergency:hover,
.appointment-tab-emergency:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
}

.guest-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.guest-actions-hero {
    max-width: 480px;
    margin: 26px auto 0;
    gap: 16px;
}

.btn-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 132px;
    padding: 22px 18px;
    border-radius: 18px;
    text-align: center;
    text-decoration: none;
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    transition: transform 0.16s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.btn-hero .btn-hero-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 2px;
}

.btn-hero small {
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.82;
}

.btn-hero-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    box-shadow: 0 14px 30px rgba(15, 118, 110, 0.28);
}

.btn-hero-primary:hover,
.btn-hero-primary:focus {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(15, 118, 110, 0.36);
    outline: none;
}

.btn-hero-outline {
    color: #0f766e;
    background: #ffffff;
    border: 2px solid #99f6e4;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.btn-hero-outline:hover,
.btn-hero-outline:focus {
    transform: translateY(-3px);
    border-color: #0f766e;
    background: #f0fdfa;
    box-shadow: 0 16px 32px rgba(15, 118, 110, 0.16);
    outline: none;
}

.btn-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 13px 18px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.btn-primary-large {
    background: #0f766e;
    color: white;
}

.btn-primary-large:hover,
.btn-primary-large:focus {
    background: #115e59;
}

.btn-light-large {
    background: #f8fafc;
    color: #0f766e;
    border: 1px solid #99f6e4;
}

.btn-light-large:hover,
.btn-light-large:focus {
    background: #ecfdf5;
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.btn-secondary-large {
    background: #ffffff;
    color: #0f766e;
    border: 1px solid #0f766e;
}

.btn-secondary-large:hover,
.btn-secondary-large:focus {
    background: #ecfdf5;
}

.disclaimer {
    padding: 8px 12px;
    border: 1px solid #fde68a;
    border-radius: 8px;
    background: #fffbeb;
    margin-top: 20px;
}

.home-disclaimer {
    max-width: 760px;
    margin: 28px auto 0;
}

.disclaimer h4 {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 3px;
    color: #854d0e;
    font-size: 0.74rem;
    line-height: 1.2;
}

.disclaimer .section-title-icon {
    width: 13px;
    height: 13px;
}

.disclaimer .section-title-icon-warning::after {
    width: 2px;
    height: 5px;
    left: 7px;
    top: 4px;
    box-shadow: 0 7px 0 currentColor;
}

.disclaimer p {
    color: #854d0e;
    font-size: 0.7rem;
    line-height: 1.4;
    margin: 0;
}

.action-icon,
.section-title-icon {
    width: 22px;
    height: 22px;
    display: inline-block;
    position: relative;
    flex: 0 0 auto;
    color: currentColor;
}

.action-icon::before,
.action-icon::after,
.section-title-icon::before,
.section-title-icon::after {
    content: '';
    position: absolute;
    background: currentColor;
}

.action-icon-dashboard::before,
.action-icon-history::before,
.action-icon-register::before,
.action-icon-login::before,
.action-icon-follow-up::before {
    inset: 3px 4px;
    border: 2px solid currentColor;
    border-radius: 4px;
    background: transparent;
}

.action-icon-dashboard::after {
    width: 10px;
    height: 2px;
    left: 6px;
    top: 10px;
    box-shadow: 0 4px 0 currentColor;
}

.action-icon-assessment::before {
    width: 16px;
    height: 16px;
    left: 1px;
    top: 1px;
    border: 2px solid currentColor;
    border-radius: 50%;
    background: transparent;
}

.action-icon-assessment::after {
    width: 8px;
    height: 2px;
    left: 13px;
    top: 16px;
    transform: rotate(45deg);
}

.action-icon-history::after {
    width: 10px;
    height: 2px;
    left: 6px;
    top: 8px;
    box-shadow: 0 4px 0 currentColor, 0 8px 0 currentColor;
}

.action-icon-follow-up::after {
    width: 8px;
    height: 8px;
    right: 2px;
    bottom: 2px;
    border: 2px solid currentColor;
    border-left-color: transparent;
    border-radius: 50%;
    background: transparent;
}

.action-icon-emergency::before {
    width: 18px;
    height: 18px;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    background: #dc2626;
}

.action-icon-emergency::after {
    width: 12px;
    height: 3px;
    left: 5px;
    top: 10px;
    background: #ffffff;
}

.action-icon-hospital::before {
    inset: 3px 4px;
    border: 2px solid currentColor;
    border-radius: 3px;
    background: transparent;
}

.action-icon-hospital::after {
    width: 12px;
    height: 2px;
    left: 5px;
    top: 10px;
    background: currentColor;
    box-shadow: 0 0 0 currentColor, 5px 0 0 currentColor;
}

.action-icon-register::after {
    width: 8px;
    height: 8px;
    border: 2px solid currentColor;
    border-left: 0;
    border-bottom: 0;
    background: transparent;
    right: 3px;
    top: 3px;
}

.action-icon-login::before {
    top: 9px;
}

.action-icon-login::after {
    width: 6px;
    height: 6px;
    border: 2px solid currentColor;
    border-left: 0;
    border-bottom: 0;
    right: 4px;
    top: 8px;
    transform: rotate(45deg);
    background: transparent;
}

.section-title-icon-record {
    color: #0369a1;
}

.section-title-icon-record::before {
    inset: 2px 4px;
    border: 2px solid currentColor;
    border-radius: 3px;
    background: transparent;
}

.section-title-icon-record::after {
    width: 8px;
    height: 2px;
    left: 6px;
    top: 8px;
    box-shadow: 0 4px 0 currentColor;
}

.section-title-icon-warning {
    color: #854d0e;
}

.section-title-icon-warning::before {
    inset: 2px;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    background: currentColor;
    opacity: 0.18;
}

.section-title-icon-warning::after {
    width: 2px;
    height: 8px;
    left: 9px;
    top: 6px;
    background: currentColor;
    box-shadow: 0 10px 0 currentColor;
}

@media (max-width: 768px) {
    .hero {
        margin: 0 0 20px;
        padding: 24px 14px;
    }

    .hero-title {
        max-width: 290px;
        margin-right: auto;
        margin-left: auto;
        font-size: 1.45rem;
    }

    .appointment-tabs,
    .guest-actions {
        grid-template-columns: 1fr;
    }

    .staff-home-order-card {
        grid-template-columns: 1fr;
    }

    .staff-home-orders-header {
        align-items: stretch;
        flex-direction: column;
    }

    .staff-home-orders-link {
        text-align: center;
    }

    .guest-actions-hero {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .navbar {
        column-gap: 6px;
    }

    .navbar .navbar-brand {
        gap: 7px;
        font-size: 1.02rem;
    }

    .navbar .brand-logo {
        --brand-logo-clock-size: 42px;
        --brand-logo-lock-height: 21px;
        width: 66px;
        height: 70px;
    }

    .navbar .ai-mini-toggle {
        gap: 4px;
        padding: 7px 9px;
    }
}

@media (max-width: 350px) {
    .navbar .ai-mini-toggle {
        width: 34px;
        min-width: 34px;
        padding: 0;
    }

    .navbar .ai-mini-label,
    .navbar .ai-mini-toggle #ai-text {
        display: none;
    }
}
