/* Reusable components */
/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: var(--r-md); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 500;
  cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--navy-700); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--royal-500); }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger:hover { filter: brightness(1.08); background: var(--red); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn-sm svg { width: 14px; height: 14px; }
.icon-btn { width: 38px; height: 38px; border-radius: var(--r-md); border: 0; background: transparent; color: var(--text-2); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 19px; height: 19px; }
.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; }
.btn-group .btn:first-child { border-radius: var(--r-md) 0 0 var(--r-md); }
.btn-group .btn:last-child { border-radius: 0 var(--r-md) var(--r-md) 0; }
.btn-group .btn + .btn { margin-left: -1px; }
.btn-group .btn.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); z-index: 1; }

/* Forms */
input, select, textarea {
  font: inherit; font-size: 14px; color: var(--text); background: var(--surface);
  border: 1px solid var(--slate-300); border-radius: var(--r-md); padding: 7px 10px; height: 36px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 84px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; padding: 0; accent-color: var(--accent); }
input[type="file"] { padding: 5px; height: auto; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.field label .req { color: var(--red); margin-left: 2px; }
.field .help { font-size: 11.5px; color: var(--text-3); }
.field .err { font-size: 12px; color: var(--red); display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); }
.field.invalid .err { display: block; }
.field.check { flex-direction: row; align-items: center; gap: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-section { grid-column: 1 / -1; font-size: 12px; font-weight: 600; color: var(--accent); padding-top: 4px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.card-head h3 { font-size: 14.5px; }
.card-body { padding: 16px; }
.card-body.flush { padding: 0; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--sp-3); }
.kpi {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px 16px;
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer; text-align: left; font: inherit; color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s; width: 100%;
}
.kpi:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.kpi .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
.kpi .ic svg { width: 19px; height: 19px; }
.kpi .lbl { font-size: 12px; color: var(--text-3); line-height: 1.3; }
.kpi .val { font-size: 21px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi.green .ic { background: var(--green-bg); color: var(--green); }
.kpi.amber .ic { background: var(--amber-bg); color: var(--amber); }
.kpi.red .ic { background: var(--red-bg); color: var(--red); }
.kpi.purple .ic { background: var(--purple-bg); color: var(--purple); }
.kpi.cyan .ic { background: var(--cyan-bg); color: var(--cyan); }
.chart-box { position: relative; height: 260px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 500; white-space: nowrap; background: var(--surface-2); color: var(--text-2); line-height: 1.6; }
.badge.blue { background: var(--royal-100); color: var(--royal-600); }
.badge.green { background: var(--green-bg); color: var(--green); }
.badge.amber { background: var(--amber-bg); color: var(--amber); }
.badge.red { background: var(--red-bg); color: var(--red); }
.badge.purple { background: var(--purple-bg); color: var(--purple); }
.badge.cyan { background: var(--cyan-bg); color: var(--cyan); }
.badge.navy { background: var(--navy-800); color: #fff; }
.badge svg { width: 12px; height: 12px; }
.prio-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }

/* Tables */
.table-toolbar { display: flex; gap: var(--sp-2); align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.table-toolbar .search { position: relative; flex: 1; min-width: 180px; max-width: 320px; }
.table-toolbar .search input { padding-left: 32px; height: 34px; }
.table-toolbar .search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-3); }
.table-wrap { overflow-x: auto; }
table.dt { width: 100%; border-collapse: collapse; font-size: 13px; }
table.dt th { text-align: left; font-weight: 600; font-size: 12px; color: var(--text-2); background: var(--surface-2); padding: 9px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; user-select: none; position: sticky; top: 0; }
table.dt th.sortable { cursor: pointer; }
table.dt th.sortable:hover { color: var(--text); }
table.dt th .sort { opacity: .5; font-size: 10px; margin-left: 4px; }
table.dt td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.dt tbody tr { transition: background .1s; }
table.dt tbody tr.clickable { cursor: pointer; }
table.dt tbody tr:hover { background: var(--royal-50); }
table.dt td.right, table.dt th.right { text-align: right; }
table.dt .cell-main { font-weight: 500; }
table.dt .cell-sub { font-size: 11.5px; color: var(--text-3); }
.table-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; font-size: 12.5px; color: var(--text-3); gap: 10px; flex-wrap: wrap; }
.pager { display: flex; gap: 4px; align-items: center; }
.pager select { height: 30px; width: auto; padding: 2px 6px; font-size: 12.5px; }
.col-menu { position: absolute; z-index: 40; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 8px; min-width: 200px; max-height: 320px; overflow: auto; }
.col-menu label { display: flex; gap: 8px; align-items: center; padding: 5px 6px; font-size: 13px; cursor: pointer; border-radius: 4px; }
.col-menu label:hover { background: var(--surface-2); }

/* Filters bar */
.filters { display: flex; gap: var(--sp-2); flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--surface); align-items: flex-end; }
.filters .field { width: 160px; }
.filters .field label { font-size: 11.5px; }
.filters select, .filters input { height: 32px; font-size: 13px; padding: 4px 8px; }

/* Tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: 10px 14px; font: inherit; font-size: 13.5px; color: var(--text-2); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 500; }
.tab-body { padding-top: var(--sp-4); }

/* Modal */
.overlay { position: fixed; inset: 0; background: rgba(11,31,63,.45); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; overflow-y: auto; animation: fade .15s; }
.modal { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 640px; animation: rise .2s var(--ease); display: flex; flex-direction: column; max-height: 88vh; }
.modal.lg { max-width: 900px; }
.modal.sm { max-width: 440px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); flex: none; }
.modal-head h3 { font-size: 16px; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); flex: none; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* Slide-out panel */
.panel-overlay { position: fixed; inset: 0; background: rgba(11,31,63,.35); z-index: 90; animation: fade .15s; }
.panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 100%); background: var(--surface); z-index: 91; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slidein .22s var(--ease); }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } }
.panel-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex: none; }
.panel-body { padding: 18px 20px 28px; overflow-y: auto; flex: 1; }
.panel-actions { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 20px; border-bottom: 1px solid var(--border); background: var(--surface-2); flex: none; }

/* Detail list */
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.dl > div { min-width: 0; }
.dl dt, .dl .k { font-size: 11.5px; color: var(--text-3); }
.dl dd, .dl .v { margin: 2px 0 0; font-size: 13.5px; overflow-wrap: anywhere; }
.dl .full { grid-column: 1 / -1; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 16px 28px; }
.timeline li::before { content: ""; position: absolute; left: 9px; top: 20px; bottom: 0; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline .tl-dot { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.timeline .tl-dot svg { width: 11px; height: 11px; }
.timeline .tl-dot.green { background: var(--green-bg); color: var(--green); }
.timeline .tl-dot.amber { background: var(--amber-bg); color: var(--amber); }
.timeline .tl-dot.red { background: var(--red-bg); color: var(--red); }
.timeline .tl-title { font-size: 13px; font-weight: 500; }
.timeline .tl-meta { font-size: 11.5px; color: var(--text-3); }
.timeline .tl-text { font-size: 13px; color: var(--text-2); margin-top: 3px; white-space: pre-wrap; overflow-wrap: anywhere; }
.timeline .internal { background: var(--amber-bg); border-radius: 6px; padding: 6px 8px; }

/* Stepper (progress) */
.stepper { display: flex; gap: 0; overflow-x: auto; padding: 4px 0 8px; }
.step { flex: 1; min-width: 92px; text-align: center; position: relative; font-size: 11.5px; color: var(--text-3); }
.step::before { content: ""; position: absolute; top: 11px; left: -50%; right: 50%; height: 2px; background: var(--border); z-index: 0; }
.step:first-child::before { display: none; }
.step .dot { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--border); margin: 0 auto 6px; position: relative; z-index: 1; display: grid; place-items: center; }
.step .dot svg { width: 12px; height: 12px; }
.step.done { color: var(--text-2); }
.step.done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.step.done::before, .step.current::before { background: var(--green); }
.step.current { color: var(--accent); font-weight: 600; }
.step.current .dot { border-color: var(--accent); background: var(--accent-soft); }
.step.rejected .dot { background: var(--red); border-color: var(--red); color: #fff; }

/* Kanban */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: var(--sp-3); overflow-x: auto; padding-bottom: 8px; }
.kcol { background: var(--surface-2); border-radius: var(--r-lg); display: flex; flex-direction: column; max-height: 72vh; min-width: 0; border: 1px solid var(--border); }
.kcol-head { padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 13px; }
.kcol-body { padding: 0 8px 8px; overflow-y: auto; flex: 1; min-height: 80px; display: flex; flex-direction: column; gap: 8px; }
.kcol.drag-over { outline: 2px dashed var(--accent); outline-offset: -2px; background: var(--royal-50); }
.kcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px; cursor: grab; box-shadow: var(--shadow-sm); font-size: 12.5px; }
.kcard:hover { border-color: var(--accent); }
.kcard.dragging { opacity: .5; }
.kcard .kt { font-weight: 500; font-size: 13px; margin: 4px 0; overflow-wrap: anywhere; }
.kcard .km { display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; color: var(--text-3); font-size: 11.5px; align-items: center; }

/* Calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-left: 1px solid var(--border); border-top: 1px solid var(--border); }
.cal .cal-h { font-size: 11.5px; font-weight: 600; color: var(--text-3); padding: 6px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-2); text-align: center; }
.cal .cal-d { min-height: 88px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 4px; font-size: 11.5px; min-width: 0; }
.cal .cal-d.other { background: var(--surface-2); color: var(--text-3); }
.cal .cal-d.today .dn { background: var(--accent); color: #fff; border-radius: 50%; }
.cal .cal-d.weekend { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.cal .dn { width: 22px; height: 22px; display: grid; place-items: center; font-weight: 600; }
.cal .ev { display: block; width: 100%; text-align: left; border: 0; font: inherit; font-size: 11px; padding: 2px 5px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); margin-top: 2px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal .ev.done { background: var(--green-bg); color: var(--green); }
.cal .ev.overdue { background: var(--red-bg); color: var(--red); }
.cal .ev.holiday { background: var(--amber-bg); color: var(--amber); cursor: default; }

/* Toasts */
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 40px)); }
.toast { background: var(--navy-900); color: #fff; padding: 11px 14px; border-radius: var(--r-md); box-shadow: var(--shadow-lg); font-size: 13px; display: flex; gap: 10px; align-items: flex-start; animation: rise .2s var(--ease); }
.toast svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.toast.success svg { color: #5fd38d; }
.toast.error { background: #7a1d1d; }
.toast.warning svg { color: #f5b84d; }

/* Dropdown */
.dropdown { position: absolute; z-index: 50; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); min-width: 240px; padding: 6px; }
.dropdown .dd-item { display: flex; gap: 10px; align-items: center; width: 100%; padding: 8px 10px; border: 0; background: none; font: inherit; font-size: 13px; color: var(--text); border-radius: var(--r-md); cursor: pointer; text-align: left; }
.dropdown .dd-item:hover { background: var(--surface-2); }
.dropdown .dd-item svg { width: 16px; height: 16px; color: var(--text-3); }
.dropdown .dd-sep { height: 1px; background: var(--border); margin: 6px 0; }
.dropdown .dd-label { font-size: 11px; color: var(--text-3); padding: 6px 10px 2px; }
.notif-dd { width: 360px; max-width: calc(100vw - 24px); max-height: 460px; overflow: auto; }
.notif-item { display: flex; gap: 10px; padding: 10px; border-radius: var(--r-md); cursor: pointer; }
.notif-item:hover { background: var(--surface-2); }
.notif-item.unread { background: var(--royal-50); }
.notif-item .ni-t { font-size: 13px; font-weight: 500; }
.notif-item .ni-b { font-size: 12px; color: var(--text-2); }
.notif-item .ni-m { font-size: 11px; color: var(--text-3); }

/* Empty, skeleton */
.empty { text-align: center; padding: 40px 20px; color: var(--text-3); }
.empty .em-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; margin: 0 auto 12px; }
.empty .em-ic svg { width: 24px; height: 24px; }
.empty h4 { color: var(--text); margin-bottom: 4px; }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--slate-200) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite; border-radius: var(--r-md); }
@keyframes shimmer { from { background-position: 100% 50%; } to { background-position: 0 50%; } }

/* Misc */
.sla { font-size: 11.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sla.ok { color: var(--green); } .sla.warn { color: var(--amber); } .sla.over { color: var(--red); font-weight: 600; }
.stars { color: #e8a317; letter-spacing: 1px; white-space: nowrap; }
.star-input { display: flex; gap: 4px; }
.star-input button { border: 0; background: none; font-size: 28px; color: var(--slate-300); cursor: pointer; padding: 0; line-height: 1; }
.star-input button.on { color: #e8a317; }
.alert { padding: 10px 14px; border-radius: var(--r-md); font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.alert svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.alert.info { background: var(--royal-50); color: var(--navy-700); border: 1px solid var(--royal-100); }
.alert.warn { background: var(--amber-bg); color: var(--amber); }
.alert.danger { background: var(--red-bg); color: var(--red); }
.list-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: 0; }
.progress { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.qr-box { display: inline-block; padding: 10px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); }
.thumb { width: 100%; max-height: 220px; object-fit: contain; background: var(--surface-2); border-radius: var(--r-md); border: 1px solid var(--border); }
.att-list { display: flex; flex-direction: column; gap: 6px; }
.att { display: flex; gap: 8px; align-items: center; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--r-md); font-size: 12.5px; }
.att svg { width: 15px; height: 15px; color: var(--text-3); }
.perm-table td, .perm-table th { text-align: center; }
.perm-table td:first-child, .perm-table th:first-child { text-align: left; }
.tree ul { list-style: none; margin: 0; padding-left: 18px; border-left: 1px dashed var(--border); }
.tree > ul { padding-left: 0; border: 0; }
.tree li { padding: 3px 0; }
.tree .node { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }
.tree .node svg { width: 14px; height: 14px; color: var(--text-3); }
.tree details > summary { cursor: pointer; list-style: none; }
.tree details > summary::-webkit-details-marker { display: none; }
.kb-article { border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; }
.kb-article summary { cursor: pointer; font-weight: 500; }
.kb-article .kb-body { margin-top: 10px; color: var(--text-2); white-space: pre-wrap; font-size: 13.5px; }

/* Login */
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--surface); }
.login-side { background: var(--navy-900); color: #dbe4f5; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-side h1 { color: #fff; font-size: 30px; max-width: 460px; }
.login-side p { color: #a9b8d4; max-width: 460px; }
.login-side .feat { display: grid; gap: 12px; margin-top: 28px; }
.login-side .feat div { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.login-side .feat svg { width: 18px; height: 18px; color: #7ea2ff; }
.login-main { padding: 40px; display: flex; align-items: center; justify-content: center; }
.login-box { width: 100%; max-width: 520px; }
.acct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.acct { border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px 12px; cursor: pointer; text-align: left; background: var(--surface); font: inherit; color: var(--text); display: flex; gap: 10px; align-items: center; }
.acct:hover, .acct.sel { border-color: var(--accent); background: var(--royal-50); }
.acct b { display: block; font-size: 13px; }
.acct small { font-size: 11.5px; }
.loading-screen { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 300; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Interactive sign-in mascot ---------- */
.mascot { width: 168px; height: 168px; margin: 0 auto 14px; display: block; }
.mascot svg { width: 100%; height: 100%; overflow: visible; }
.mascot .m-pupils, .mascot .m-arm, .mascot .m-mouth, .mascot .m-head, .mascot .m-lids { transition: transform .32s cubic-bezier(.3,1.4,.5,1), d .25s ease; }
.mascot .m-arm { transform: translateY(0); }
.mascot.cover .m-arm-l { transform: translate(6px, -96px) rotate(4deg); }
.mascot.cover .m-arm-r { transform: translate(-6px, -96px) rotate(-4deg); }
.mascot.cover.peek .m-arm-r { transform: translate(8px, -62px) rotate(-14deg); }
.mascot.cover .m-mouth { transform: translateY(2px) scaleX(.7); transform-origin: 100px 126px; }
.mascot .m-lids { transform: scaleY(0); transform-origin: center 92px; }
.mascot.blink .m-lids { transform: scaleY(1); transition-duration: .08s; }
.mascot.shake .m-head { animation: m-shake .5s; transform-origin: 100px 120px; }
@keyframes m-shake { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-9deg); } 40% { transform: rotate(8deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(4deg); } }
.mascot.happy .m-head { animation: m-hop .6s; }
@keyframes m-hop { 0%,100% { transform: translateY(0); } 40% { transform: translateY(-8px); } }
.otp-boxes { display: flex; gap: 8px; justify-content: center; margin: 6px 0 4px; }
.otp-boxes input { width: 46px; height: 54px; text-align: center; font-size: 22px; font-weight: 700; padding: 0; font-variant-numeric: tabular-nums; }
@media (max-width: 400px) { .otp-boxes input { width: 38px; height: 48px; font-size: 19px; } .otp-boxes { gap: 5px; } }
.emp-photo { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); }
.emp-photo.lg { width: 84px; height: 84px; border: 3px solid var(--surface); box-shadow: var(--shadow-md); }
.photo-row { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
