:root {
    --navy-950: #081423;
    --navy-900: #0d1d30;
    --navy-800: #142a43;
    --gold: #c6a15b;
    --gold-dark: #9b7839;
    --cream: #f6f3ec;
    --ink: #172231;
    --muted: #6f7884;
    --line: #dfe3e7;
    --white: #fff;
    --danger: #a43d3d;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: var(--cream);
    font-family: "DM Sans", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
a { color: inherit; }

.login-shell {
    display: grid;
    grid-template-columns: minmax(360px, 45%) 1fr;
    min-height: 100vh;
}

.brand-panel {
    position: relative;
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    flex-direction: column;
    justify-content: center;
    padding: 64px clamp(40px, 6vw, 96px);
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(198, 161, 91, .08), transparent 45%),
        radial-gradient(circle at 15% 90%, rgba(198, 161, 91, .14), transparent 31%),
        var(--navy-950);
}

.brand-panel::before,
.brand-panel::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(198, 161, 91, .12);
    transform: rotate(45deg);
}

.brand-panel::before { width: 360px; height: 360px; right: -215px; top: -150px; }
.brand-panel::after { width: 240px; height: 240px; left: -150px; bottom: -85px; }

.brand-panel__glow {
    position: absolute;
    inset: 0;
    opacity: .45;
    background-image: radial-gradient(rgba(255,255,255,.14) .7px, transparent .7px);
    background-size: 18px 18px;
    mask-image: linear-gradient(to bottom, black, transparent 76%);
}

.brand-panel__content { position: relative; z-index: 1; max-width: 510px; }

.brand-mark {
    display: block;
    width: clamp(150px, 16vw, 210px);
    height: clamp(150px, 16vw, 210px);
    margin: 0 auto 42px;
    border: 2px solid rgba(198, 161, 91, .55);
    border-radius: 50%;
    filter: sepia(.25) contrast(.92);
    box-shadow: 0 24px 65px rgba(0, 0, 0, .38);
}

.eyebrow {
    margin: 0 0 12px;
    color: rgba(255,255,255,.66);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.brand-panel h1,
.form-heading h2 { margin: 0; font-family: "Manrope", sans-serif; }
.brand-panel h1 { font-size: clamp(38px, 4.3vw, 62px); line-height: 1.08; letter-spacing: -.04em; }
.brand-copy { max-width: 460px; margin: 24px 0 0; color: rgba(255,255,255,.68); font-size: 18px; line-height: 1.65; }
.brand-panel__footer { position: absolute; bottom: 40px; left: clamp(40px, 6vw, 96px); z-index: 1; margin: 0; color: rgba(255,255,255,.38); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

.form-panel {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 60px clamp(28px, 7vw, 110px) 80px;
    background: #fbfaf7;
}

.form-card { width: 100%; max-width: 440px; }
.mobile-brand { display: none; }
.welcome-icon { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; margin-bottom: 24px; color: var(--gold-dark); border: 1px solid rgba(198,161,91,.4); border-radius: 50%; background: rgba(198,161,91,.08); }
.eyebrow--gold { color: var(--gold-dark); }
.form-heading h2 { color: var(--navy-900); font-size: clamp(30px, 3vw, 40px); letter-spacing: -.04em; }
.form-heading > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 16px; }

.alert { display: flex; align-items: center; gap: 10px; margin: 24px 0 -8px; padding: 12px 14px; color: var(--danger); border: 1px solid #edcdcd; border-radius: 10px; background: #fff5f5; font-size: 14px; }
.alert span { display: inline-flex; flex: 0 0 20px; height: 20px; align-items: center; justify-content: center; border: 1px solid currentColor; border-radius: 50%; font-weight: 700; }

.login-form { margin-top: 38px; }
.login-form label { display: block; margin-bottom: 9px; color: #303a46; font-size: 14px; font-weight: 600; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 23px; }
.label-row label { margin-bottom: 9px; }
.label-row a, .help-text a { color: var(--gold-dark); font-size: 13px; font-weight: 600; text-decoration: none; }
.label-row a:hover, .help-text a:hover { text-decoration: underline; }

.input-wrap { position: relative; }
.input-wrap > svg { position: absolute; top: 50%; left: 16px; width: 19px; transform: translateY(-50%); stroke: #89919a; stroke-width: 1.6; pointer-events: none; }
.input-wrap input { width: 100%; height: 54px; padding: 0 48px; color: var(--ink); outline: none; border: 1px solid var(--line); border-radius: 10px; background: var(--white); transition: border-color .2s, box-shadow .2s; }
.input-wrap input::placeholder { color: #a5abb2; }
.input-wrap input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(198,161,91,.12); }

.password-toggle { position: absolute; top: 50%; right: 11px; display: grid; width: 36px; height: 36px; padding: 8px; transform: translateY(-50%); cursor: pointer; color: #7f8790; border: 0; border-radius: 7px; background: transparent; place-items: center; }
.password-toggle:hover { background: #f3f1ec; }
.password-toggle svg { grid-area: 1/1; width: 20px; stroke: currentColor; stroke-width: 1.6; }
.password-toggle .eye-closed, .password-toggle.is-visible .eye-open { display: none; }
.password-toggle.is-visible .eye-closed { display: block; }

.submit-button { display: flex; width: 100%; height: 56px; align-items: center; justify-content: center; gap: 12px; margin-top: 30px; cursor: pointer; color: var(--white); border: 0; border-radius: 10px; background: var(--navy-900); box-shadow: 0 10px 24px rgba(13,29,48,.16); font-weight: 700; transition: transform .2s, background .2s, box-shadow .2s; }
.submit-button svg { width: 19px; stroke: currentColor; stroke-width: 1.8; transition: transform .2s; }
.submit-button:hover { background: var(--navy-800); box-shadow: 0 14px 28px rgba(13,29,48,.2); transform: translateY(-1px); }
.submit-button:hover svg { transform: translateX(3px); }
.submit-button:active { transform: translateY(0); }
.help-text { margin: 28px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.copyright { position: absolute; bottom: 28px; margin: 0; color: #9a9fa5; font-size: 11px; }

.dashboard { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: var(--cream); }
.dashboard-card { width: min(560px, 100%); padding: 48px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 18px 50px rgba(13,29,48,.08); text-align: center; }
.dashboard-card img { width: 90px; height: 90px; border-radius: 50%; }
.dashboard-card h1 { margin: 22px 0 8px; color: var(--navy-900); font-family: "Manrope", sans-serif; }
.dashboard-card p { margin: 0 0 28px; color: var(--muted); }
.logout-link { display: inline-block; padding: 12px 22px; cursor: pointer; color: white; border: 0; border-radius: 8px; background: var(--navy-900); text-decoration: none; font-weight: 600; }

@media (max-width: 820px) {
    .login-shell { display: block; }
    .brand-panel { display: none; }
    .form-panel { min-height: 100vh; padding: 32px 24px 64px; }
    .mobile-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 52px; color: var(--navy-900); font-family: "Manrope", sans-serif; font-weight: 700; }
    .mobile-brand img { width: 48px; height: 48px; border: 1px solid rgba(198,161,91,.5); border-radius: 50%; }
    .copyright { bottom: 20px; }
}

@media (max-width: 420px) {
    .form-panel { align-items: flex-start; }
    .mobile-brand { margin-bottom: 38px; }
    .welcome-icon { display: none; }
    .login-form { margin-top: 30px; }
    .label-row { align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Dashboard */
.dashboard-page { min-height: 100vh; background: #f4f3ef; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 10; display: flex; width: 252px; flex-direction: column; padding: 28px 18px 20px; color: white; background: var(--navy-950); }
.sidebar__brand { display: flex; align-items: center; gap: 13px; padding: 0 8px 27px; color: white; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.09); }
.sidebar__brand img { width: 48px; height: 48px; flex: 0 0 auto; border: 1px solid rgba(198,161,91,.55); border-radius: 50%; }
.sidebar__brand span, .sidebar__user > span { display: flex; min-width: 0; flex-direction: column; }
.sidebar__brand strong { font-family: "Manrope", sans-serif; font-size: 15px; }
.sidebar__brand small { margin-top: 3px; color: rgba(255,255,255,.5); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.sidebar__nav { margin-top: 28px; }
.sidebar__nav a { display: flex; align-items: center; gap: 12px; padding: 13px 14px; color: rgba(255,255,255,.64); border-radius: 9px; text-decoration: none; font-size: 14px; font-weight: 600; }
.sidebar__nav a.is-active { color: white; background: rgba(198,161,91,.14); box-shadow: inset 3px 0 var(--gold); }
.sidebar__nav svg { width: 20px; stroke: currentColor; stroke-width: 1.6; }
.sidebar__user { display: grid; grid-template-columns: 38px minmax(0, 1fr) 32px; align-items: center; gap: 10px; margin-top: auto; padding: 16px 7px 0; border-top: 1px solid rgba(255,255,255,.09); }
.user-avatar { display: grid !important; width: 38px; height: 38px; color: var(--navy-950); border-radius: 50%; background: var(--gold); font-weight: 700; place-items: center; }
.sidebar__user strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__user small { margin-top: 3px; color: rgba(255,255,255,.46); font-size: 10px; }
.sidebar__user form { margin: 0; }
.sidebar__user button { display: grid; width: 32px; height: 32px; padding: 6px; cursor: pointer; color: rgba(255,255,255,.55); border: 0; border-radius: 7px; background: transparent; place-items: center; }
.sidebar__user button:hover { color: white; background: rgba(255,255,255,.08); }
.sidebar__user svg { width: 18px; stroke: currentColor; stroke-width: 1.7; }

.dashboard-main { min-height: 100vh; margin-left: 252px; padding: 42px clamp(28px, 4vw, 64px) 70px; }
.dashboard-header { display: flex; max-width: 1320px; align-items: flex-start; justify-content: space-between; margin: 0 auto 30px; }
.dashboard-header h1 { margin: 0; color: var(--navy-900); font-family: "Manrope", sans-serif; font-size: 34px; letter-spacing: -.035em; }
.dashboard-header > div > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.today-label { padding: 9px 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.65); font-size: 12px; font-weight: 600; }
.dashboard-alert { max-width: 1320px; margin: 0 auto 20px; padding: 13px 16px; border: 1px solid; border-radius: 9px; font-size: 14px; }
.dashboard-alert--success { color: #346b4c; border-color: #bbdbc7; background: #edf8f1; }
.dashboard-alert--warning { color: #7b5b20; border-color: #e7d3a8; background: #fff9eb; }
.dashboard-alert--error { color: var(--danger); border-color: #edcdcd; background: #fff5f5; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, .78fr); max-width: 1320px; align-items: start; gap: 25px; margin: auto; }
.panel { border: 1px solid #e2e2de; border-radius: 14px; background: white; box-shadow: 0 9px 30px rgba(13,29,48,.045); }
.order-form-panel { padding: 30px; }
.panel-heading { display: flex; min-height: 57px; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 23px; border-bottom: 1px solid #ecece8; }
.panel-kicker { display: block; margin-bottom: 6px; color: var(--gold-dark); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.panel-heading h2, .calendar-header h2, .previous-orders h2 { margin: 0; color: var(--navy-900); font-family: "Manrope", sans-serif; }
.panel-heading h2 { font-size: 20px; }
.secondary-button { padding: 8px 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 7px; text-decoration: none; font-size: 12px; font-weight: 600; }
.secondary-button:hover { color: var(--navy-900); border-color: #bdc2c8; }
.order-form { padding-top: 25px; }
.order-form label:not(.send-option) { color: #35404c; font-size: 13px; font-weight: 600; }
.order-fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
.order-fields-grid label { display: block; margin-bottom: 9px; }
.date-input-wrap { position: relative; width: 100%; }
.date-input-wrap svg { position: absolute; top: 50%; left: 14px; width: 18px; transform: translateY(-50%); stroke: #89919a; stroke-width: 1.6; pointer-events: none; }
.date-input-wrap input { width: 100%; height: 48px; padding: 0 13px 0 43px; color: var(--ink); outline: 0; border: 1px solid var(--line); border-radius: 9px; background: white; }
.date-input-wrap input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198,161,91,.11); }
.select-wrap { position: relative; }
.select-wrap select { width: 100%; height: 48px; padding: 0 41px 0 14px; color: var(--ink); outline: 0; border: 1px solid var(--line); border-radius: 9px; background: white; appearance: none; }
.select-wrap select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198,161,91,.11); }
.select-wrap svg { position: absolute; top: 50%; right: 14px; width: 17px; transform: translateY(-50%); fill: none; stroke: #7f8790; stroke-width: 1.8; pointer-events: none; }
.attire-fieldset { margin: 0 0 24px; padding: 0; border: 0; }
.attire-fieldset legend { margin-bottom: 9px; color: #35404c; font-size: 13px; font-weight: 600; }
.attire-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.attire-options label { cursor: pointer; }
.attire-options input { position: absolute; opacity: 0; pointer-events: none; }
.attire-options label > span { display: flex; height: 46px; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; background: white; font-weight: 500; transition: border-color .2s, background .2s; }
.attire-options i { display: block; width: 16px; height: 16px; border: 1px solid #b7bdc3; border-radius: 50%; box-shadow: inset 0 0 0 4px white; background: white; }
.attire-options input:checked + span { color: var(--navy-900); border-color: var(--gold); background: rgba(198,161,91,.07); }
.attire-options input:checked + span i { border-color: var(--gold-dark); background: var(--gold-dark); }
.attire-options input:focus-visible + span { box-shadow: 0 0 0 3px rgba(198,161,91,.13); }
.agenda-items-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 11px; }
.agenda-items-heading > div { display: flex; flex-direction: column; }
.agenda-items-heading label { font-weight: 700 !important; }
.agenda-items-heading small { margin-top: 4px; color: #92989e; font-size: 11px; }
.agenda-items-heading button { display: flex; align-items: center; gap: 6px; padding: 7px 10px; cursor: pointer; color: var(--gold-dark); border: 1px solid rgba(155,120,57,.32); border-radius: 7px; background: rgba(198,161,91,.06); font-size: 11px; font-weight: 700; }
.agenda-items-heading button:hover { background: rgba(198,161,91,.13); }
.agenda-items-heading button span { font-size: 17px; font-weight: 400; line-height: 1; }
.agenda-items { display: grid; gap: 10px; }
.agenda-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) 34px; align-items: center; gap: 9px; }
.agenda-item__number { display: grid; width: 27px; height: 27px; color: var(--navy-900); border-radius: 50%; background: #edece7; font-size: 11px; font-weight: 700; place-items: center; }
.agenda-item textarea { width: 100%; min-height: 62px; padding: 11px 13px; resize: vertical; color: var(--ink); outline: 0; border: 1px solid var(--line); border-radius: 9px; background: white; font: inherit; font-size: 13px; line-height: 1.45; }
.agenda-item textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198,161,91,.1); }
.agenda-item textarea::placeholder { color: #a3a9af; }
.remove-agenda-item { display: grid; width: 32px; height: 32px; padding: 7px; cursor: pointer; color: #a15b5b; border: 0; border-radius: 7px; background: transparent; place-items: center; }
.remove-agenda-item:hover { background: #faeeee; }
.remove-agenda-item svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.rich-editor { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: white; transition: border-color .2s, box-shadow .2s; }
.rich-editor:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198,161,91,.1); }
.editor-toolbar { display: flex; align-items: center; gap: 3px; min-height: 46px; padding: 6px 10px; border-bottom: 1px solid #e8e9e9; background: #fafaf8; }
.editor-toolbar button { display: grid; width: 32px; height: 32px; cursor: pointer; color: #4c5661; border: 0; border-radius: 6px; background: transparent; place-items: center; }
.editor-toolbar button:hover, .editor-toolbar button:focus { color: var(--navy-900); background: #ecebe7; }
.editor-toolbar > span { width: 1px; height: 21px; margin: 0 5px; background: #dddeda; }
.editor-toolbar svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.editor-content { min-height: 255px; max-height: 470px; overflow-y: auto; padding: 18px 19px; outline: 0; color: #2c3743; font-size: 14px; line-height: 1.7; }
.editor-content:empty::before { content: attr(data-placeholder); color: #a3a9af; pointer-events: none; }
.editor-content.has-error { box-shadow: inset 0 0 0 1px var(--danger); }
.editor-content p { margin: 0 0 12px; }
.editor-content ul, .editor-content ol { padding-left: 25px; }
.send-option { display: flex; align-items: flex-start; gap: 11px; margin-top: 21px; cursor: pointer; color: #38434e; font-size: 13px; }
.send-option input { position: absolute; opacity: 0; pointer-events: none; }
.custom-check { display: grid; width: 20px; height: 20px; flex: 0 0 auto; color: white; border: 1px solid #c9cdd1; border-radius: 5px; background: white; place-items: center; }
.custom-check svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; opacity: 0; }
.send-option input:checked + .custom-check { border-color: var(--navy-900); background: var(--navy-900); }
.send-option input:checked + .custom-check svg { opacity: 1; }
.send-option > span:last-child { display: flex; flex-direction: column; }
.send-option small { margin-top: 4px; color: #899099; line-height: 1.4; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 26px; padding-top: 22px; border-top: 1px solid #ecece8; }
.primary-button { display: flex; min-height: 47px; align-items: center; justify-content: center; gap: 9px; padding: 0 19px; cursor: pointer; color: white; border: 0; border-radius: 8px; background: var(--navy-900); box-shadow: 0 7px 17px rgba(13,29,48,.14); font-size: 13px; font-weight: 700; }
.primary-button:hover { background: var(--navy-800); transform: translateY(-1px); }
.primary-button svg { width: 17px; stroke: currentColor; stroke-width: 1.7; }

.dashboard-side { display: grid; gap: 20px; }
.calendar-panel { padding: 23px; }
.calendar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.calendar-header h2 { font-size: 16px; text-transform: capitalize; }
.calendar-header button { display: grid; width: 31px; height: 31px; cursor: pointer; color: #727b85; border: 1px solid var(--line); border-radius: 7px; background: white; font-size: 22px; line-height: 1; place-items: center; }
.calendar-header button:hover { color: var(--navy-900); border-color: #bac0c5; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.calendar-weekdays { margin-bottom: 6px; color: #9a9fa5; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.calendar-weekdays span { padding: 5px 0; }
.calendar-grid { row-gap: 4px; }
.calendar-day { position: relative; display: grid; width: 34px; height: 34px; align-items: center; justify-self: center; color: #4b5560; border-radius: 50%; text-decoration: none; font-size: 12px; }
.calendar-day.is-outside { color: #c8cbce; }
.calendar-day.is-today { box-shadow: inset 0 0 0 1px var(--navy-900); font-weight: 700; }
.calendar-day.has-next-order { color: white; background: var(--gold-dark); font-weight: 700; box-shadow: 0 4px 9px rgba(155,120,57,.2); }
.calendar-day.has-past-order { color: white; background: #b95757; font-weight: 700; box-shadow: 0 4px 9px rgba(169,65,65,.16); }
.calendar-day[href]:hover { transform: translateY(-1px) scale(1.05); }
.calendar-legend { display: flex; gap: 17px; margin-top: 18px; padding-top: 15px; color: #858c94; border-top: 1px solid #eeefec; font-size: 10px; }
.calendar-legend span { display: flex; align-items: center; gap: 6px; }
.calendar-legend i { display: block; width: 7px; height: 7px; border-radius: 50%; }
.legend-next { background: var(--gold-dark); }
.legend-past { background: #b95757; }
.next-order { position: relative; overflow: hidden; padding: 23px; color: white; border-radius: 14px; background: var(--navy-900); box-shadow: 0 12px 28px rgba(13,29,48,.12); }
.next-order::after { position: absolute; top: -55px; right: -48px; width: 145px; height: 145px; content: ""; border: 1px solid rgba(198,161,91,.18); transform: rotate(45deg); }
.next-order .panel-kicker { color: var(--gold); }
.next-order__date { display: flex; align-items: baseline; gap: 10px; margin-top: 15px; }
.next-order__date strong { font-family: "Manrope", sans-serif; font-size: 38px; line-height: 1; }
.next-order__date span { color: rgba(255,255,255,.55); font-size: 13px; }
.next-order__preview { display: -webkit-box; overflow: hidden; margin: 13px 0 17px; color: rgba(255,255,255,.68); font-size: 12px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.next-order > p { margin: 15px 0 0; color: rgba(255,255,255,.65); font-size: 13px; }
.next-order a { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; color: var(--gold); font-size: 11px; font-weight: 700; text-decoration: none; text-transform: uppercase; }
.next-order a span { font-size: 18px; }
.previous-orders { padding: 4px 2px; }
.previous-orders__heading { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 10px; }
.previous-orders h2 { font-size: 14px; }
.previous-orders__heading > span { display: grid; width: 23px; height: 23px; color: #8d5353; border-radius: 50%; background: #f4dddd; font-size: 10px; font-weight: 700; place-items: center; }
.previous-orders > a { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 8px; color: var(--ink); border-bottom: 1px solid #e3e3df; text-decoration: none; }
.past-dot { width: 7px; height: 7px; border-radius: 50%; background: #b95757; }
.previous-orders > a > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.previous-orders > a strong { font-size: 11px; }
.previous-orders > a small { overflow: hidden; margin-top: 3px; color: #8b9198; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.previous-orders > a > span:last-child { color: var(--gold-dark); font-size: 10px; font-weight: 700; }
.attendance-panel { max-width: 1320px; margin: 25px auto 0; padding: 28px 30px; }
.attendance-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid #ecece8; }
.attendance-heading h2 { margin: 0; color: var(--navy-900); font-family: "Manrope", sans-serif; font-size: 19px; }
.attendance-heading > span { padding: 7px 11px; color: var(--muted); border-radius: 20px; background: #f1f1ed; font-size: 11px; font-weight: 600; }
.attendance-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0; }
.attendance-stat { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid #e6e7e4; border-radius: 10px; background: #fcfcfa; }
.attendance-stat > span { display: grid; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; font-weight: 700; place-items: center; }
.attendance-stat > div { display: flex; flex-direction: column; }
.attendance-stat strong { color: var(--navy-900); font-family: "Manrope", sans-serif; font-size: 20px; line-height: 1; }
.attendance-stat small { margin-top: 5px; color: #7f8790; font-size: 10px; }
.attendance-stat--yes > span { color: #34724d; background: #e7f4ec; }
.attendance-stat--no > span { color: #a74949; background: #f8e8e8; }
.attendance-stat--maybe > span { color: #84631f; background: #f8f0dc; }
.attendance-stat--pending > span { color: #6d747c; background: #eceeef; }
.attendance-table-wrap { overflow-x: auto; border: 1px solid #e6e7e4; border-radius: 10px; }
.attendance-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.attendance-table th { padding: 11px 14px; color: #8a9198; background: #f8f8f5; font-size: 9px; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.attendance-table td { padding: 13px 14px; color: #4d5762; border-top: 1px solid #ecece9; }
.attendance-table td:first-child { color: var(--navy-900); font-weight: 600; }
.response-badge { display: inline-block; padding: 5px 8px; border-radius: 14px; font-size: 9px; font-weight: 700; }
.response-badge--comparecerei { color: #34724d; background: #e7f4ec; }
.response-badge--nao_comparecerei { color: #a74949; background: #f8e8e8; }
.response-badge--talvez { color: #84631f; background: #f8f0dc; }
.response-badge--pendente { color: #6d747c; background: #eceeef; }
.attendance-empty { margin: 21px 0 0; color: #8b9299; font-size: 12px; text-align: center; }

/* Confirmação pública de presença */
.confirmation-page { display: grid; min-height: 100vh; padding: 30px 18px; background: var(--cream); place-items: center; }
.confirmation-card { width: min(480px, 100%); padding: 38px; box-sizing: border-box; color: var(--ink); border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 18px 55px rgba(13,29,48,.09); text-align: center; }
.confirmation-card > img { width: 76px; height: 76px; margin-bottom: 23px; border: 1px solid rgba(198,161,91,.5); border-radius: 50%; }
.confirmation-card h1 { margin: 0 0 12px; color: var(--navy-900); font-family: "Manrope", sans-serif; font-size: 26px; }
.confirmation-card > p:not(.eyebrow):not(.confirmation-note) { margin: 0 0 18px; color: var(--muted); line-height: 1.55; }
.confirmation-icon { display: grid; width: 46px; height: 46px; margin: 0 auto 18px; border-radius: 50%; font-size: 22px; font-weight: 700; place-items: center; }
.confirmation-icon--success { color: #34724d; background: #e7f4ec; }
.confirmation-icon--error { color: #a74949; background: #f8e8e8; }
.confirmation-answer { display: inline-block; margin-bottom: 18px; padding: 8px 13px; border-radius: 20px; font-size: 13px; }
.confirmation-answer--comparecerei { color: #34724d; background: #e7f4ec; }
.confirmation-answer--nao_comparecerei { color: #a74949; background: #f8e8e8; }
.confirmation-answer--talvez { color: #84631f; background: #f8f0dc; }
.confirmation-card > small { display: block; color: #888f96; }
.confirmation-session { display: flex; flex-direction: column; margin: 4px 0 22px; padding: 16px; border: 1px solid #e5e6e3; border-radius: 10px; background: #fafaf7; }
.confirmation-session span { color: #999fa5; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.confirmation-session strong { margin-top: 5px; color: var(--navy-900); font-size: 20px; }
.confirmation-session small { margin-top: 3px; color: #7b838b; }
.confirmation-card form button { width: 100%; min-height: 50px; cursor: pointer; color: white; border: 0; border-radius: 9px; background: var(--navy-900); font-weight: 700; }
.confirmation-card form button:hover { background: var(--navy-800); }
.confirmation-note { margin: 15px 0 0; color: #a0a5aa; font-size: 10px; line-height: 1.45; }

@media (max-width: 1120px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-side { grid-template-columns: minmax(320px, 1fr) minmax(280px, .8fr); align-items: start; }
    .previous-orders { grid-column: 1 / -1; }
    .attendance-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .sidebar { position: static; width: 100%; height: auto; flex-direction: row; align-items: center; padding: 12px 16px; }
    .sidebar__brand { padding: 0; border: 0; }
    .sidebar__brand img { width: 40px; height: 40px; }
    .sidebar__brand small, .sidebar__nav, .sidebar__user > span:not(.user-avatar), .user-avatar { display: none !important; }
    .sidebar__user { display: block; margin: 0 0 0 auto; padding: 0; border: 0; }
    .dashboard-main { margin-left: 0; padding: 29px 18px 55px; }
    .dashboard-header h1 { font-size: 28px; }
    .today-label { display: none; }
    .order-form-panel { padding: 22px 18px; }
    .dashboard-side { grid-template-columns: 1fr; }
    .previous-orders { grid-column: auto; }
    .editor-content { min-height: 220px; }
    .attendance-panel { padding: 22px 18px; }
}

@media (max-width: 420px) {
    .panel-heading { display: block; }
    .secondary-button { display: inline-block; margin-top: 14px; }
    .date-input-wrap { width: 100%; }
    .order-fields-grid, .attire-options { grid-template-columns: 1fr; }
    .agenda-items-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
    .agenda-item { grid-template-columns: 25px minmax(0, 1fr) 30px; gap: 6px; }
    .form-actions .primary-button { width: 100%; }
    .calendar-panel { padding: 20px 15px; }
    .attendance-stats { grid-template-columns: 1fr; }
    .attendance-heading { align-items: flex-start; }
    .confirmation-card { padding: 30px 22px; }
}
