/* Elity İK – arayüz stilleri (framework'süz) */
:root {
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #e3e8ef;
  --line-2: #cfd7e3;
  --text: #0f1b2d;
  --text-2: #4a5a70;
  --text-3: #7d8ba0;
  --brand: #0f766e;
  --brand-2: #115e59;
  --brand-soft: #e6f4f2;
  --accent: #2563eb;
  --ok: #15803d; --ok-bg: #e8f6ec;
  --bad: #b91c1c; --bad-bg: #fdecec;
  --warn: #b45309; --warn-bg: #fdf3e2;
  --info: #1d4ed8; --info-bg: #e8effd;
  --mute: #55657a; --mute-bg: #eef1f5;
  --side: #0b1726;
  --side-2: #12233a;
  --side-text: #a9b8cc;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 4px 16px rgba(15, 27, 45, .05);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.5 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 1.35rem; } h2 { font-size: 1.1rem; } h3 { font-size: .98rem; }
code, pre, .mono { font-family: var(--mono); font-size: .85em; }
pre { background: #0b1726; color: #d6e2f0; padding: 14px 16px; border-radius: 8px; overflow: auto; line-height: 1.55; }
code { background: var(--mute-bg); padding: 1px 5px; border-radius: 4px; }
pre code { background: none; padding: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.muted { color: var(--text-3); } .small { font-size: 12.5px; } .nowrap { white-space: nowrap; }
.right { text-align: right; } .center { text-align: center; }
.ok { color: var(--ok); } .bad { color: var(--bad); } .warn { color: var(--warn); }

/* --- yerleşim --- */
.app { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-text); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.side::-webkit-scrollbar { width: 6px; } .side::-webkit-scrollbar-thumb { background: #22364f; border-radius: 3px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, #14b8a6, #0f766e 60%, #134e4a); display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 4px 10px rgba(20,184,166,.25); }
.brand small { display: block; font-weight: 500; font-size: 11.5px; color: var(--side-text); }
.nav { padding: 6px 10px 20px; flex: 1; }
.nav-title { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: #5f7590; margin: 16px 10px 6px; font-weight: 600; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px; color: var(--side-text); font-size: 13.5px; text-decoration: none; position: relative; }
.nav a svg { width: 17px; height: 17px; flex: none; opacity: .8; }
.nav a:hover { background: var(--side-2); color: #fff; }
.nav a.active { background: linear-gradient(90deg, rgba(20,184,166,.18), rgba(20,184,166,.04)); color: #fff; }
.nav a.active::before { content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: #2dd4bf; }
.nav .count { margin-left: auto; background: #f59e0b; color: #1f1300; font-size: 11px; font-weight: 700; padding: 0 7px; border-radius: 10px; }
.side-foot { padding: 12px 16px; border-top: 1px solid #172a42; font-size: 12px; color: #5f7590; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 60px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 24px; position: sticky; top: 0; z-index: 20; }
.topbar .page-title { font-weight: 650; font-size: 15.5px; }
.topbar .spacer { flex: 1; }
.menu-btn { display: none; }
.content { padding: 22px 24px 48px; max-width: 1480px; width: 100%; }
.page-head { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .sub { color: var(--text-3); font-size: 13px; margin-top: 2px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* --- kartlar --- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-h h2, .card-h h3 { margin: 0; }
.card-h .actions { margin-left: auto; display: flex; gap: 8px; }
.card-b { padding: 18px; }
.card + .card, .grid + .card, .card + .grid { margin-top: 18px; }
.grid > .card, .grid > div > .card:first-child { margin-top: 0; }
.grid > div > .card + .card { margin-top: 18px; }
.grid { display: grid; gap: 18px; }
.grid > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-side { grid-template-columns: minmax(0, 1fr) 360px; }

.stat { padding: 16px 18px; display: flex; gap: 14px; align-items: center; }
.stat .ico { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.stat .ico svg { width: 21px; height: 21px; }
.stat .v { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.stat .l { color: var(--text-3); font-size: 12.5px; }
.ico.ok { background: var(--ok-bg); color: var(--ok); } .ico.bad { background: var(--bad-bg); color: var(--bad); }
.ico.warn { background: var(--warn-bg); color: var(--warn); } .ico.info { background: var(--info-bg); color: var(--info); }
.ico.brand { background: var(--brand-soft); color: var(--brand); }

/* --- tablo --- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
.t th { text-align: left; font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); background: var(--surface-2); padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td { background: #fafcfe; }
.t.compact td { padding: 7px 10px; }
.t .num { text-align: right; font-variant-numeric: tabular-nums; }
.empty { padding: 36px; text-align: center; color: var(--text-3); }

.person { display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #cce7e3, #a7d8d1); color: var(--brand-2); display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.person b { font-weight: 600; display: block; line-height: 1.2; }
.person span { color: var(--text-3); font-size: 12px; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 20px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); } .badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-warn { background: var(--warn-bg); color: var(--warn); } .badge-info { background: var(--info-bg); color: var(--info); }
.badge-mute { background: var(--mute-bg); color: var(--mute); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.on { background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.15); } .dot.off { background: #94a3b8; }

/* --- form --- */
label { display: block; font-weight: 550; font-size: 12.5px; color: var(--text-2); margin-bottom: 5px; }
.field { margin-bottom: 14px; }
.field .hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input[type=url], input[type=search], input[type=tel], select, textarea {
  width: 100%; padding: 8px 11px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; font: inherit; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,118,110,.14); }
input[type=color] { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text); margin: 6px 0; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--brand); }
.form-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.form-section { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); margin: 6px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filters .field { margin: 0; min-width: 150px; flex: 0 1 auto; }
@media (max-width: 860px) { .filters .field { flex: 1 1 140px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; color: var(--text); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { background: var(--surface-2); border-color: #b9c4d3; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn-danger { color: var(--bad); border-color: #f1c4c4; }
.btn-danger:hover { background: var(--bad-bg); border-color: #e9a5a5; }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; } .btn-ok:hover { background: #166534; }
.btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 7px; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-group { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.icon-btn { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; cursor: pointer; position: relative; color: var(--text-2); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .pip { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: #dc2626; color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }

.alert { padding: 11px 14px; border-radius: 8px; margin-bottom: 16px; border: 1px solid; font-size: 13.5px; }
.alert-success { background: var(--ok-bg); border-color: #bfe3c9; color: #14532d; }
.alert-error { background: var(--bad-bg); border-color: #f2c2c2; color: #7f1d1d; }
.alert-info { background: var(--info-bg); border-color: #c6d6f7; color: #1e3a8a; }
.alert-warn { background: var(--warn-bg); border-color: #f2d8a7; color: #78350f; }
.alert ul { margin: 4px 0 0 18px; padding: 0; }

/* --- sekmeler --- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 12px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 12px 14px; font: inherit; font-weight: 600; color: var(--text-3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }
.tab-pane { display: none; } .tab-pane.on { display: block; }

/* --- modal --- */
.modal { position: fixed; inset: 0; background: rgba(11, 23, 38, .5); display: none; align-items: flex-start; justify-content: center; z-index: 100; padding: 6vh 16px; overflow-y: auto; backdrop-filter: blur(2px); }
.modal.open { display: flex; }
.modal-box { background: #fff; border-radius: 12px; width: 100%; max-width: 560px; box-shadow: 0 24px 60px rgba(11,23,38,.3); animation: pop .16s ease-out; }
.modal-box.wide { max-width: 860px; }
.modal-h { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-h h3 { margin: 0; }
.modal-h .x { margin-left: auto; background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--text-3); line-height: 1; }
.modal-b { padding: 20px; }
.modal-f { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; background: var(--surface-2); border-radius: 0 0 12px 12px; }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }

/* --- bildirim / dropdown --- */
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 40px rgba(11,23,38,.15); min-width: 240px; display: none; z-index: 50; overflow: hidden; }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu .item { display: block; padding: 9px 14px; color: var(--text); font-size: 13px; border-bottom: 1px solid var(--line); text-decoration: none; }
.dropdown-menu a:hover { background: var(--surface-2); }
.dropdown-menu .item small { display: block; color: var(--text-3); }
.user-chip { display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 4px 8px 4px 4px; border-radius: 22px; border: 1px solid var(--line); background: #fff; }
.user-chip .avatar { width: 28px; height: 28px; font-size: 11px; }
.user-chip b { font-size: 13px; font-weight: 600; }

.toast-wrap { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { background: #0b1726; color: #fff; padding: 11px 16px; border-radius: 9px; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 13.5px; max-width: 380px; animation: pop .2s; }
.toast.err { background: #991b1b; } .toast.ok { background: #14532d; }

/* --- puantaj ızgara --- */
.ts-grid { border-collapse: separate; border-spacing: 0; font-size: 12px; }
.ts-grid th, .ts-grid td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0; text-align: center; min-width: 34px; height: 34px; }
.ts-grid th { background: var(--surface-2); font-weight: 600; color: var(--text-2); position: sticky; top: 0; z-index: 2; }
.ts-grid th.we { background: #eef2f7; color: var(--text-3); }
.ts-grid td.name { text-align: left; padding: 0 10px; min-width: 200px; position: sticky; left: 0; background: #fff; z-index: 1; white-space: nowrap; }
.ts-grid th.name { position: sticky; left: 0; z-index: 3; text-align: left; padding-left: 10px; }
.ts-grid td.sum { font-weight: 600; padding: 0 8px; white-space: nowrap; }
.cell { display: block; height: 100%; line-height: 34px; font-weight: 700; font-size: 11px; cursor: default; }
.c-present { background: #e8f6ec; color: #166534; } .c-late { background: #fff4dc; color: #92400e; }
.c-absent { background: #fde8e8; color: #991b1b; } .c-leave { background: #e5edfd; color: #1e40af; }
.c-holiday { background: #f1e8fd; color: #6b21a8; } .c-weekend { background: #f3f5f8; color: #94a3b8; }
.c-missing { background: #fff0e0; color: #c2410c; } .c-future, .c-none { background: #fff; color: #cbd5e1; } .c-exempt { background: #f3f5f8; color: #64748b; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--text-2); }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -3px; margin-right: 5px; }

/* --- okutma ekranı --- */
.punch-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; }
.punch-left { padding: 28px; background: radial-gradient(1200px 400px at -10% -20%, #134e4a 0%, #0b1726 60%); color: #e6eef8; }
.clock { font-size: 56px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.clock-date { color: #94a9c2; margin-top: 6px; }
.punch-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.punch-btn { border: 0; border-radius: 14px; padding: 20px 10px; font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: transform .08s, filter .15s; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 8px 18px rgba(0,0,0,.25); }
.punch-btn svg { width: 28px; height: 28px; }
.punch-btn.in { background: linear-gradient(180deg, #16a34a, #15803d); }
.punch-btn.out { background: linear-gradient(180deg, #e2554f, #b91c1c); }
.punch-btn:hover { filter: brightness(1.06); } .punch-btn:active { transform: scale(.98); }
.punch-btn[disabled] { filter: grayscale(.7) brightness(.8); cursor: wait; }
.checks { margin-top: 22px; display: grid; gap: 8px; font-size: 13px; }
.checks div { display: flex; align-items: center; gap: 8px; }
.checks .st { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: #334155; color: #cbd5e1; flex: none; }
.checks .st.ok { background: #16a34a; color: #fff; } .checks .st.bad { background: #dc2626; color: #fff; } .checks .st.wait { background: #ca8a04; color: #fff; }
.punch-map { min-height: 380px; background: #dfe6ee; }
#map, .map { width: 100%; height: 100%; min-height: 380px; }
.map-fallback { display: grid; place-items: center; height: 100%; min-height: 200px; color: var(--text-3); font-size: 13px; text-align: center; padding: 20px; }
.map-sm { height: 340px; border-radius: 8px; border: 1px solid var(--line); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); align-items: center; }
.timeline li:last-child { border: 0; }
.timeline .tm { font-weight: 700; font-variant-numeric: tabular-nums; width: 52px; }

/* --- grafik --- */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.bars .b span { display: block; width: 100%; max-width: 34px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #14b8a6, #0f766e); min-height: 2px; transition: height .4s; }
.bars .b span.late { background: linear-gradient(180deg, #fbbf24, #d97706); }
.bars .b em { font-style: normal; font-size: 10.5px; color: var(--text-3); }
.progress { height: 8px; background: var(--mute-bg); border-radius: 6px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 14px; font-size: 13.5px; }
.kv dt { color: var(--text-3); } .kv dd { margin: 0; font-weight: 500; }
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.secret { font-family: var(--mono); font-size: 12.5px; background: #0b1726; color: #5eead4; padding: 10px 12px; border-radius: 8px; word-break: break-all; display: flex; gap: 10px; align-items: center; }
.secret button { margin-left: auto; flex: none; }
.endpoint { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-family: var(--mono); font-size: 12.5px; word-break: break-all; }
.endpoint .m { background: var(--brand); color: #fff; font-weight: 700; border-radius: 4px; padding: 1px 6px; font-size: 11px; flex: none; }
.endpoint .m.get { background: var(--accent); }
.endpoint button { margin-left: auto; flex: none; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.cal > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 104px; padding: 6px; font-size: 12px; }
.cal .hd { min-height: 0; background: var(--surface-2); font-weight: 600; color: var(--text-3); text-align: center; text-transform: uppercase; font-size: 11px; }
.cal .dnum { font-weight: 700; color: var(--text-2); }
.cal .other { background: #fafbfc; color: var(--text-3); }
.cal .today .dnum { background: var(--brand); color: #fff; border-radius: 10px; padding: 0 6px; }
.cal .hol { background: #faf5ff; }
.cal .ev { display: block; border-radius: 4px; padding: 1px 5px; margin-top: 3px; color: #fff; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- oturum ekranları --- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { background: radial-gradient(900px 500px at 10% 0%, #115e59 0%, #0b1726 55%); color: #e2ecf7; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-art::after { content: ""; position: absolute; inset: auto -120px -160px auto; width: 480px; height: 480px; border-radius: 50%; border: 1px solid rgba(94,234,212,.15); box-shadow: 0 0 0 60px rgba(94,234,212,.03), 0 0 0 120px rgba(94,234,212,.02); }
.auth-art h1 { font-size: 34px; color: #fff; max-width: 460px; }
.auth-art ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; color: #a9bdd3; }
.auth-art li { display: flex; gap: 10px; align-items: center; }
.auth-art li::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; background: rgba(45,212,191,.15); color: #5eead4; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; background: #fff; }
.auth-form .box { width: 100%; max-width: 380px; }

@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-side, .g3 { grid-template-columns: 1fr; }
  .punch-hero { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 262px; z-index: 90; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .side { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.4); }
  .menu-btn { display: grid; }
  .content { padding: 16px; }
  .topbar { padding: 0 16px; }
  .g2 { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; } .auth-art { display: none; }
  .user-chip b { display: none; }
  .clock { font-size: 44px; }
  .kv { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .g4 { gap: 10px; } .stat { padding: 12px; gap: 10px; } .stat .ico { width: 34px; height: 34px; } .stat .v { font-size: 19px; } .page-head h1 { font-size: 1.15rem; } }
@media (max-width: 340px) { .g4 { grid-template-columns: 1fr; } }
@media print { .side, .topbar, .no-print, .page-head .actions { display: none !important; } .app { display: block; } .card { box-shadow: none; } }
