:root {
    --ink: #172033;
    --muted: #64748b;
    --line: #e2e8f0;
    --surface: #ffffff;
    --canvas: #f4f7fb;
    --navy: #172554;
    --navy-soft: #1e3a8a;
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --teal: #0f766e;
    --radius: 18px;
    --shadow: 0 14px 38px rgba(30, 41, 59, .08);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: "Sarabun", "K2D", system-ui, sans-serif; }
a { text-underline-offset: 3px; }

.app-body { display: flex; flex-direction: column; background: var(--canvas); }
.app-main { flex: 1 0 auto; padding-top: 2rem; padding-bottom: 3rem; }
.app-header { background: rgba(23, 37, 84, .97); box-shadow: 0 8px 24px rgba(15, 23, 42, .15); backdrop-filter: blur(12px); }
.app-header .navbar { min-height: 76px; }
.navbar-brand { display: inline-flex; align-items: center; gap: .75rem; color: white; letter-spacing: -.02em; }
.navbar-brand > span:last-child { display: grid; line-height: 1.05; }
.navbar-brand strong { font-family: "K2D", sans-serif; font-size: 1.15rem; }
.navbar-brand small { color: #a5b4fc; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.brand-mark { display: inline-grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 13px; color: white; background: #6366f1; box-shadow: inset 0 1px rgba(255, 255, 255, .24); }
.brand-mark i { font-size: 1.3rem; }
.app-header .nav-link { display: flex; align-items: center; gap: .45rem; color: #cbd5e1; border-radius: 10px; padding: .65rem .8rem !important; font-size: .92rem; transition: .2s ease; }
.app-header .nav-link:hover, .app-header .nav-link.active { color: white; background: rgba(255, 255, 255, .1); }
.app-header .dropdown-menu, .user-menu .dropdown-menu { border: 0; border-radius: 14px; padding: .5rem; box-shadow: var(--shadow); }
.dropdown-item { border-radius: 9px; padding: .6rem .75rem; }
.dropdown-item i { width: 1.45rem; display: inline-block; color: var(--muted); }
.user-menu-button { display: flex; align-items: center; gap: .65rem; padding: .35rem .55rem; color: white; border: 1px solid rgba(255, 255, 255, .14); border-radius: 13px; }
.user-menu-button:hover, .user-menu-button:focus { color: white; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); }
.user-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; color: #312e81; background: #e0e7ff; font-weight: 700; overflow: hidden; }
.user-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.user-copy { display: grid; min-width: 86px; line-height: 1.15; text-align: left; }
.user-copy strong { font-size: .85rem; }
.user-copy small { color: #a5b4fc; font-size: .7rem; }

.app-footer { padding: 1.15rem 0; color: #64748b; background: white; border-top: 1px solid var(--line); font-size: .84rem; }
.app-footer i { color: var(--primary); }
.flash-stack { position: relative; z-index: 3; }
.alert { border: 0; border-radius: 14px; box-shadow: 0 8px 24px rgba(30, 41, 59, .06); }
.alert > i { margin-right: .4rem; }

.card { border: 1px solid rgba(226, 232, 240, .85) !important; border-radius: var(--radius) !important; box-shadow: var(--shadow) !important; overflow: hidden; }
.card-header, .card-footer { padding: 1rem 1.25rem; border-color: var(--line); background: #fbfcfe; }
.card-body { padding: 1.35rem; }
.table { --bs-table-bg: transparent; --bs-table-striped-bg: #f8fafc; color: #334155; }
.table > :not(caption) > * > * { padding: .88rem 1rem; border-bottom-color: #edf2f7; }
.table thead th { color: #64748b; background: #f8fafc !important; font-size: .77rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.summary-current-month > * { background: #fffbdf !important; }
.summary-current-month > :first-child { box-shadow: inset 4px 0 #f6c453; }
.summary-current-month:hover > * { background: #fff6c7 !important; }
.summary-current-badge { display: inline-flex; align-items: center; gap: .28rem; margin-left: .65rem; padding: .2rem .52rem; color: #8a5a00; background: #ffefad; border: 1px solid #f4d772; border-radius: 999px; font-size: .68rem; font-weight: 700; white-space: nowrap; }
.summary-current-badge i { font-size: .72rem; }
.month-summary-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.4rem; padding: 1.5rem 1.6rem; color: #172554; background: linear-gradient(135deg, #fff 0%, #f7f9ff 62%, #eef2ff 100%); border: 1px solid #e2e8f0; border-radius: 22px; box-shadow: var(--shadow); }
.month-summary-hero h1 { margin: .25rem 0 .35rem; font: 700 clamp(1.4rem, 2vw, 2rem) "K2D", sans-serif; }
.month-summary-hero p { max-width: 680px; margin: 0; color: #64748b; }
.month-summary-back { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: .85rem; color: #4f46e5; font-size: .82rem; font-weight: 700; text-decoration: none; }
.month-summary-back:hover { color: #3730a3; }
.month-summary-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .8rem; }
.month-summary-totals { display: flex; gap: .55rem; }
.month-summary-totals span { min-width: 104px; padding: .62rem .8rem; color: #64748b; background: #fff; border: 1px solid #e2e8f0; border-radius: 13px; font-size: .7rem; text-align: center; }
.month-summary-totals strong { display: block; color: #4338ca; font: 700 1.35rem "K2D", sans-serif; }
.month-work-list { display: grid; gap: 1rem; }
.month-day-card { overflow: hidden; background: #fff; border: 1px solid #e2e8f0; border-radius: 19px; box-shadow: 0 10px 30px rgba(15, 23, 42, .06); }
.month-day-heading { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.15rem; background: linear-gradient(90deg, #f8fafc, #fff); border-bottom: 1px solid #edf2f7; }
.month-day-calendar { display: grid; width: 52px; min-width: 52px; overflow: hidden; color: #fff; background: #4f46e5; border-radius: 13px; text-align: center; box-shadow: 0 6px 16px rgba(79, 70, 229, .22); }
.month-day-calendar small { padding: .18rem .2rem; background: #3730a3; font-size: .62rem; font-weight: 700; text-transform: uppercase; }
.month-day-calendar strong { padding: .2rem; font: 700 1.25rem "K2D", sans-serif; }
.month-day-title { min-width: 0; }
.month-day-title > span { color: #94a3b8; font-size: .65rem; font-weight: 700; letter-spacing: .04em; }
.month-day-title h2 { margin: .1rem 0 0; color: #172554; font: 700 1.05rem "K2D", sans-serif; }
.month-day-count { margin-left: auto; padding: .38rem .7rem; color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 999px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.month-day-works { margin: 0; padding: .25rem 1.15rem .55rem; list-style: none; }
.month-day-works li + li { border-top: 1px dashed #e2e8f0; }
.month-work-link { display: flex; align-items: center; gap: .55rem; padding: .85rem .2rem; color: #334155; text-decoration: none; transition: color .15s ease, transform .15s ease; }
.month-work-link:hover { color: #4338ca; transform: translateX(3px); }
.month-work-dash { color: #f59e0b; font-size: 1.2rem; font-weight: 800; }
.month-work-copy { display: grid; min-width: 0; gap: .18rem; }
.month-work-copy strong { overflow-wrap: anywhere; font-size: .9rem; font-weight: 650; }
.month-work-copy small { color: #64748b; font-size: .68rem; }
.month-work-open { margin-left: auto; color: #6366f1; font-size: .7rem; font-weight: 700; white-space: nowrap; }
.month-summary-empty { padding: 3.3rem 1rem; color: #64748b; background: #fff; border: 1px dashed #cbd5e1; border-radius: 20px; text-align: center; }
.month-summary-empty > span { display: inline-grid; width: 58px; height: 58px; margin-bottom: .8rem; color: #818cf8; background: #eef2ff; border-radius: 18px; place-items: center; font-size: 1.5rem; }
.month-summary-empty h2 { color: #334155; font: 700 1.15rem "K2D", sans-serif; }
.month-summary-empty p { margin-bottom: 1rem; }
.form-label { color: #334155; font-size: .88rem; font-weight: 600; }
.form-control, .form-select { min-height: 46px; border-color: #dbe3ef; border-radius: 11px; padding: .65rem .85rem; }
textarea.form-control { min-height: auto; }
.form-control:focus, .form-select:focus { border-color: #818cf8; box-shadow: 0 0 0 .22rem rgba(99, 102, 241, .12); }
.btn { border-radius: 10px; font-weight: 600; padding: .56rem .95rem; }
.btn-primary { --bs-btn-bg: var(--primary); --bs-btn-border-color: var(--primary); --bs-btn-hover-bg: var(--primary-dark); --bs-btn-hover-border-color: var(--primary-dark); }
.pagination { --bs-pagination-border-radius: 9px; --bs-pagination-color: var(--primary); }

.page-hero { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.page-hero h1 { margin: 0; font: 700 clamp(1.55rem, 3vw, 2.15rem)/1.15 "K2D", sans-serif; letter-spacing: -.035em; }
.page-hero p { margin: .45rem 0 0; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: .42rem; margin-bottom: .75rem; color: #a5b4fc; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.quick-action { display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap; }

.stat-card { position: relative; height: 100%; padding: 1.25rem; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.stat-card::after { content: ""; position: absolute; width: 90px; height: 90px; right: -36px; top: -38px; border-radius: 50%; background: var(--stat-soft); }
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--stat-color); background: var(--stat-soft); font-size: 1.15rem; }
.stat-label { color: var(--muted); font-size: .86rem; }
.stat-value { margin: .75rem 0 .15rem; font: 700 1.9rem/1 "K2D", sans-serif; }
.stat-note { color: var(--muted); font-size: .75rem; }
.stat-indigo { --stat-color: #4f46e5; --stat-soft: #eef2ff; }
.stat-teal { --stat-color: #0f766e; --stat-soft: #ccfbf1; }
.stat-amber { --stat-color: #b45309; --stat-soft: #fef3c7; }
.stat-rose { --stat-color: #be123c; --stat-soft: #ffe4e6; }

.profile-summary { display: flex; gap: 1rem; align-items: center; }
.profile-summary img, .profile-placeholder { width: 68px; height: 68px; flex: 0 0 68px; border-radius: 18px; object-fit: cover; }
.profile-placeholder { display: grid; place-items: center; color: #3730a3; background: #e0e7ff; font: 700 1.5rem "K2D", sans-serif; }
.section-kicker { margin-bottom: .9rem; color: #64748b; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.work-day-list { max-height: 190px; overflow: auto; padding-right: .2rem; }
.work-day { display: flex; align-items: center; justify-content: space-between; padding: .55rem 0; border-bottom: 1px solid #f1f5f9; font-size: .88rem; }
.work-day:last-child { border: 0; }
.work-day span:last-child { display: grid; place-items: center; min-width: 28px; height: 25px; padding: 0 .4rem; color: #4338ca; background: #eef2ff; border-radius: 8px; font-weight: 700; }
.action-card { position: relative; display: block; height: 100%; padding: 1.25rem; color: inherit; text-decoration: none; background: white; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.action-card:hover { color: inherit; transform: translateY(-3px); border-color: #c7d2fe; box-shadow: var(--shadow); }
.action-card > i { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1rem; color: var(--primary); background: #eef2ff; border-radius: 13px; font-size: 1.2rem; }
.action-card h3 { margin: 0 0 .35rem; font-size: 1rem; font-weight: 700; }
.action-card p { margin: 0; color: var(--muted); font-size: .84rem; }
.work-calendar-card { overflow: hidden; }
.work-calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.work-calendar-summary { display: flex; flex-wrap: wrap; gap: .45rem 1rem; color: var(--muted); font-size: .8rem; }
.work-calendar-summary i { margin-right: .22rem; color: var(--primary); }
.work-calendar-summary .holiday-api-status { color: #047857; }
.work-calendar-summary .holiday-api-status i { color: #10b981; }
.work-calendar-controls { display: flex; align-items: center; gap: .55rem; }
.calendar-jump-form { display: flex; align-items: center; gap: .4rem; margin: 0; padding: .3rem; background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; }
.calendar-select-wrap { position: relative; display: flex; align-items: center; }
.calendar-select-wrap > i { position: absolute; left: .62rem; z-index: 1; color: var(--primary); pointer-events: none; }
.calendar-jump-select { height: 34px; min-width: 116px; padding: 0 1.75rem 0 1.85rem; color: #334155; background-color: white; border: 0; border-radius: 8px; font-size: .78rem; font-weight: 600; cursor: pointer; outline: 0; }
.calendar-select-wrap.year-select .calendar-jump-select { min-width: 105px; padding-left: .7rem; }
.calendar-jump-select:focus { box-shadow: 0 0 0 .18rem rgba(99, 102, 241, .14); }
.calendar-jump-button { display: inline-flex; align-items: center; justify-content: center; gap: .32rem; min-height: 34px; padding: .35rem .65rem; color: white; background: var(--primary); font-size: .76rem; white-space: nowrap; }
.calendar-jump-button:hover, .calendar-jump-button:focus { color: white; background: var(--primary-dark); }
.work-calendar-nav { display: flex; align-items: center; gap: .45rem; }
.work-calendar-nav .btn { display: grid; place-items: center; min-width: 40px; min-height: 40px; color: #475569; border: 1px solid var(--line); background: #f8fafc; }
.work-calendar-nav .btn:hover { color: var(--primary); border-color: #c7d2fe; background: #eef2ff; }
.work-calendar-nav .calendar-today-button { display: inline-flex; min-width: auto; white-space: nowrap; font-size: .82rem; }
.work-calendar-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.work-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(92px, 1fr)); min-width: 700px; background: var(--line); gap: 1px; }
.work-calendar-weekday { padding: .65rem .5rem; color: #64748b; background: #f8fafc; font-size: .76rem; font-weight: 700; text-align: center; }
.work-calendar-weekday.is-weekend { color: #be123c; background: #fff1f2; }
.work-calendar-day { position: relative; display: flex; flex-direction: column; min-height: 122px; padding: .65rem; color: inherit; background: white; border: 0; border-radius: 0; font: inherit; text-align: left; cursor: pointer; transition: background .18s ease, box-shadow .18s ease; }
.work-calendar-day:not(.is-outside):hover { z-index: 2; background: #f5f7ff; box-shadow: inset 0 0 0 2px #a5b4fc; }
.work-calendar-day:not(.is-outside):focus-visible { z-index: 3; outline: 0; box-shadow: inset 0 0 0 3px var(--primary); }
.work-calendar-day.is-weekend:not(.is-outside) { background: #fffafb; }
.work-calendar-day.is-weekend:not(.is-outside):hover { background: #fff1f4; }
.work-calendar-day.has-holiday:not(.is-outside) { background: linear-gradient(145deg, #fff1f2 0%, #fff 68%); }
.work-calendar-day.is-outside { color: #cbd5e1; background: #f8fafc; cursor: default; }
.work-calendar-day.is-today { z-index: 1; box-shadow: inset 0 0 0 2px var(--primary); }
.work-calendar-date { display: flex; align-items: center; justify-content: space-between; gap: .35rem; font: 700 .88rem "K2D", sans-serif; }
.work-calendar-day.is-weekend:not(.is-outside) .work-calendar-date time { color: #be123c; }
.calendar-date-tools { display: inline-flex; align-items: center; gap: .28rem; }
.weekend-mark { display: grid; place-items: center; width: 23px; height: 23px; color: #be123c; background: #ffe4e6; border-radius: 8px; font-size: .7rem; }
.calendar-edit-hint { display: grid; place-items: center; width: 23px; height: 23px; color: #6366f1; background: #eef2ff; border-radius: 8px; font-size: .68rem; opacity: .56; transition: .18s ease; }
.work-calendar-day:hover .calendar-edit-hint, .work-calendar-day:focus-visible .calendar-edit-hint { color: white; background: var(--primary); opacity: 1; transform: scale(1.05); }
.calendar-holiday-mark { display: flex; align-items: center; gap: .3rem; min-width: 0; margin-top: .48rem; color: #9f1239; font-size: .69rem; font-weight: 600; line-height: 1.25; }
.calendar-holiday-mark i { flex: 0 0 auto; color: #e11d48; }
.calendar-holiday-mark span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-holiday-mark strong { flex: 0 0 auto; padding: .08rem .3rem; color: #be123c; background: #ffe4e6; border-radius: 999px; font-size: .62rem; }
.calendar-work-mark { display: inline-flex; align-items: center; align-self: flex-start; gap: .22rem; margin-top: auto; padding: .32rem .5rem; color: #047857; background: #d1fae5; border: 1px solid #a7f3d0; border-radius: 999px; font-size: .73rem; font-weight: 700; white-space: nowrap; }
.calendar-work-mark i { font-size: .8rem; }
.calendar-today-mark { position: absolute; right: .65rem; bottom: .7rem; color: var(--primary); font-size: .65rem; font-weight: 700; }
.work-calendar-day:has(.calendar-work-mark) .calendar-today-mark { display: none; }
.work-calendar-legend { display: flex; flex-wrap: wrap; gap: .65rem 1.15rem; margin-top: .85rem; color: var(--muted); font-size: .73rem; }
.work-calendar-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; }
.legend-dot.has-work { background: #10b981; }
.legend-dot.holiday { background: #e11d48; }
.legend-dot.weekend { background: #fb7185; }
.legend-ring { width: 11px; height: 11px; border: 2px solid var(--primary); border-radius: 3px; }
.calendar-day-modal .modal-content { border: 0; border-radius: 20px; box-shadow: 0 24px 70px rgba(15, 23, 42, .2); overflow: hidden; }
.calendar-modal-header { align-items: center; gap: .8rem; padding: 1.2rem 1.25rem; background: linear-gradient(135deg, #eef2ff, #fff); border-bottom-color: #e0e7ff; }
.calendar-modal-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; color: white; background: linear-gradient(135deg, #4f46e5, #6366f1); border-radius: 13px; font-size: 1.1rem; box-shadow: 0 8px 18px rgba(79, 70, 229, .22); }
.calendar-modal-holiday { display: flex; align-items: center; gap: .45rem; margin-bottom: .8rem; padding: .65rem .75rem; color: #9f1239; background: #fff1f2; border: 1px solid #fecdd3; border-radius: 11px; font-size: .8rem; font-weight: 600; }
.calendar-modal-holiday i { color: #e11d48; }
.calendar-modal-summary { margin-bottom: .85rem; color: var(--muted); font-size: .8rem; }
.calendar-modal-empty { display: grid; justify-items: center; padding: 1.35rem; color: var(--muted); background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 14px; text-align: center; }
.calendar-modal-empty > span { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: .65rem; color: var(--primary); background: #eef2ff; border-radius: 14px; font-size: 1.2rem; }
.calendar-modal-empty strong { color: #334155; }
.calendar-modal-empty small { margin-top: .25rem; }
.calendar-modal-list { display: grid; gap: .55rem; max-height: 320px; overflow-y: auto; }
.calendar-modal-work-item { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: .65rem; padding: .7rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.calendar-modal-work-number { display: grid; place-items: center; width: 30px; height: 30px; color: #4338ca; background: #eef2ff; border-radius: 9px; font-size: .72rem; font-weight: 700; }
.calendar-modal-work-title { overflow: hidden; color: #334155; font-size: .84rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.calendar-modal-edit { display: inline-flex; align-items: center; gap: .3rem; color: #4338ca; background: #eef2ff; border: 1px solid #c7d2fe; }
.calendar-modal-edit:hover { color: white; background: var(--primary); border-color: var(--primary); }
.calendar-modal-footer { padding: .9rem 1.25rem 1.15rem; border-top-color: var(--line); }
.calendar-frame { min-height: 410px; border-radius: 14px; overflow: hidden; background: #f8fafc; }

/* Work evidence images */
.evidence-upload, .evidence-show { margin-bottom: 1.35rem; padding: 1.2rem; background: linear-gradient(145deg, #f8faff, #fff); border: 1px solid #dfe5ff; border-radius: 18px; }
.evidence-heading { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.evidence-heading > div { min-width: 0; flex: 1; }
.evidence-heading h5 { margin: 0 0 .2rem; color: #293056; font: 700 1rem "K2D", sans-serif; }
.evidence-heading p { margin: 0; color: var(--muted); font-size: .8rem; }
.evidence-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; color: #4f46e5; background: #e0e7ff; border-radius: 13px; font-size: 1.05rem; }
.evidence-limit { display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .6rem; color: #047857; background: #d1fae5; border: 1px solid #a7f3d0; border-radius: 999px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.evidence-upload-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .34fr); gap: .7rem; }
.evidence-dropzone { position: relative; display: flex; align-items: center; gap: .85rem; min-height: 104px; padding: 1rem; background: white; border: 2px dashed #c7d2fe; border-radius: 15px; cursor: pointer; transition: .2s ease; }
.evidence-dropzone:hover, .evidence-dropzone.is-dragging { background: #f5f7ff; border-color: #6366f1; transform: translateY(-1px); }
.evidence-dropzone > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.evidence-drop-icon { display: grid; place-items: center; width: 50px; height: 50px; flex: 0 0 50px; color: #4f46e5; background: #eef2ff; border-radius: 15px; font-size: 1.35rem; }
.evidence-drop-copy { display: grid; min-width: 0; flex: 1; }
.evidence-drop-copy strong { color: #334155; font-size: .9rem; }
.evidence-drop-copy small { margin-top: .25rem; color: #7c8aa0; font-size: .73rem; }
.evidence-browse { pointer-events: none; }
.evidence-pastezone { display: flex; align-items: center; gap: .7rem; min-height: 104px; padding: .85rem; color: #4338ca; background: #eef2ff; border: 2px solid #c7d2fe; border-radius: 15px; font: inherit; text-align: left; transition: .2s ease; }
.evidence-pastezone:hover, .evidence-pastezone:focus-visible, .evidence-pastezone.is-ready { color: #3730a3; background: #e0e7ff; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, .14); outline: none; transform: translateY(-1px); }
.evidence-paste-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; color: white; background: #6366f1; border-radius: 12px; font-size: 1.1rem; }
.evidence-paste-copy { display: grid; min-width: 0; }
.evidence-paste-copy strong { font-size: .82rem; }
.evidence-paste-copy small { margin-top: .3rem; color: #64748b; font-size: .68rem; }
.evidence-paste-copy kbd { padding: .12rem .28rem; color: #334155; background: white; border: 1px solid #cbd5e1; border-bottom-width: 2px; border-radius: 4px; font: 600 .62rem "Sarabun", sans-serif; }
.evidence-feedback { min-height: 0; margin-top: 0; font-size: .74rem; transition: .18s ease; }
.evidence-feedback:not(:empty) { margin-top: .65rem; }
.evidence-feedback.is-success { color: #047857; }
.evidence-feedback.is-ready { color: #4338ca; }
.evidence-feedback.is-error { color: #b91c1c; }
.evidence-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .7rem; margin-top: .8rem; }
.evidence-preview:empty { display: none; }
.evidence-preview-card { position: relative; display: flex; align-items: center; gap: .65rem; min-width: 0; padding: .55rem 2rem .55rem .55rem; background: white; border: 1px solid var(--line); border-radius: 12px; }
.evidence-preview-card img { width: 54px; height: 54px; flex: 0 0 54px; object-fit: cover; border-radius: 9px; }
.evidence-preview-card span { display: grid; min-width: 0; }
.evidence-preview-card strong { overflow: hidden; color: #334155; font-size: .77rem; text-overflow: ellipsis; white-space: nowrap; }
.evidence-preview-card small { color: var(--muted); font-size: .68rem; }
.evidence-preview-remove { position: absolute; top: .4rem; right: .4rem; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; color: #be123c; background: #fff1f2; border: 0; border-radius: 50%; font-size: .68rem; }
.evidence-preview-remove:hover, .evidence-preview-remove:focus-visible { color: white; background: #e11d48; outline: none; }
.evidence-existing { margin-bottom: 1rem; }
.evidence-subtitle { margin-bottom: .55rem; color: #475569; font-size: .78rem; font-weight: 700; }
.evidence-subtitle span { margin-left: .3rem; padding: .12rem .38rem; color: #4338ca; background: #e0e7ff; border-radius: 999px; font-size: .65rem; }
.evidence-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: .75rem; }
.evidence-card { display: grid; grid-template-columns: 92px minmax(0, 1fr); min-width: 0; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 13px; }
.evidence-thumb { position: relative; display: block; min-height: 100px; overflow: hidden; background: #eef2ff; }
.evidence-thumb img { width: 100%; height: 100%; object-fit: cover; }
.evidence-thumb > span { position: absolute; inset: auto .3rem .3rem; padding: .25rem; color: white; background: rgba(15, 23, 42, .72); border-radius: 6px; font-size: .61rem; text-align: center; opacity: 0; transition: .18s; }
.evidence-thumb:hover > span { opacity: 1; }
.evidence-meta { display: flex; flex-direction: column; min-width: 0; padding: .65rem; }
.evidence-meta > strong { overflow: hidden; color: #334155; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.evidence-meta > small { margin-top: .18rem; color: var(--muted); font-size: .63rem; }
.evidence-remove { margin-top: auto; padding-top: .45rem; color: #be123c; font-size: .67rem; cursor: pointer; }
.evidence-remove input { margin-right: .2rem; accent-color: #e11d48; }
.evidence-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .9rem; }
.evidence-gallery-item { position: relative; display: block; min-width: 0; color: inherit; text-decoration: none; background: white; border: 1px solid #dbe3ef; border-radius: 14px; box-shadow: 0 8px 22px rgba(30, 41, 59, .06); overflow: hidden; transition: .2s ease; }
.evidence-gallery-item:hover { color: inherit; border-color: #a5b4fc; box-shadow: 0 15px 32px rgba(79, 70, 229, .13); transform: translateY(-3px); }
.evidence-gallery-item > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #eef2ff; }
.evidence-gallery-overlay { position: absolute; inset: 0 0 54px; display: grid; place-items: center; color: white; background: rgba(30, 41, 59, .38); font-size: .8rem; font-weight: 700; opacity: 0; transition: .2s; }
.evidence-gallery-item:hover .evidence-gallery-overlay { opacity: 1; }
.evidence-gallery-caption { display: grid; min-width: 0; padding: .65rem .75rem; }
.evidence-gallery-caption strong { overflow: hidden; color: #334155; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.evidence-gallery-caption small { color: var(--muted); font-size: .65rem; }

/* Work review center */
.work-review-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.25rem; }
.work-review-title { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.work-review-title h1, .work-detail-hero h1 { margin: 0; color: #172033; font: 700 clamp(1.55rem, 3vw, 2.15rem)/1.2 "K2D", sans-serif; letter-spacing: -.035em; }
.work-review-title p { margin: .4rem 0 0; color: var(--muted); }
.work-review-icon { display: grid; place-items: center; width: 62px; height: 62px; flex: 0 0 62px; color: white; background: linear-gradient(135deg, #4f46e5, #7c3aed); border-radius: 19px; box-shadow: 0 14px 28px rgba(79, 70, 229, .24); font-size: 1.55rem; }
.work-review-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; }
.work-review-scope { display: inline-flex; align-items: center; gap: .4rem; min-height: 42px; padding: .55rem .8rem; color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 11px; font-size: .78rem; font-weight: 700; }
.review-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin-bottom: 1rem; }
.review-stat { --review-color:#4f46e5; --review-soft:#eef2ff; display: flex; align-items: center; gap: .8rem; min-width: 0; padding: 1rem; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 9px 25px rgba(30, 41, 59, .055); }
.review-stat > span { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; color: var(--review-color); background: var(--review-soft); border-radius: 13px; font-size: 1.08rem; }
.review-stat > div { display: grid; min-width: 0; grid-template-columns: 1fr auto; align-items: baseline; column-gap: .55rem; }
.review-stat small { color: var(--muted); font-size: .72rem; font-weight: 700; }
.review-stat strong { color: #1e293b; font: 700 1.45rem "K2D", sans-serif; }
.review-stat em { grid-column: 1 / -1; overflow: hidden; color: #94a3b8; font-size: .65rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.review-stat-teal { --review-color:#0f766e; --review-soft:#ccfbf1; }
.review-stat-amber { --review-color:#b45309; --review-soft:#fef3c7; }
.review-stat-rose { --review-color:#be123c; --review-soft:#ffe4e6; }
.work-filter-panel { margin-bottom: 1rem; padding: 1.1rem; background: white; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 9px 25px rgba(30, 41, 59, .05); }
.work-filter-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.work-filter-heading > div { display: flex; align-items: center; gap: .7rem; }
.work-filter-heading > div > i { display: grid; place-items: center; width: 38px; height: 38px; color: #4f46e5; background: #eef2ff; border-radius: 11px; }
.work-filter-heading span { display: grid; }
.work-filter-heading strong { color: #334155; font-size: .9rem; }
.work-filter-heading small { color: var(--muted); font-size: .68rem; }
.work-filter-panel .input-group-text { color: #6366f1; background: #f8fafc; border-color: #dbe3ef; border-radius: 11px 0 0 11px; }
.work-review-card { overflow: visible !important; }
.work-review-card-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: white; }
.work-review-card-header > div { display: grid; }
.work-review-card-header strong { color: #293056; font-family: "K2D", sans-serif; }
.work-review-card-header small { color: var(--muted); font-size: .68rem; }
.work-review-card-header > span { padding: .32rem .58rem; color: #4338ca; background: #eef2ff; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.work-review-table { min-width: 1060px; }
.work-review-table tbody tr { transition: background .16s ease; }
.work-review-table tbody tr:hover { background: #fafbff; }
.work-review-table td { vertical-align: middle; }
.work-date-cell { width: 128px; }
.work-date-cell time { display: inline-flex; align-items: baseline; gap: .3rem; padding: .42rem .55rem; color: #4338ca; background: #eef2ff; border-radius: 10px; font-family: "K2D", sans-serif; }
.work-date-cell time strong { font-size: 1rem; }
.work-date-cell time span { font-size: .7rem; font-weight: 700; }
.work-date-cell > small { display: block; margin-top: .35rem; color: #94a3b8; font-size: .6rem; }
.member-cell { display: flex; align-items: center; gap: .65rem; min-width: 220px; }
.member-avatar-small { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; color: #3730a3; background: #e0e7ff; border-radius: 12px; font: 700 1rem "K2D", sans-serif; overflow: hidden; }
.member-avatar-small img { width: 100%; height: 100%; object-fit: cover; }
.member-cell > span:last-child { display: grid; min-width: 0; }
.member-cell strong { overflow: hidden; color: #293056; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.member-cell small { color: #64748b; font-size: .67rem; }
.member-cell em { overflow: hidden; margin-top: .1rem; color: #94a3b8; font-size: .61rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.member-cell em i { margin-right: .2rem; color: #6366f1; }
.work-title-cell { min-width: 290px; max-width: 430px; }
.work-title-cell > a { display: block; color: #293056; font-size: .83rem; font-weight: 700; text-decoration: none; }
.work-title-cell > a:hover { color: var(--primary); }
.work-title-cell p { display: -webkit-box; margin: .3rem 0 0; overflow: hidden; color: #7c8aa0; font-size: .69rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.evidence-mini-button { display: grid; min-width: 145px; padding: .48rem; color: inherit; background: white; border: 1px solid #dbe3ef; border-radius: 11px; text-align: left; transition: .18s; }
.evidence-mini-button:hover { background: #f5f7ff; border-color: #a5b4fc; transform: translateY(-1px); }
.evidence-mini-thumbs { display: flex; margin-bottom: .35rem; }
.evidence-mini-thumbs img { width: 31px; height: 31px; object-fit: cover; background: #eef2ff; border: 2px solid white; border-radius: 9px; box-shadow: 0 2px 7px rgba(30, 41, 59, .12); }
.evidence-mini-thumbs img + img { margin-left: -7px; }
.evidence-mini-button strong { color: #047857; font-size: .7rem; }
.evidence-mini-button small { color: #94a3b8; font-size: .58rem; }
.evidence-empty-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .42rem .58rem; color: #94a3b8; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px; font-size: .65rem; white-space: nowrap; }
.work-actions { display: flex; justify-content: flex-end; gap: .35rem; white-space: nowrap; }
.work-actions form { display: inline-flex; }
.work-review-empty { display: grid; justify-items: center; padding: 3rem 1rem; color: var(--muted); text-align: center; }
.work-review-empty > span, .work-evidence-empty > span { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: .75rem; color: #6366f1; background: #eef2ff; border-radius: 18px; font-size: 1.4rem; }
.work-review-empty strong { color: #334155; }
.work-review-empty p, .work-evidence-empty p { margin: .3rem 0 0; font-size: .75rem; }
.evidence-review-modal .modal-content { border: 0; border-radius: 20px; overflow: hidden; }
.evidence-review-modal .modal-header { align-items: flex-start; padding: 1.15rem 1.3rem; background: linear-gradient(135deg, #eef2ff, white); }
.evidence-review-modal .modal-header > div { display: grid; }
.evidence-review-modal .modal-header span { color: #6366f1; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.evidence-review-modal .modal-header small { color: var(--muted); }
.work-detail-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.work-detail-back { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: .8rem; color: #64748b; font-size: .78rem; font-weight: 600; text-decoration: none; }
.work-detail-meta { display: flex; flex-wrap: wrap; gap: .45rem 1rem; margin-top: .65rem; color: #64748b; font-size: .75rem; }
.work-detail-meta i { margin-right: .25rem; color: #6366f1; }
.work-owner-card { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; padding: 1.15rem; background: linear-gradient(135deg, #fff, #f7f8ff); border: 1px solid #dfe5ff; border-radius: 18px; box-shadow: 0 10px 30px rgba(30, 41, 59, .055); }
.work-owner-avatar { display: grid; place-items: center; width: 68px; height: 68px; flex: 0 0 68px; color: #3730a3; background: #e0e7ff; border-radius: 18px; font: 700 1.55rem "K2D", sans-serif; overflow: hidden; }
.work-owner-avatar img { width: 100%; height: 100%; object-fit: cover; }
.work-owner-copy { min-width: 0; flex: 1; }
.work-owner-copy > small { color: #6366f1; font-size: .66rem; font-weight: 700; text-transform: uppercase; }
.work-owner-copy h2 { margin: .15rem 0 .35rem; color: #293056; font: 700 1.15rem "K2D", sans-serif; }
.work-owner-copy > div { display: flex; flex-wrap: wrap; gap: .35rem 1rem; color: #64748b; font-size: .7rem; }
.work-owner-copy i { margin-right: .22rem; color: #6366f1; }
.work-owner-status { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .65rem; color: #047857; background: #d1fae5; border-radius: 999px; font-size: .68rem; font-weight: 700; white-space: nowrap; }
.work-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .34fr); gap: 1rem; }
.work-content-panel, .work-evidence-summary { padding: 1.2rem; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.work-panel-heading { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.work-panel-heading > span { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; color: #4f46e5; background: #eef2ff; border-radius: 12px; }
.work-panel-heading h2 { margin: 0; color: #293056; font: 700 .95rem "K2D", sans-serif; }
.work-panel-heading p { margin: .12rem 0 0; color: var(--muted); font-size: .66rem; }
.work-content-body { min-height: 180px; padding: 1rem; color: #334155; background: #fbfcff; border: 1px solid #edf0f7; border-radius: 13px; line-height: 1.75; overflow-wrap: anywhere; }
.work-content-body img { max-width: 100%; height: auto; }
.evidence-summary-value { display: flex; align-items: baseline; justify-content: center; gap: .35rem; padding: 1rem; color: #4338ca; background: #eef2ff; border-radius: 14px; }
.evidence-summary-value strong { font: 700 2.15rem "K2D", sans-serif; }
.evidence-summary-value span { font-size: .75rem; font-weight: 700; }
.work-evidence-summary ul { display: grid; gap: .55rem; margin: .9rem 0 0; padding: 0; color: #64748b; list-style: none; font-size: .68rem; }
.work-evidence-summary li i { margin-right: .35rem; color: #10b981; }
.evidence-summary-missing { display: flex; align-items: center; gap: .5rem; margin-top: .75rem; padding: .7rem; color: #9f1239; background: #fff1f2; border-radius: 11px; font-size: .7rem; font-weight: 600; }
.work-detail-empty, .work-evidence-empty { display: grid; justify-items: center; align-content: center; min-height: 155px; color: #94a3b8; text-align: center; }
.work-detail-empty > i { margin-bottom: .5rem; color: #a5b4fc; font-size: 2rem; }
.work-detail-empty strong, .work-evidence-empty strong { color: #64748b; }
.work-detail-empty span { margin-top: .25rem; font-size: .7rem; }
.work-evidence-empty { min-height: 210px; border: 1px dashed #cbd5e1; border-radius: 14px; }

/* Admin settings */
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr); gap: 1rem; }
.settings-panel { padding: 1.35rem; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.settings-panel-wide { grid-row: span 2; }
.settings-panel-heading { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem; }
.settings-panel-heading > span { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; color: #4f46e5; background: #eef2ff; border-radius: 13px; font-size: 1.08rem; }
.settings-panel-heading h2 { margin: 0 0 .18rem; color: #293056; font: 700 1rem "K2D", sans-serif; }
.settings-panel-heading p { margin: 0; color: var(--muted); font-size: .76rem; }
.favicon-control { display: flex; align-items: center; gap: 1rem; }
.favicon-preview { display: grid; place-items: center; align-content: center; width: 104px; height: 104px; flex: 0 0 104px; color: #94a3b8; background: repeating-conic-gradient(#f1f5f9 0 25%, #fff 0 50%) 50% / 16px 16px; border: 1px solid #dbe3ef; border-radius: 22px; box-shadow: inset 0 0 0 7px white; overflow: hidden; }
.favicon-preview i { font-size: 1.35rem; }
.favicon-preview small { font-size: .6rem; }
.favicon-preview img { width: 68px; height: 68px; object-fit: contain; border-radius: 12px; }
.favicon-copy p { margin: .55rem 0 0; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.favicon-copy .form-check { font-size: .72rem; }
.image-policy-visual { display: flex; align-items: center; justify-content: center; gap: .75rem; margin: .3rem 0 1rem; }
.policy-image { display: grid; place-items: center; align-content: center; color: #64748b; background: #f8fafc; border: 1px solid var(--line); border-radius: 13px; }
.policy-image i { font-size: 1.1rem; }
.policy-image small { margin-top: .18rem; font-size: .62rem; font-weight: 700; }
.policy-image-before { width: 88px; height: 72px; }
.policy-image-after { width: 70px; height: 58px; color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.policy-arrow { color: #6366f1; }
.image-size-control { padding: .9rem; background: #f8fafc; border: 1px solid var(--line); border-radius: 13px; }
.image-size-control .input-group-text { color: #4f46e5; background: #eef2ff; border-color: #dbe3ef; }
.image-size-control .form-select { font-weight: 700; }
.image-size-control .form-text { font-size: .68rem; line-height: 1.45; }
.settings-check-list { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; color: #475569; font-size: .75rem; }
.settings-check-list i { margin-right: .4rem; color: #10b981; }
.settings-savebar { position: sticky; bottom: .75rem; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding: .8rem .9rem .8rem 1rem; color: #64748b; background: rgba(255, 255, 255, .94); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 12px 34px rgba(30, 41, 59, .12); backdrop-filter: blur(10px); font-size: .76rem; }
.settings-savebar i { margin-right: .3rem; color: #6366f1; }

.guest-body { background: var(--navy); }
.guest-main { min-height: 100vh; }
.guest-main > .flash-stack { position: fixed; top: 1rem; left: 50%; width: min(92vw, 680px); transform: translateX(-50%); z-index: 20; }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr); min-height: 100vh; }
.auth-intro { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(2rem, 6vw, 5.5rem); color: white; overflow: hidden; background: var(--navy); }
.auth-intro::before, .auth-intro::after { content: ""; position: absolute; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.auth-intro::before { width: 480px; height: 480px; right: -210px; top: -190px; background: rgba(79, 70, 229, .32); }
.auth-intro::after { width: 330px; height: 330px; left: -180px; bottom: -140px; background: rgba(13, 148, 136, .22); }
.auth-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: .75rem; font: 700 1.25rem "K2D", sans-serif; }
.auth-intro-copy { position: relative; z-index: 1; max-width: 650px; padding: 4rem 0; }
.auth-intro h1 { margin: 0 0 1.5rem; font: 700 clamp(2.5rem, 5.6vw, 5rem)/1.07 "K2D", sans-serif; letter-spacing: -.055em; }
.auth-intro p { max-width: 570px; margin: 0; color: #cbd5e1; font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.8; }
.auth-feature-row { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 1.3rem; color: #cbd5e1; font-size: .84rem; }
.auth-feature-row i { margin-right: .3rem; color: #5eead4; }
.auth-panel { display: grid; place-items: center; padding: clamp(1.5rem, 5vw, 5rem); background: #f8fafc; }
.auth-card { width: min(100%, 480px); }
.auth-heading { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.auth-heading h2 { margin: 0 0 .25rem; font: 700 1.8rem "K2D", sans-serif; letter-spacing: -.03em; }
.auth-heading p { margin: 0; color: var(--muted); }
.auth-icon { display: grid; place-items: center; width: 54px; height: 54px; flex: 0 0 54px; color: #4338ca; background: #e0e7ff; border-radius: 16px; font-size: 1.3rem; }
.auth-card .form-control { min-height: 54px; background: white; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; top: 50%; left: 1rem; z-index: 2; color: #94a3b8; transform: translateY(-50%); }
.input-icon .form-control { padding-left: 2.85rem; }
.auth-link, .back-link { color: var(--primary); font-weight: 600; text-decoration: none; }
.back-link { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 2rem; font-size: .88rem; }
.auth-card .btn-lg { min-height: 54px; font-size: 1rem; }
.auth-help { margin: 1.5rem 0 0; color: #94a3b8; font-size: .78rem; text-align: center; }
.auth-help i { margin-right: .25rem; }
.auth-shell-compact .auth-intro h1 { font-size: clamp(2.5rem, 5vw, 4.4rem); }

@media (max-width: 1199.98px) {
    .app-header .navbar-collapse { padding: 1rem 0; }
    .app-header .navbar-nav { margin-bottom: 1rem; }
    .user-menu { width: max-content; }
    .review-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .settings-grid { grid-template-columns: 1fr; }
    .settings-panel-wide { grid-row: auto; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-intro { min-height: 330px; padding: 2rem; }
    .auth-intro-copy { padding: 3rem 0 2rem; }
    .auth-intro h1 { font-size: clamp(2.2rem, 9vw, 3.5rem); }
    .auth-feature-row { display: none; }
    .auth-panel { min-height: calc(100vh - 330px); padding: 2.5rem 1.25rem; }
    .work-review-hero, .work-detail-hero { align-items: stretch; flex-direction: column; }
    .work-review-actions { justify-content: flex-start; }
    .work-detail-grid { grid-template-columns: 1fr; }
    .month-summary-hero { align-items: stretch; flex-direction: column; }
    .month-summary-actions { align-items: stretch; }
}
@media (max-width: 575.98px) {
    .app-main { padding-top: 1.25rem; }
    .page-hero { align-items: stretch; flex-direction: column; }
    .page-hero .btn { width: 100%; }
    .card-body { padding: 1.1rem; }
    .month-summary-hero { padding: 1.15rem; }
    .month-summary-totals span { flex: 1; }
    .month-summary-actions .btn { width: 100%; }
    .month-day-heading { align-items: flex-start; flex-wrap: wrap; }
    .month-day-title { flex: 1; }
    .month-day-count { width: max-content; margin-left: 61px; }
    .month-work-open { display: none; }
    .auth-intro { min-height: 280px; }
    .auth-brand .brand-mark { width: 36px; height: 36px; flex-basis: 36px; }
    .auth-intro-copy { padding: 2rem 0 1rem; }
    .auth-intro p { font-size: .92rem; line-height: 1.65; }
    .auth-heading h2 { font-size: 1.55rem; }
    .work-calendar-heading { align-items: stretch; flex-direction: column; }
    .work-calendar-controls { align-items: stretch; flex-direction: column; }
    .calendar-jump-form { display: grid; grid-template-columns: 1fr 1fr; }
    .calendar-jump-select { width: 100%; }
    .calendar-jump-button { grid-column: 1 / -1; }
    .work-calendar-nav { justify-content: space-between; }
    .work-calendar-nav .calendar-today-button { flex: 1; justify-content: center; }
    .work-calendar-grid { grid-template-columns: repeat(7, minmax(78px, 1fr)); min-width: 600px; }
    .work-calendar-day { min-height: 108px; padding: .5rem; }
    .calendar-modal-footer { display: grid; grid-template-columns: auto 1fr; }
    .calendar-modal-footer .btn-primary { width: 100%; }
    .evidence-heading { align-items: flex-start; flex-wrap: wrap; }
    .evidence-limit { margin-left: 50px; }
    .evidence-upload-controls { grid-template-columns: 1fr; }
    .evidence-dropzone { align-items: flex-start; flex-wrap: wrap; }
    .evidence-drop-copy { min-width: calc(100% - 66px); }
    .evidence-browse { width: 100%; }
    .evidence-card { grid-template-columns: 82px minmax(0, 1fr); }
    .settings-savebar { align-items: stretch; flex-direction: column; }
    .settings-savebar .btn { width: 100%; }
    .favicon-control { align-items: flex-start; }
    .work-review-title { align-items: flex-start; }
    .work-review-icon { width: 50px; height: 50px; flex-basis: 50px; border-radius: 15px; font-size: 1.25rem; }
    .work-review-actions .btn, .work-review-scope { flex: 1 1 calc(50% - .3rem); justify-content: center; }
    .review-stats-grid { grid-template-columns: 1fr; }
    .work-filter-heading { align-items: flex-start; }
    .work-owner-card { align-items: flex-start; flex-wrap: wrap; }
    .work-owner-copy { min-width: calc(100% - 84px); }
    .work-owner-status { margin-left: 84px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
