/* tokens */
:root {
    --bg: #F2EFE7;
    --card: #FBF9F4;
    --sink: #E8E4D8;
    --ink: #0E1520;
    --ink2: #454C5A;
    --mute: #78808F;
    --line: #D9D4C6;
    --accent: #0B7FA6;
    --accent-ink: #065A78;
    --hi: #2ED3F0;
    --navy: #0B1320;
    --navy-ink: #E6ECF5;
    --navy-mute: #8C9BB2;
    --navy-line: #26344D;
    --ok: #1B9A68;
    --bad: #D5483A;
    --warn: #C98514;
    --ok-bg: #E2F2EA;
    --ok-fg: #146c49;
    --bad-bg: #FBE4E0;
    --bad-fg: #a3271b;
    --warn-bg: #FBEFD9;
    --warn-fg: #8a5a06;
    --info-bg: #DDF0F7;
    --info-fg: #065A78;
    --field: #FFFFFF;
    --f-display: 'Bricolage Grotesque', system-ui, sans-serif;
    --f-body: 'Instrument Sans', system-ui, sans-serif;
    --f-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
    --shadow: 0 1.2em 2.4em -1.2em rgba(14, 21, 32, .3), 0 0 0 1px rgba(14, 21, 32, .06);
    --nav-h: 68px;
}
[data-theme="dark"] {
    --bg: #0B1320;
    --card: #131E31;
    --sink: #0F1A2C;
    --ink: #E6ECF5;
    --ink2: #B6C2D6;
    --mute: #8C9BB2;
    --line: #26344D;
    --accent: #2ED3F0;
    --accent-ink: #7FE3F5;
    --navy: #060C16;
    --ok: #4FD08E;
    --bad: #FF8A7A;
    --warn: #F0B54A;
    --ok-bg: #143327;
    --ok-fg: #7FE0B0;
    --bad-bg: #3B1C1A;
    --bad-fg: #FFA79B;
    --warn-bg: #3A2C10;
    --warn-fg: #F5C672;
    --info-bg: #10304A;
    --info-fg: #7FE3F5;
    --field: #0F1A2C;
    --shadow: 0 1.2em 2.4em -1.2em rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .04);
}

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background .25s, color .25s; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: var(--f-display); letter-spacing: -.02em; line-height: 1.1; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }
table { border-collapse: collapse; }
.hidden-view { display: none !important; }
.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mono { font-family: var(--f-mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* motion */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slideup { to { transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(11, 127, 166, .45); } 100% { box-shadow: 0 0 0 14px rgba(11, 127, 166, 0); } }
@keyframes cell { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes shimmer { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.stagger-item { animation: rise .55s cubic-bezier(.2, .8, .2, 1) both; }
.stagger-row { animation: rise .4s cubic-bezier(.2, .8, .2, 1) both; }
.view-fade { animation: fadein .4s both; }
.sk { background: var(--sink); border-radius: 12px; animation: shimmer 1.2s ease-in-out infinite; min-height: 16px; }

/* sync bar and loaders */
#syncBar { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; opacity: 0; z-index: 300; transition: opacity .2s; }
#syncBar.sync-active { opacity: 1; animation: syncrun 1.3s ease-in-out infinite; }
@keyframes syncrun { 0% { transform: scaleX(0); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } 51% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
.es-loader { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
.es-loader-sm { width: 15px; height: 15px; border-width: 2px; }
.es-loader-row { display: flex; align-items: center; gap: 10px; color: var(--mute); font-size: 14px; padding: 18px 0; }
.center { justify-content: center; }

/* toasts */
#toastContainer { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(92vw, 400px); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; border-radius: 14px; background: var(--navy); color: var(--navy-ink); font-size: 14.5px; font-weight: 500; box-shadow: 0 16px 36px -14px rgba(0, 0, 0, .55); animation: rise .3s cubic-bezier(.2, .8, .2, 1) both; border: 1px solid var(--navy-line); }
.toast::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #8FA8B8; flex: none; }
.toast.t-success::before { background: #59C283; }
.toast.t-error::before { background: #F0775F; }
.toast.out { opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: transform .2s, background .2s, color .2s, border-color .2s, opacity .2s; white-space: nowrap; }
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; }
[data-theme="dark"] .btn-primary { color: #04202A; }
.btn-primary:hover:not(:disabled) { background: var(--accent-ink); color: #fff; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-line { border: 1.5px solid var(--ink); }
.btn-line:hover:not(:disabled) { background: var(--ink); color: var(--bg); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-danger { border: 1.5px solid var(--bad); color: var(--bad); }
.btn-danger:hover:not(:disabled) { background: var(--bad); color: #fff; }
.btn .es-loader { border-color: rgba(255, 255, 255, .4); border-top-color: #fff; }
.link-btn { font-size: 13.5px; font-weight: 500; color: var(--mute); display: inline-flex; align-items: center; gap: 6px; padding: 6px 4px; transition: color .2s; }
.link-btn:hover { color: var(--accent-ink); }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; transition: border-color .2s, background .2s; }
.icon-btn:hover { border-color: var(--ink); }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--sink); color: var(--ink2); white-space: nowrap; }
.chip-ontime, .chip-verified, .chip-approved, .chip-contacted { background: var(--ok-bg); color: var(--ok-fg); }
.chip-late, .chip-rejected, .chip-absent { background: var(--bad-bg); color: var(--bad-fg); }
.chip-pending, .chip-half { background: var(--warn-bg); color: var(--warn-fg); }
.chip-new, .chip-badge, .chip-offday { background: var(--info-bg); color: var(--info-fg); }
.chip-closed, .chip-cancelled, .chip-active { background: var(--sink); color: var(--ink2); }
.chip .ic { width: 14px; height: 14px; }
button.chip { transition: transform .15s, filter .2s; }
button.chip:hover { filter: brightness(.96); transform: translateY(-1px); }

/* cards and fields */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; transition: background .25s, border-color .25s; }
.card h2 { font-size: 1.15rem; font-weight: 700; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-h a, .card-h .link-btn { font-size: 13.5px; color: var(--accent-ink); font-weight: 500; text-decoration: none; }
.eyebrow { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.field { width: 100%; background: var(--field); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.field::placeholder { color: var(--mute); }
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(11, 127, 166, .15); }
textarea.field { resize: vertical; min-height: 84px; }
label.lb { display: block; font-size: 13px; font-weight: 600; color: var(--ink2); margin-bottom: 6px; }
.form-row { display: grid; gap: 14px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.msg { font-size: 13.5px; min-height: 1.2em; margin-top: 10px; }
.msg.ok { color: var(--ok); }
.msg.bad { color: var(--bad); }
.av { border-radius: 50%; object-fit: cover; background: var(--sink); border: 2px solid var(--card); box-shadow: 0 0 0 1.5px var(--line); flex: none; }
.av-sm { width: 32px; height: 32px; }
.av-md { width: 46px; height: 46px; }
.av-lg { width: 76px; height: 76px; }
.empty { text-align: center; color: var(--mute); font-size: 14.5px; padding: 26px 12px; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--card); flex-wrap: wrap; }
.seg button { padding: 7px 14px; font-size: 13.5px; font-weight: 600; color: var(--ink2); transition: background .2s, color .2s; }
.seg button.on { background: var(--ink); color: var(--bg); }

/* login */
.lp { min-height: 100vh; display: grid; grid-template-columns: 1.2fr 1fr; }
.lp-l { padding: 34px clamp(24px, 5vw, 64px); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.lp-lines { position: absolute; inset: 0; pointer-events: none; }
.lp-lines i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); opacity: .6; }
.lp-top { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; position: relative; }
.lp-top img { width: 38px; height: 38px; border-radius: 11px; }
.lp-hero { margin: auto 0; padding: 40px 0; position: relative; max-width: 620px; }
.lp-h { font-weight: 800; font-size: clamp(2.3rem, 4.4vw, 4rem); line-height: 1.03; letter-spacing: -.035em; }
.hl { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hl > span { display: block; transform: translateY(112%); animation: slideup .95s cubic-bezier(.2, .75, .15, 1) forwards; animation-delay: calc(var(--i) * .12s + .15s); }
.lp-h em { font-style: normal; color: var(--accent); }
.lp-sub { margin: 18px 0 26px; color: var(--ink2); font-size: 1.08rem; max-width: 46ch; opacity: 0; animation: fadein .8s .7s forwards; }
.clockbox { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.lp-hero .clockbox, .lp-hero .dtl, .floaters { opacity: 0; animation: fadein .8s .85s forwards; }
.clock { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 4.6vw, 3.6rem); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.cdate { color: var(--mute); font-size: 14.5px; }
.floaters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.floaters span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 500; animation: bob 4s ease-in-out infinite alternate; }
.floaters span:nth-child(2) { animation-delay: 1.2s; }
.floaters span:nth-child(3) { animation-delay: 2.4s; }
.floaters .ic { width: 15px; height: 15px; color: var(--ok); }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-5px); } }
.lp-foot { font-size: 13px; color: var(--mute); position: relative; }
.lp-foot a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.lp-r { display: flex; align-items: center; justify-content: center; padding: 32px; background: var(--sink); border-left: 1px solid var(--line); }
.lp-card { width: min(400px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.lp-card h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 4px; }
.lp-card > p { color: var(--mute); font-size: 14.5px; margin-bottom: 20px; }
.lp-group { margin-bottom: 16px; }
#lp-error-msg { display: none; background: var(--bad-bg); color: var(--bad-fg); border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 500; margin-bottom: 16px; }
.lp-btns { display: flex; gap: 10px; margin-top: 22px; }
.lp-btns .btn-primary { flex: 1; }
#loginSpinner { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }

/* day timeline */
.dtl { position: relative; padding-bottom: 38px; max-width: 560px; }
.dtl-bar { position: relative; height: 6px; border-radius: 4px; background: var(--line); }
.dtl-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 4px; background: var(--accent); transition: width 1s linear; }
.dtl-dot { position: absolute; top: 50%; left: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--accent); border: 4px solid var(--bg); box-shadow: 0 0 0 1.5px var(--accent); animation: pulse 2s infinite; transition: left 1s linear; }
.dtl-tick { position: absolute; top: -5px; width: 2px; height: 16px; background: var(--ink2); margin-left: -1px; border-radius: 1px; }
.dtl-lbl span { position: absolute; top: 20px; transform: translateX(-50%); font-family: var(--f-mono); font-size: 11.5px; color: var(--mute); white-space: nowrap; }
.dtl-lbl span.r { transform: translateX(-100%); }
.dk .dtl-bar { background: var(--navy-line); }
.dk .dtl-dot { border-color: var(--navy); background: var(--hi); box-shadow: 0 0 0 1.5px var(--hi); }
.dk .dtl-fill { background: var(--hi); }
.dk .dtl-tick { background: var(--navy-mute); }
.dk .dtl-lbl span { color: var(--navy-mute); }

/* shell */
.nav { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 14px; width: min(1360px, 100% - 40px); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.brand small { display: block; font-family: var(--f-body); font-weight: 400; font-size: 11px; color: var(--mute); line-height: 1.1; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; padding: 8px 13px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink2); white-space: nowrap; transition: background .2s, color .2s; }
.tab:hover { background: var(--sink); color: var(--ink); }
.tab.on { background: var(--ink); color: var(--bg); }
.tab em { font-style: normal; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 0 6px; margin-left: 6px; line-height: 17px; display: inline-block; }
[data-theme="dark"] .tab em { color: #04202A; }
.nav-r { display: flex; align-items: center; gap: 10px; }
.nav-clock { font-family: var(--f-mono); font-size: 13.5px; color: var(--ink2); font-variant-numeric: tabular-nums; padding: 5px 11px; background: var(--sink); border-radius: 999px; }
.nav-user { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; color: var(--ink2); }
.burger { display: none; }
.drawer-l { position: fixed; inset: 0; z-index: 120; visibility: hidden; pointer-events: none; }
.drawer-l.open { visibility: visible; pointer-events: auto; }
.bd { position: absolute; inset: 0; background: rgba(8, 14, 24, .5); opacity: 0; transition: opacity .3s; }
.open > .bd { opacity: 1; }
.drawer-p { position: absolute; top: 0; bottom: 0; left: 0; width: 280px; background: var(--bg); padding: 18px 14px; transform: translateX(-100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); display: grid; gap: 4px; align-content: start; border-right: 1px solid var(--line); }
.open .drawer-p { transform: none; }
.drawer-p .tab { display: block; text-align: left; font-size: 16px; padding: 12px 14px; }

/* pages */
.page { display: none; padding: 28px 0 70px; }
.page.on { display: block; animation: fadein .35s both; }
.pg-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.pg-h h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; }
.pg-h p { color: var(--mute); font-size: 14.5px; margin-top: 4px; }
.acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mt { margin-top: 16px; }

/* hero rows */
.hero-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.hello { display: flex; gap: 18px; align-items: center; }
.hello h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; margin: 4px 0 8px; }
.meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--mute); }
.meta b { color: var(--ink2); font-weight: 600; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hint { color: var(--mute); font-size: 14.5px; margin-top: 6px; }
.dk { background: var(--navy); color: var(--navy-ink); border-radius: 20px; padding: 22px; border: 1px solid var(--navy-line); }
.dk .eyebrow { color: var(--hi); }
.dk .clock { font-size: clamp(2.2rem, 3.6vw, 3rem); }
.dk .hint { color: var(--navy-mute); }
.dk .sum div { border-color: var(--navy-line); }
.dk .sum span:first-child { color: var(--navy-mute); }
.dk .btn-primary { background: var(--hi); color: #04202A; }
.dk .btn-primary:hover:not(:disabled) { background: #fff; color: #04202A; }
.dk .btn-line { border-color: var(--navy-mute); color: var(--navy-ink); }
.dk .btn-line:hover:not(:disabled) { background: var(--navy-ink); color: var(--navy); }
.dk .chip { background: #1B2B45; color: var(--navy-ink); }
.dk .chip-ontime { background: #143327; color: #7FE0B0; }
.dk .chip-late { background: #3B1C1A; color: #FFA79B; }
.dk .chip-offday { background: #10304A; color: #7FE3F5; }
.act-row { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.act-row .btn { flex: 1; min-width: 140px; height: 52px; font-size: 16px; }
#checkInBtn:not(:disabled) { animation: pulse 2.2s infinite; }
#checkInBtn.done { background: var(--ok); color: #fff; animation: none; opacity: 1; }
.sum { display: grid; gap: 2px; margin-top: 14px; font-size: 14.5px; }
.sum div { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.sum div:last-child { border-bottom: 0; }
.sum span:first-child { color: var(--mute); }
.sum b { font-weight: 600; font-variant-numeric: tabular-nums; }
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; font-size: 14.5px; font-weight: 500; margin-bottom: 16px; }
.banner.info { background: var(--info-bg); color: var(--info-fg); }
.banner .ic { width: 20px; height: 20px; }
.notice { display: flex; align-items: center; gap: 14px; padding: 14px 20px; background: var(--navy); color: var(--navy-ink); border-radius: 16px; border: 1px solid var(--navy-line); }
.notice .ic { color: var(--hi); width: 22px; height: 22px; }
.notice .eyebrow { color: var(--hi); font-size: 11px; }

/* stats */
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; position: relative; overflow: hidden; }
.stat small { display: block; color: var(--mute); font-size: 13px; }
.stat b { display: block; font-family: var(--f-display); font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .ic { position: absolute; right: 14px; top: 14px; width: 20px; height: 20px; color: var(--line); }
.stat.s-ok b { color: var(--ok); }
.stat.s-bad b { color: var(--bad); }
.stat.s-acc b { color: var(--accent); }
.stat.s-warn b { color: var(--warn); }
.stat button { position: absolute; inset: 0; }

/* calendar */
.cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 10px; }
.cal-h b { font-family: var(--f-display); font-size: 1.1rem; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal b { text-align: center; font-family: var(--f-mono); font-size: 11px; font-weight: 400; color: var(--mute); padding-bottom: 4px; }
.cal i { aspect-ratio: 1; border-radius: 10px; background: var(--sink); display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 600; color: var(--mute); animation: cell .35s both; animation-delay: calc(var(--c) * 12ms); min-width: 0; }
.cal i.e { visibility: hidden; }
.cal i.ok { background: var(--ok-bg); color: var(--ok-fg); }
.cal i.late { background: var(--bad-bg); color: var(--bad-fg); }
.cal i.abs { background: transparent; color: var(--bad-fg); border: 1.5px solid var(--bad); }
.cal i.lv { background: var(--warn-bg); color: var(--warn-fg); }
.cal i.hlv { background: var(--warn-bg); color: var(--warn-fg); border: 1.5px dashed var(--warn); }
.cal i.off { background: transparent; border: 1.5px dashed var(--line); }
.cal i.hol { background: var(--info-bg); color: var(--info-fg); }
.cal i.ow { background: var(--info-bg); color: var(--info-fg); box-shadow: inset 0 0 0 1.5px var(--accent); }
.cal i.up { background: transparent; color: var(--mute); }
.cal i.today { outline: 2px solid var(--accent); outline-offset: 1px; }
.legend { display: flex; gap: 14px; margin-top: 14px; font-size: 12.5px; color: var(--mute); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.legend .ok { background: var(--ok-bg); border: 1px solid var(--ok); }
.legend .late { background: var(--bad-bg); border: 1px solid var(--bad); }
.legend .abs { border: 1.5px solid var(--bad); }
.legend .lv { background: var(--warn-bg); border: 1px solid var(--warn); }
.legend .off { border: 1.5px dashed var(--mute); }
.legend .ow { background: var(--info-bg); border: 1px solid var(--accent); }

/* lists and tables */
.ln { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.ln:last-child { border-bottom: 0; }
.ln small { color: var(--mute); display: block; font-size: 12.5px; }
.ln .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ln .who span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-acts { display: flex; gap: 6px; flex-shrink: 0; }
.tbl { width: 100%; font-size: 14.5px; }
.tbl th { text-align: left; font-family: var(--f-mono); font-weight: 400; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--sink); white-space: nowrap; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr { transition: background .2s; }
.tbl tbody tr:hover { background: var(--sink); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl small { color: var(--mute); }
.tbl a { color: var(--accent-ink); font-weight: 600; font-size: 13.5px; }
.tbl.sm th, .tbl.sm td { padding: 9px 12px; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.scroll-x { overflow-x: auto; }
.min-640 { min-width: 640px; }
.emp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.emp-card { text-align: left; display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; transition: transform .25s, border-color .25s; }
.emp-card:hover { transform: translateY(-3px); border-color: var(--ink); }
.emp-card p { font-weight: 600; }
.emp-card small { display: block; color: var(--mute); font-size: 13px; margin-bottom: 6px; }
.emp-card .ic { color: var(--line); margin-left: auto; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; min-width: 0; }
.bars i { display: block; width: 100%; background: color-mix(in srgb, var(--accent) 30%, var(--sink)); border-radius: 5px 5px 0 0; transform-origin: bottom; animation: grow .7s cubic-bezier(.2, .8, .2, 1) both; min-height: 3px; }
.bars div.off i { background: var(--line); }
.bars div.last i { background: var(--accent); }
.bars span { font-family: var(--f-mono); font-size: 10.5px; color: var(--mute); }
.steps { display: flex; margin: 2px 0 18px; gap: 6px; }
.step { flex: 1; font-size: 12.5px; color: var(--mute); }
.step::before { content: ''; display: block; height: 3px; background: var(--line); border-radius: 2px; margin-bottom: 8px; }
.step b { display: block; font-weight: 600; color: var(--ink2); }
.step.on::before { background: var(--accent); }
.step.on b { color: var(--ink); }
.task-title { font-family: var(--f-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.doc-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; color: var(--accent-ink); text-decoration: none; margin-bottom: 16px; }
.doc-link:hover { text-decoration: underline; }
.submit-row { display: flex; gap: 10px; }
.submit-row .field { flex: 1; min-width: 0; }
.notice-item { border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 14px 18px; margin-bottom: 10px; }
.notice-item small { color: var(--mute); font-size: 12.5px; display: block; margin-top: 6px; }
.inq-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 10px; }
.inq-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.inq-head b { font-family: var(--f-display); font-size: 1.1rem; }
.inq-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--ink2); }
.inq-meta a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.inq-msg { background: var(--sink); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; white-space: pre-wrap; word-break: break-word; }
.inq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.pol { display: grid; gap: 8px; font-size: 14.5px; color: var(--ink2); }
.pol div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: 7px 0; }
.pol b { font-weight: 600; color: var(--ink); }
.rpt-top { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin-bottom: 16px; }
.rpt-top > div { min-width: 180px; }
.print-title { display: none; }

/* slide-over and dialog */
.slide { position: fixed; inset: 0; z-index: 130; visibility: hidden; pointer-events: none; }
.slide.open { visibility: visible; pointer-events: auto; }
.slide-p { position: absolute; top: 0; right: 0; bottom: 0; width: min(660px, 100%); background: var(--bg); padding: 28px 26px; overflow-y: auto; transform: translateX(100%); transition: transform .4s cubic-bezier(.2, .8, .2, 1); border-left: 1px solid var(--line); box-shadow: -20px 0 50px -20px rgba(0, 0, 0, .35); }
.open .slide-p { transform: none; }
.x-btn { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 12px; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; background: var(--card); }
.d-head { display: flex; align-items: center; gap: 16px; margin: 6px 0 22px; padding-right: 40px; }
.d-head h2 { font-size: 1.5rem; font-weight: 800; }
.d-head p { color: var(--mute); font-size: 14px; }
.d-sec { font-family: var(--f-display); font-size: 1.05rem; font-weight: 700; margin: 22px 0 10px; }
.dlg { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(8, 14, 24, .5); }
.dlg-box { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; width: min(440px, 100%); animation: rise .3s both; }
.dlg-box h3 { font-size: 1.25rem; margin-bottom: 6px; }
.dlg-box p { color: var(--mute); font-size: 14.5px; margin-bottom: 14px; }
.dlg-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* responsive */
@media (max-width: 1100px) {
    .g-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .lp { grid-template-columns: 1fr; }
    .lp-r { border-left: 0; border-top: 1px solid var(--line); }
    .lp-hero { padding: 24px 0 8px; }
    .nav .tabs { display: none; }
    .burger { display: inline-flex; }
    .hero-row, .g-2 { grid-template-columns: 1fr; }
    .g-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .wrap, .nav-in { width: calc(100% - 28px); }
    .nav-clock, .nav-user .nm, .brand small { display: none; }
    .g-5, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-2 { grid-template-columns: 1fr; }
    .hello { flex-direction: column; align-items: flex-start; }
    .submit-row { flex-direction: column; }
    .submit-row .btn { width: 100%; }
    .card { padding: 18px; border-radius: 18px; }
    .inq-grid { grid-template-columns: 1fr; }
    .slide-p { padding: 22px 16px; }
    .lp-card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .hl > span { transform: none; }
    .lp-sub, .lp-hero .clockbox, .lp-hero .dtl, .floaters { opacity: 1; }
}
@media print {
    body { background: #fff; color: #000; }
    .nav, .no-print, #toastContainer, .drawer-l, .slide, .dlg, .fabs { display: none !important; }
    .page { display: none !important; padding: 0; }
    .page.on { display: block !important; }
    .card, .panel, .stat { box-shadow: none; border: 1px solid #bbb; background: #fff; }
    .print-title { display: block; margin-bottom: 14px; }
    .cal i, .tbl th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.tab { text-decoration: none; }
.card-h a { text-decoration: none; }

/* nav fit */
.tab { padding: 8px 11px; font-size: 14px; }
@media (max-width: 1500px) { .nav-user .nm { display: none; } }
@media (max-width: 1300px) { .nav-clock { display: none; } }
