@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@500;600;700&display=swap');

:root {
  --bg: #eef3f7;
  --bg-2: #dce7f0;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --ink: #102033;
  --muted: #5d7085;
  --line: rgba(16, 32, 51, 0.1);
  --brand: #0b6e6e;
  --brand-2: #0a4f6c;
  --accent: #d97706;
  --ok: #0f8a5f;
  --warn: #b45309;
  --danger: #c24141;
  --shadow: 0 18px 50px rgba(16, 40, 60, 0.12);
  --radius: 22px;
  --nav: 74px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(11, 110, 110, 0.18), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(10, 79, 108, 0.16), transparent 50%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  body { background-attachment: fixed; }
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }

.h1, h1 { font-family: 'Sora', sans-serif; letter-spacing: -0.03em; margin: 0; }
.h2, h2 { font-family: 'Sora', sans-serif; letter-spacing: -0.02em; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 280px 1fr; }
.sidebar {
  position: sticky; top: 0; height: 100vh;
  padding: 22px 16px;
  background: linear-gradient(180deg, #0a3d4d 0%, #0b6e6e 55%, #0f766e 100%);
  color: #edf8f7;
  display: flex; flex-direction: column; gap: 18px;
  overflow: hidden;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  flex: 0 0 auto;
}
.brand-mark {
  width: 44px; height: 44px; border-radius: 14px;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}
.sidebar-close {
  display: none;
  width: 40px; height: 40px; margin-left: auto; flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18); border-radius: 12px;
  background: rgba(255,255,255,.1); color: #fff;
  cursor: pointer;
}
.sidebar-close svg { width: 20px; height: 20px; }
.sidebar-close:active { transform: scale(.94); background: rgba(255,255,255,.2); }
.brand strong { display: block; font-size: 1.2rem; }
.brand span { opacity: 0.75; font-size: 0.82rem; }
.nav {
  display: grid; gap: 14px; align-content: start;
  overflow: auto; padding-right: 4px; flex: 1 1 auto;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent;
}
.nav::-webkit-scrollbar { width: 5px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); border-radius: 99px; }
.nav-group { display: grid; gap: 4px; }
.nav-group__title {
  padding: 4px 12px 6px;
  font-size: .68rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.45);
}
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px;
  color: rgba(255,255,255,0.86); transition: .18s ease;
  font-size: .9rem; font-weight: 600;
}
.nav a .nav-ico {
  width: 18px; height: 18px; flex: 0 0 auto; opacity: .85;
}
.nav a:hover, .nav a.active {
  background: rgba(255,255,255,0.14); color: #fff;
}
.nav a.active {
  box-shadow: inset 3px 0 0 #fff;
  background: rgba(255,255,255,0.16);
}
.nav a.active .nav-ico, .nav a:hover .nav-ico { opacity: 1; }
.sidebar-foot { margin-top: auto; padding: 14px 0 2px; flex: 0 0 auto; }
.sb-user {
  display: flex; align-items: center; gap: 10px; padding: 10px;
  border-radius: 18px; background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 24px rgba(3,30,38,.18);
  backdrop-filter: blur(6px);
}
.sb-user__av { position: relative; flex: 0 0 auto; }
.sb-user__av img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255,255,255,.85);
}
.sb-user__av i {
  position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 0 2.5px #0d6f6c;
}
.sb-user__main { display: grid; gap: 2px; flex: 1 1 auto; min-width: 0; }
.sb-user__main strong { color: #fff; font-size: .88rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user__main small {
  display: flex; align-items: center; gap: 5px; color: rgba(237,248,247,.72);
  font-size: .72rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-user__main small b { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: #86efac; }
.sb-user__acts { display: flex; gap: 6px; flex: 0 0 auto; }
.sb-user__acts form { margin: 0; }
.sb-user__btn {
  width: 34px; height: 34px; display: grid; place-items: center; padding: 0;
  border-radius: 11px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff;
  transition: background .15s ease, transform .12s ease, color .15s ease;
}
.sb-user__btn svg, .sb-user__btn .ui-icon { width: 17px; height: 17px; }
.sb-user__btn:hover { background: rgba(255,255,255,.22); }
.sb-user__btn:active { transform: scale(.94); }
.sb-user__btn.is-out:hover { background: #ef4444; color: #fff; }

.main { padding: 28px; min-width: 0; }
.topbar {
  position: relative; z-index: 30;
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px; margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(420px 120px at 0% 0%, rgba(11,110,110,.1), transparent 60%),
    radial-gradient(360px 140px at 100% 0%, rgba(10,79,108,.08), transparent 55%),
    linear-gradient(180deg, #fff, #f7fafc);
  box-shadow: 0 12px 28px rgba(16,40,60,.05);
}
.topbar-title { display: flex; align-items: center; gap: 14px; min-width: 240px; flex: 1 1 260px; }
.topbar-copy { min-width: 0; }
.topbar-icon {
  width: 52px; height: 52px; border-radius: 16px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(11,110,110,.16), rgba(10,79,108,.12));
  color: var(--brand);
  border: 1px solid rgba(11,110,110,.14);
  box-shadow: 0 10px 24px rgba(11,110,110,.08);
}
.topbar-icon .ui-icon { width: 24px; height: 24px; }
.topbar-section {
  font-size: .72rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 4px;
}
.topbar-sub { margin: 6px 0 0; }
.topbar-aside {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 10px; flex-wrap: wrap; max-width: 100%;
}
.topbar-live {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px 8px 8px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(11,110,110,.14);
  box-shadow: 0 8px 18px rgba(11,110,110,.06);
  min-width: 132px;
}
.topbar-live__cal {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--brand), var(--brand-2));
  color: #fff;
}
.topbar-live__cal .ui-icon { width: 18px; height: 18px; }
.topbar-live__text { display: grid; gap: 1px; line-height: 1.15; }
.topbar-live__text strong {
  font-family: 'Sora', sans-serif; font-size: 1.05rem; letter-spacing: -.02em;
}
.topbar-live__text span {
  color: var(--muted); font-size: .72rem; font-weight: 700; white-space: nowrap;
}
.topbar-quick {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.topbar-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  color: var(--ink);
  text-decoration: none;
  font-size: .78rem; font-weight: 750;
  transition: .15s ease;
  white-space: nowrap;
}
.topbar-chip .ui-icon { width: 15px; height: 15px; color: var(--brand); }
.topbar-chip:hover {
  border-color: rgba(11,110,110,.28);
  background: rgba(11,110,110,.08);
  color: var(--brand);
  transform: translateY(-1px);
}
.topbar-chip.is-active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 20px rgba(11,110,110,.18);
}
.topbar-chip.is-active .ui-icon { color: #fff; }
.topbar .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (min-width: 901px) and (max-width: 1640px) {
  .topbar-chip { padding: 9px; }
  .topbar-chip span { display: none; }
}
@media (min-width: 901px) and (max-width: 1320px) {
  .topbar-quick { display: none; }
  .pmenu--desktop .pmenu__who, .pmenu--desktop .pmenu__chev { display: none; }
  .pmenu--desktop .pmenu__btn { padding: 4px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .topbar-live { display: none; }
}
.panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.panel + .panel { margin-top: 18px; }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.stat {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(160deg, #fff, #f3f8fb);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.stat .label { color: var(--muted); font-size: 0.88rem; }
.stat .value { font-family: 'Sora', sans-serif; font-size: 1.8rem; margin-top: 8px; }
.stat.ok .value { color: var(--ok); }
.stat.warn .value { color: var(--warn); }
.stat.danger .value { color: var(--danger); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 14px; padding: 11px 16px; cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-weight: 700; transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.secondary { background: #e8eef3; color: var(--ink); }
.btn.danger { background: linear-gradient(135deg, #c24141, #9f1239); }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid rgba(11,110,110,.25); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field__label {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.9rem; color: #1b3348;
}
.field__label-icon { width: 15px; height: 15px; color: var(--brand); opacity: .9; }
.field__hint { font-size: .8rem; color: var(--muted); line-height: 1.4; }
.field__error { font-size: .8rem; font-weight: 700; color: #b91c1c; line-height: 1.4; }
.field.has-error .control { border-color: rgba(185,28,28,.55); box-shadow: 0 0 0 4px rgba(185,28,28,.08); }
.field.has-error .control__icon { background: rgba(185,28,28,.1); color: #b91c1c; }
.field > label:not(.field__label):not(.check) { font-weight: 700; font-size: 0.9rem; }

.ui-icon { width: 18px; height: 18px; display: block; flex: 0 0 auto; }

.control {
  position: relative;
  display: flex; align-items: center;
  background: linear-gradient(180deg, #ffffff, #f7fafc);
  border: 1px solid rgba(16, 32, 51, 0.12);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 8px 20px rgba(16, 40, 60, 0.04);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  min-height: 48px;
}
.control:hover { border-color: rgba(11,110,110,.28); }
.control:focus-within {
  border-color: rgba(11,110,110,.5);
  box-shadow: 0 0 0 4px rgba(11,110,110,.12), 0 10px 24px rgba(16, 40, 60, 0.06);
}
.control__icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(11,110,110,.1); color: var(--brand);
  pointer-events: none;
}
.control__input {
  width: 100%; border: 0 !important; outline: none !important;
  background: transparent !important; box-shadow: none !important;
  padding: 13px 14px 13px 58px !important;
  border-radius: 16px; color: var(--ink); min-height: 48px;
}
.control__input::placeholder { color: #8aa0b5; }
.control__input:disabled { opacity: .55; cursor: not-allowed; }
.control--select .control__input { appearance: none; padding-right: 42px !important; cursor: pointer; }
.control__chevron {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-right: 2px solid #7d93a8; border-bottom: 2px solid #7d93a8;
  transform: translateY(-65%) rotate(45deg); pointer-events: none;
}
.control--textarea { align-items: flex-start; min-height: 110px; }
.control--textarea .control__icon { top: 14px; transform: none; }
.control--textarea .control__input {
  min-height: 110px; resize: vertical; padding-top: 14px !important; line-height: 1.45;
}

/* plain fallbacks inside .field without .control */
.field > input:not(.control__input):not(.check__input),
.field > select:not(.control__input),
.field > textarea:not(.control__input) {
  width: 100%; border: 1px solid rgba(16, 32, 51, 0.12); border-radius: 16px;
  padding: 12px 14px; background: linear-gradient(180deg, #fff, #f7fafc); outline: none;
  min-height: 48px; box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.field > input:focus, .field > select:focus, .field > textarea:focus {
  border-color: rgba(11,110,110,.45);
  box-shadow: 0 0 0 4px rgba(11,110,110,.1);
}

.control-inline {
  display: inline-flex; align-items: center; position: relative;
  min-width: 132px; width: 100%;
}
.control-inline .control { width: 100%; min-height: 42px; border-radius: 13px; }
.control-inline .control__icon { width: 28px; height: 28px; border-radius: 9px; left: 10px; }
.control-inline .control__icon .ui-icon { width: 15px; height: 15px; }
.control-inline .control__input { min-height: 42px; padding: 9px 12px 9px 46px !important; font-size: .92rem; }

/* Bare inputs/selects used in toolbars & filters */
.input,
select.input,
input.input,
textarea.input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(16, 32, 51, 0.12);
  border-radius: 14px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #fff, #f7fafc);
  color: var(--ink);
  outline: none;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 8px 20px rgba(16, 40, 60, 0.04);
  transition: border-color .15s ease, box-shadow .15s ease;
}
select.input {
  appearance: none;
  padding-right: 40px;
  background-image:
    linear-gradient(180deg, #fff, #f7fafc),
    linear-gradient(45deg, transparent 50%, #7d93a8 50%),
    linear-gradient(135deg, #7d93a8 50%, transparent 50%);
  background-position: 0 0, calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: auto, 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.input:hover { border-color: rgba(11,110,110,.28); }
.input:focus {
  border-color: rgba(11,110,110,.5);
  box-shadow: 0 0 0 4px rgba(11,110,110,.12), 0 10px 24px rgba(16, 40, 60, 0.06);
}
.input-inline {
  width: auto;
  min-width: 140px;
  max-width: 100%;
  flex: 1 1 180px;
}

.toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px;
}
.toolbar .control, .toolbar .control-inline { flex: 1; min-width: 180px; max-width: 360px; }
.toolbar .input { width: auto; flex: 1 1 160px; max-width: 280px; }
.toolbar .input.input-sm { flex: 0 0 auto; width: 110px; max-width: 120px; }
.toolbar--compact { gap: 8px; }
.toolbar--compact .input.input-sm { width: 100px; }
.panel-title .toolbar { margin: 0; justify-content: flex-end; }
.panel-title .control-inline { max-width: 240px; }

.check {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; border-radius: 16px; cursor: pointer;
  background: linear-gradient(180deg, #fff, #f7fafc);
  border: 1px solid rgba(16, 32, 51, 0.1);
  margin-bottom: 14px; user-select: none;
}
.check__input { position: absolute; opacity: 0; pointer-events: none; }
.check__box {
  width: 22px; height: 22px; border-radius: 7px; flex: 0 0 auto; margin-top: 1px;
  border: 1.5px solid rgba(11,110,110,.35); background: #fff;
  display: grid; place-items: center; color: transparent; transition: .15s ease;
}
.check__box .ui-icon { width: 14px; height: 14px; }
.check__input:checked + .check__box {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent; color: #fff;
}
.check__text { display: grid; gap: 2px; }
.check__label { font-weight: 700; font-size: .92rem; }
.check__hint { font-size: .8rem; color: var(--muted); }

.table .input,
.table select.input {
  min-height: 42px;
  border-radius: 12px;
  width: 100%;
  max-width: 100%;
}
.table .control { min-height: 42px; border-radius: 12px; box-shadow: none; }
.table .control__icon { width: 26px; height: 26px; left: 8px; border-radius: 8px; }
.table .control__icon .ui-icon { width: 14px; height: 14px; }
.table .control__input { min-height: 42px; padding-left: 42px !important; font-size: .9rem; }

/* Photo upload card */
.photo-card {
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(11,110,110,.12), transparent 60%),
    linear-gradient(180deg, #ffffff, #f4f8fb);
  border: 1px solid rgba(16, 32, 51, 0.1);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
  height: 100%;
}
.photo-card__head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  margin-bottom: 14px;
}
.photo-card__title {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.05rem;
}
.photo-card__title .ui-icon { width: 18px; height: 18px; color: var(--brand); }
.photo-card__hint { margin: 6px 0 0; color: var(--muted); font-size: .84rem; }
.photo-card__drop {
  display: grid; gap: 12px; cursor: pointer; position: relative;
}
.photo-card__input {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2;
}
.photo-card__preview {
  position: relative;
  min-height: 220px;
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px dashed rgba(11,110,110,.28);
  background:
    linear-gradient(135deg, rgba(11,110,110,.06), rgba(10,79,108,.04)),
    repeating-linear-gradient(-45deg, rgba(11,110,110,.035) 0 8px, transparent 8px 16px);
  display: grid; place-items: center;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.photo-card__drop:hover .photo-card__preview,
.photo-card.is-dragover .photo-card__preview {
  border-color: rgba(11,110,110,.55);
  box-shadow: 0 0 0 4px rgba(11,110,110,.1);
  transform: translateY(-1px);
}
.photo-card__preview.is-filled {
  border-style: solid;
  border-color: rgba(11,110,110,.18);
  background: #0b1f2a;
}
.photo-card__preview img {
  width: 100%; height: 220px; object-fit: cover;
}
.photo-card__placeholder {
  text-align: center; padding: 24px 16px; color: #3d566c;
  display: grid; gap: 6px; justify-items: center;
}
.photo-card__placeholder strong { font-size: .98rem; }
.photo-card__placeholder span { color: var(--muted); font-size: .86rem; }
.photo-card__icon-wrap {
  width: 58px; height: 58px; border-radius: 18px; margin-bottom: 6px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(11,110,110,.16), rgba(10,79,108,.12));
  color: var(--brand);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}
.photo-card__icon-wrap .ui-icon { width: 26px; height: 26px; }
.photo-card__meta {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 14px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(16,32,51,.08);
}
.photo-card__file {
  font-size: .84rem; color: var(--muted); font-weight: 600;
  max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block;
}
.photo-card__cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-size: .8rem; font-weight: 700; white-space: nowrap;
}
.photo-card__cta .ui-icon { width: 14px; height: 14px; color: #fff; }

.profile-avatar {
  width: 96px; height: 96px; border-radius: 28px; overflow: hidden;
  background: linear-gradient(135deg, #0a4f6c, #0b6e6e);
  color: #fff; display: grid; place-items: center;
  font-family: 'Sora', sans-serif; font-size: 1.8rem; font-weight: 700;
  box-shadow: var(--shadow); border: 3px solid rgba(255,255,255,.7);
  flex: 0 0 auto;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero {
  display: flex; gap: 16px; align-items: center; margin-bottom: 18px;
}

.perm-group { margin-bottom: 18px; }
.perm-group__title {
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: .95rem;
  margin-bottom: 10px; color: #234;
}
.perm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.perm-item { margin-bottom: 0 !important; height: 100%; }
.perm-item.is-locked { opacity: .92; cursor: default; }
@media (max-width: 800px) {
  .perm-grid { grid-template-columns: 1fr; }
}
/* Full-bleed panels — no left-stuck narrow cards */
.panel--form,
.panel--wide {
  width: 100%;
  max-width: none;
}
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .85fr);
  gap: 22px;
  align-items: start;
  width: 100%;
}
.form-layout > * { min-width: 0; }
@media (max-width: 900px) {
  .form-layout { grid-template-columns: 1fr; }
}
.main > .panel,
.main > form.panel,
.main > details.panel {
  width: 100%;
}

.person-list { display: grid; gap: 8px; }
.person-row {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(160px, 1.7fr) auto auto;
  gap: 12px 16px;
  align-items: center;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.person-row:hover {
  border-color: rgba(11,110,110,.28);
  box-shadow: 0 10px 24px rgba(16,40,60,.06);
  background: #f8fbfc;
}
.person-row__main {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  text-decoration: none; color: inherit;
}
.person-row__avatar {
  width: 44px; height: 44px; border-radius: 14px; font-size: .9rem; flex: 0 0 auto;
}
.person-row__who { min-width: 0; display: grid; gap: 2px; }
.person-row__who strong {
  font-family: 'Sora', sans-serif; font-size: .98rem; letter-spacing: -.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.person-row__who span {
  color: var(--muted); font-size: .8rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.person-row__meta {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.person-row__chip {
  display: inline-flex; align-items: center;
  padding: 5px 9px; border-radius: 999px;
  background: rgba(11,110,110,.08); color: var(--brand);
  font-size: .74rem; font-weight: 700; white-space: nowrap;
}
.person-row__chip.muted-chip {
  background: #f0f4f7; color: var(--muted);
}
.person-row__chip.pay-chip {
  background: rgba(15,138,95,.1); color: var(--ok);
}

/* Payroll center */
.pay-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.pay-tabs a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 14px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
  font-weight: 750; color: var(--muted); font-size: .88rem; text-decoration: none;
}
.pay-tabs a .ui-icon { width: 16px; height: 16px; }
.pay-tabs a.is-active,
.pay-tabs a.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; border-color: transparent;
}
.pay-tabs a.is-active .ui-icon,
.pay-tabs a.active .ui-icon { color: #fff; }
.pay-period {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px; padding: 12px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
}
.pay-period__nav {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: #f4f8fb; border: 1px solid var(--line);
  color: var(--ink); font-size: 1.3rem; text-decoration: none;
}
.pay-period__nav:hover { color: var(--brand); border-color: rgba(11,110,110,.3); }
.pay-period__title { flex: 1; min-width: 140px; display: grid; gap: 2px; }
.pay-period__title strong { font-family: 'Sora', sans-serif; font-size: 1.2rem; }
.pay-period__title span { color: var(--muted); font-size: .82rem; }
.pay-filters, .pay-bulk {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px;
}
.pay-filters .control-inline { flex: 1 1 160px; max-width: 280px; }
.pay-bulk .control-inline { flex: 0 1 200px; max-width: 220px; }
.pay-base-form { display: flex; gap: 6px; align-items: center; }
.pay-base-form .input { width: 100px; min-height: 38px; padding: 6px 10px; }
.pay-row-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
tr.is-focus-row td { background: rgba(11,110,110,.06); }
.pay-mobile { display: none; }
.pay-mcard {
  border: 1px solid var(--line); border-radius: 18px; padding: 12px; background: #fff;
  box-shadow: 0 8px 20px rgba(16,40,60,.05);
}
.pay-mcard + .pay-mcard { margin-top: 10px; }
.pay-mcard.is-focus { border-color: rgba(11,110,110,.35); box-shadow: 0 0 0 2px rgba(11,110,110,.12); }
.pay-mcard__head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.pay-mcard__head a { color: var(--ink); font-weight: 750; text-decoration: none; font-family: 'Sora', sans-serif; }
.pay-mcard__head span { display: block; color: var(--muted); font-size: .74rem; margin-top: 2px; }
.pay-mcard__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px;
}
.pay-mcard__grid div { background: #f4f8fb; border-radius: 12px; padding: 8px; text-align: center; }
.pay-mcard__grid span { display: block; color: var(--muted); font-size: .68rem; font-weight: 700; }
.pay-mcard__grid strong { display: block; margin-top: 3px; font-size: .9rem; }
.pay-mcard__grid strong.pay-net { color: var(--brand); }
.pay-mcard__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pay-mcard__actions .btn { flex: 1 1 auto; justify-content: center; }
.pay-preview {
  margin: 12px 0; padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(11,110,110,.1), rgba(10,79,108,.08));
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.05rem;
}
.pay-manual-summary {
  list-style: none; cursor: pointer; display: grid; gap: 2px;
}
.pay-manual-summary::-webkit-details-marker { display: none; }
.pay-manual-summary strong { font-family: 'Sora', sans-serif; font-size: 1.05rem; }
@media (max-width: 900px) {
  .pay-desktop { display: none !important; }
  .pay-mobile { display: block; }
  .pay-filters { display: grid; grid-template-columns: 1fr; }
  .pay-filters .control-inline { max-width: none; }
  .pay-bulk { display: grid; grid-template-columns: 1fr; }
  .pay-bulk .control-inline { max-width: none; width: 100%; }
  .pay-period__today { width: 100%; justify-content: center; }
}
.person-row__status { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.person-row__actions { display: flex; gap: 6px; justify-content: flex-end; }

.icon-btn {
  width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(11,110,110,.08);
  color: var(--brand);
  border: 1px solid rgba(11,110,110,.12);
  transition: .15s ease;
}
.icon-btn:hover {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; border-color: transparent;
}
.icon-btn .ui-icon { width: 16px; height: 16px; }

@media (max-width: 960px) {
  .person-row {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }
  .person-row__meta { grid-column: 1 / -1; }
  .person-row__status { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .person-row {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .person-row__actions { justify-content: flex-start; }
  .person-row__status { order: 2; }
  .person-row__meta { order: 3; }
  .person-row__actions { order: 4; }
}
.icon-btn .ui-icon { width: 16px; height: 16px; }

.kv { display: grid; gap: 10px; }
.kv > div {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: 14px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(16,32,51,.06);
}
.kv span { color: var(--muted); font-size: .84rem; font-weight: 600; }
.kv strong { font-size: .92rem; text-align: right; }
.kv.compact > div { padding: 8px 10px; border-radius: 12px; }
.kv.compact strong { font-size: .86rem; }

.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--line);
}
.filter-bar .control-inline { min-width: 170px; max-width: 210px; flex: 0 1 auto; }

.stats-hero {
  background:
    radial-gradient(700px 220px at 100% 0%, rgba(11,110,110,.12), transparent 55%),
    linear-gradient(180deg, #fff, #f4f8fb);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center; padding: 48px 20px;
  color: var(--muted);
  display: grid; gap: 8px; justify-items: center;
}
.empty-state .ui-icon { width: 36px; height: 36px; color: var(--brand); opacity: .7; }
.empty-state strong { color: var(--ink); font-size: 1.05rem; }

.info-list p { margin: 0 0 10px; }

@media (max-width: 700px) {
  .filter-bar .control-inline { max-width: none; flex: 1; min-width: 100%; }
}

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
th { color: var(--muted); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: .04em; }

.badge {
  display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700;
}
.badge.ok { background: rgba(15,138,95,.12); color: var(--ok); }
.badge.warn { background: rgba(180,83,9,.12); color: var(--warn); }
.badge.danger { background: rgba(194,65,65,.12); color: var(--danger); }
.badge.neutral { background: rgba(16,32,51,.08); color: var(--muted); }

.alert {
  padding: 12px 14px; border-radius: 14px; margin-bottom: 16px; font-weight: 600;
}
.alert.success { background: rgba(15,138,95,.12); color: var(--ok); }
.alert.error { background: rgba(194,65,65,.12); color: var(--danger); }

.auth-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
}
.auth-card {
  width: min(440px, 100%);
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 32px 28px;
  animation: rise .45s ease;
}
.auth-card .logo {
  width: 64px; height: 64px; border-radius: 20px; object-fit: cover;
  display: block; margin-bottom: 18px;
  box-shadow: 0 12px 24px rgba(11,110,110,.22);
}

.qr-box {
  width: min(360px, 100%);
  margin: 0 auto;
  background: #fff;
  border-radius: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.qr-box img { width: 100%; border-radius: 18px; }
.countdown {
  margin-top: 12px; text-align: center; font-weight: 700; color: var(--brand);
}

.scanner-stage {
  min-height: 360px;
  border-radius: 24px;
  overflow: hidden;
  background: #0b1b26;
  position: relative;
  border: 1px solid rgba(255,255,255,.08);
}
.scanner-stage video { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.scanner-frame {
  position: absolute; inset: 18% 16%;
  border: 2px solid rgba(255,255,255,.85);
  border-radius: 24px;
  box-shadow: 0 0 0 999px rgba(0,0,0,.28);
  pointer-events: none;
}
.scan-result {
  margin-top: 16px; padding: 16px; border-radius: 18px;
  background: #f4f8fb; border: 1px solid var(--line);
}

.mobile-app {
  max-width: 480px; margin: 0 auto; min-height: 100vh;
  padding: 18px 16px calc(96px + var(--safe-bottom));
}
.mobile-hero {
  background: linear-gradient(145deg, #0a4f6c, #0b6e6e 60%, #147b6f);
  color: #fff; border-radius: 28px; padding: 22px;
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.mobile-hero::after {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.mobile-hero h1 { font-size: 1.55rem; margin: 8px 0; }
.status-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.status-pills span {
  background: rgba(255,255,255,.14); padding: 8px 12px; border-radius: 999px; font-size: .85rem;
}

.list-card {
  background: var(--surface-solid); border: 1px solid var(--line);
  border-radius: 18px; padding: 14px 16px; margin-top: 12px;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
}

.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.chart-bars {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; height: 160px;
}
.chart-bars .bar-wrap { display: grid; gap: 8px; justify-items: center; height: 100%; align-content: end; }
.chart-bars .bar {
  width: 100%; border-radius: 12px 12px 6px 6px;
  background: linear-gradient(180deg, #14b8a6, #0b6e6e);
  min-height: 8px; transition: height .4s ease;
}
.chart-bars .lbl { font-size: .72rem; color: var(--muted); }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
.pulse { animation: pulse 1.8s ease-in-out infinite; }

/* Mobile shell / drawer */
.mobile-topbar {
  display: none;
  position: sticky; top: 0; z-index: 50;
  align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
}
.mobile-topbar strong { font-family: 'Sora', sans-serif; }
.mobile-topbar__brand { display: flex; align-items: center; gap: 8px; }
.mobile-topbar__brand img { width: 28px; height: 28px; border-radius: 9px; }

/* Profile dropdown */
.pmenu { position: relative; flex: 0 0 auto; }
.pmenu__btn {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 12px 4px 4px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pmenu__btn:hover,
.pmenu.is-open .pmenu__btn { border-color: rgba(11,110,110,.35); box-shadow: 0 6px 16px rgba(11,110,110,.12); }
.pmenu__btn img { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.pmenu__who { display: grid; text-align: left; }
.pmenu__who strong { font-size: .86rem; line-height: 1.15; max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pmenu__who small { color: var(--muted); font-size: .72rem; }
.pmenu__chev { width: 16px; height: 16px; color: var(--muted); transition: transform .2s ease; }
.pmenu.is-open .pmenu__chev { transform: rotate(180deg); }

.topbar-aside .pmenu--desktop { margin-left: 2px; padding-left: 12px; border-left: 1px solid var(--line); }
.pmenu--mobile .pmenu__btn {
  width: 40px; height: 40px; padding: 0; overflow: hidden;
  border: 2px solid #fff; box-shadow: 0 0 0 2px rgba(11,110,110,.35);
}
.pmenu--mobile .pmenu__btn img { width: 100%; height: 100%; }

.pmenu__panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 80;
  width: min(300px, calc(100vw - 24px));
  padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 24px 60px rgba(16,40,60,.18);
  opacity: 0; visibility: hidden;
  transform: translateY(-6px) scale(.98); transform-origin: top right;
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.pmenu.is-open .pmenu__panel { opacity: 1; visibility: visible; transform: none; }
.pmenu__head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; margin-bottom: 6px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(11,110,110,.1), rgba(10,79,108,.04));
}
.pmenu__head img {
  width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; box-shadow: 0 0 0 2px rgba(11,110,110,.25);
}
.pmenu__head div { min-width: 0; }
.pmenu__head strong,
.pmenu__head span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pmenu__head strong { font-size: .95rem; }
.pmenu__head span { color: var(--muted); font-size: .76rem; }
.pmenu__head em {
  display: inline-block; margin-top: 5px; padding: 2px 8px; border-radius: 999px;
  background: var(--brand); color: #fff;
  font-style: normal; font-size: .64rem; font-weight: 800; letter-spacing: .02em;
}
.pmenu__list { display: grid; gap: 2px; }
.pmenu__item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 8px 10px; border-radius: 12px; border: 0;
  background: transparent; color: var(--ink);
  font: inherit; text-align: left; cursor: pointer;
}
.pmenu__item:hover { background: #f4f8fb; }
.pmenu__ico {
  width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(11,110,110,.09); color: var(--brand);
}
.pmenu__ico .ui-icon { width: 17px; height: 17px; }
.pmenu__item strong { display: block; font-size: .88rem; line-height: 1.2; }
.pmenu__item small { display: block; color: var(--muted); font-size: .72rem; }
.pmenu__foot { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.pmenu__item.is-danger .pmenu__ico { background: rgba(185,28,28,.08); color: #b91c1c; }
.pmenu__item.is-danger strong { color: #b91c1c; }
.pmenu__item.is-danger:hover { background: rgba(185,28,28,.06); }
.burger {
  width: 42px; height: 42px; border: 0; border-radius: 12px; cursor: pointer;
  background: rgba(11,110,110,.1); color: var(--brand);
  display: grid; place-items: center;
}
.burger span,
.burger span::before,
.burger span::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  position: relative; content: "";
}
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }
.sidebar-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(8,20,30,.45); z-index: 60;
}
body.nav-open .sidebar-backdrop { display: block; }

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .mobile-topbar { display: flex; }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(300px, 86vw);
    height: 100vh; z-index: 70; transform: translateX(-105%);
    transition: transform .25s ease; overflow: auto;
    padding: 20px 16px;
  }
  body.nav-open .sidebar { transform: translateX(0); }
  .sidebar .brand {
    position: sticky; top: -20px; z-index: 2;
    margin: -20px -16px 0; padding: 20px 16px 14px 26px;
    background: #0a3d4d;
  }
  .sidebar-close { display: grid; }
  .nav { display: grid; grid-auto-flow: row; overflow: visible; }
  .nav a { white-space: normal; }
  .sidebar-foot { display: block; }
  .main { padding: 14px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .topbar {
    flex-direction: column; align-items: stretch;
    gap: 10px; padding: 10px 12px; margin-bottom: 14px;
  }
  .topbar-title { flex: 1 1 auto; min-width: 0; width: 100%; }
  .topbar-copy { flex: 1 1 auto; min-width: 0; }
  .topbar .h1, .topbar h1 { font-size: 1.15rem; margin: 0; line-height: 1.2; white-space: normal; overflow-wrap: anywhere; }
  .topbar-sub { display: none; }
  .topbar-icon { width: 40px; height: 40px; border-radius: 12px; }
  .topbar-icon .ui-icon { width: 20px; height: 20px; }
  .topbar-aside {
    flex: 1 1 auto;
    justify-content: flex-start;
    width: 100%;
    gap: 8px;
    margin-left: 0;
  }
  .topbar-live { display: none; }
  .topbar-quick { display: none; }
  .pmenu--desktop { display: none; }
  .topbar .actions { width: 100%; flex: 1 1 auto; }
  .topbar .actions .btn { flex: 1 1 auto; padding: 8px 12px; font-size: .82rem; }
  .topbar-section { margin-bottom: 2px; }
  .table-wrap { margin: 0 -4px; }
  table { min-width: 640px; }
  .panel { padding: 16px; border-radius: 18px; }
  .stat .value { font-size: 1.45rem; }
  .stat { padding: 14px; }
  .actions { width: 100%; }
  .actions .btn { flex: 1 1 auto; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar .btn { width: 100%; }
  .profile-hero { flex-direction: column; align-items: flex-start; }
  .scanner-stage, .scanner-stage video { min-height: 280px; }
  .wall-poster__title { font-size: 1.6rem; }
}
@media (max-width: 480px) {
  .main { padding: 12px; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* Employee app polish — native feel */
body.is-employee-app {
  --dock-cut: #e3ebf2;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(20,145,155,.16), transparent 50%),
    radial-gradient(90% 50% at 0% 10%, rgba(10,79,108,.12), transparent 45%),
    linear-gradient(180deg, #eef4f7 0%, #e3ebf2 100%);
  min-height: 100vh;
}
body.is-employee-app .app-status-glow {
  position: fixed; inset: 0 0 auto 0; height: 180px; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.55), transparent);
}

.app-topbar {
  position: sticky; top: 0; z-index: 45;
  max-width: 480px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + var(--safe-top, 0px)) 14px 10px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(11,40,55,.06);
}
.app-topbar__brand { display: flex; align-items: center; gap: 10px; }
.app-topbar__mark {
  width: 38px; height: 38px; border-radius: 12px;
  object-fit: cover; flex: 0 0 auto;
  box-shadow: 0 8px 18px rgba(11,110,110,.25);
}
.app-topbar__brand strong { display: block; font-family: 'Sora', sans-serif; font-size: .98rem; line-height: 1.1; }
.app-topbar__brand small { color: var(--muted); font-size: .72rem; }
.app-topbar__avatar {
  width: 40px; height: 40px; border-radius: 14px; overflow: hidden;
  display: grid; place-items: center; text-decoration: none;
  background: rgba(11,110,110,.12); color: var(--brand); font-weight: 800; font-size: .78rem;
  border: 1px solid rgba(11,110,110,.15);
}
.app-topbar__avatar img { width: 100%; height: 100%; object-fit: cover; }
.app-topbar__right { display: flex; align-items: center; gap: 8px; }
.app-topbar__state {
  --st: #b45309;
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 11px; border-radius: 999px;
  background: color-mix(in srgb, var(--st) 12%, #fff); color: var(--st);
  font-size: .72rem; font-weight: 800;
}
.app-topbar__state i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.app-topbar__state.is-in { --st: #0f8a5f; }
.app-topbar__state.is-done { --st: #0a4f6c; }
.app-topbar__state.is-off { --st: #6d28d9; }

.mobile-app {
  position: relative; z-index: 1;
  max-width: 480px; margin: 0 auto; min-height: calc(100vh - 60px);
  padding: 12px 14px calc(128px + var(--safe-bottom));
  animation: rise .35s ease both;
}
.mobile-hero, .app-hero {
  background: linear-gradient(145deg, #0a4f6c, #0b6e6e 55%, #147b6f);
  color: #fff; border-radius: 28px; padding: 20px;
  box-shadow: 0 18px 40px rgba(10,79,108,.22);
  position: relative; overflow: hidden;
}
.mobile-hero::after, .app-hero::after {
  content: ""; position: absolute; right: -36px; top: -36px;
  width: 150px; height: 150px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.mobile-hero h1, .app-hero h1 {
  font-size: clamp(1.4rem, 5vw, 1.75rem); margin: 6px 0 8px; position: relative; z-index: 1;
  font-family: 'Sora', sans-serif;
}
.mobile-hero p, .mobile-hero .small, .status-pills,
.app-hero p, .app-hero .small { position: relative; z-index: 1; }

.app-hero__row {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
}
.app-hero__status {
  flex: 0 0 auto; padding: 8px 12px; border-radius: 999px;
  font-size: .72rem; font-weight: 800; letter-spacing: .02em;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.18);
}
.app-hero__status.is-in { background: rgba(34,197,94,.22); }
.app-hero__status.is-done { background: rgba(255,255,255,.2); }
.app-hero__status.is-wait { background: rgba(251,191,36,.25); color: #fff; }
.app-hero__status.is-off { background: rgba(148,163,184,.28); }

.today-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px;
  position: relative; z-index: 1;
}
.today-tile {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px; padding: 12px;
}
.today-tile span { display: block; font-size: .75rem; opacity: .8; }
.today-tile strong { display: block; margin-top: 4px; font-size: 1.15rem; font-family: 'Sora', sans-serif; }

.quick-actions {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 10px; margin-top: 14px;
}
.quick-actions__item {
  display: grid; gap: 4px; align-content: start;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 14px 12px; text-decoration: none; color: inherit;
  box-shadow: 0 10px 24px rgba(16,40,60,.05);
  transition: transform .15s ease;
}
.quick-actions__item:active { transform: scale(.98); }
.quick-actions__item.is-primary {
  background: linear-gradient(160deg, #0b6e6e, #0a4f6c);
  color: #fff; border-color: transparent;
  box-shadow: 0 14px 28px rgba(11,110,110,.28);
}
.quick-actions__item.is-primary small { color: rgba(255,255,255,.75); }
.quick-actions__ico {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(11,110,110,.1); color: var(--brand); margin-bottom: 4px;
}
.quick-actions__item.is-primary .quick-actions__ico {
  background: rgba(255,255,255,.16); color: #fff;
}
.quick-actions__ico svg { width: 18px; height: 18px; }
.quick-actions__item strong { font-size: .92rem; }
.quick-actions__item small { color: var(--muted); font-size: .72rem; }

.mini-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.mini-stats > div {
  background: #f4f8fb; border-radius: 16px; padding: 12px 8px; text-align: center;
}
.mini-stats span { display: block; color: var(--muted); font-size: .72rem; font-weight: 700; }
.mini-stats strong { display: block; margin-top: 4px; font-family: 'Sora', sans-serif; font-size: 1.05rem; }
.mini-stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mini-stats--4 > div { padding: 12px 4px; }

/* İşçi ana səhifəsi — bu günün gedişatı */
.emp-progress {
  position: relative; z-index: 1; margin-top: 12px; padding: 12px 14px; border-radius: 18px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.14);
}
.emp-progress__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.emp-progress__head span { font-size: .78rem; font-weight: 700; opacity: .85; }
.emp-progress__head strong { font-family: 'Sora', sans-serif; font-size: 1.3rem; line-height: 1; }
.emp-progress__head strong b { font-weight: inherit; }
.emp-progress__bar { height: 10px; margin: 9px 0 8px; border-radius: 999px; background: rgba(255,255,255,.18); overflow: hidden; }
.emp-progress__bar i {
  position: relative; display: block; height: 100%; border-radius: inherit; overflow: hidden;
  background: linear-gradient(90deg, #fde68a, #34d399); box-shadow: 0 0 14px rgba(52,211,153,.55);
  transition: width .6s ease;
}
.emp-progress[data-since] .emp-progress__bar i::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: progressShine 2.2s ease-in-out infinite;
}
@keyframes progressShine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.emp-progress.is-full .emp-progress__bar i { background: linear-gradient(90deg, #34d399, #a7f3d0); }
.emp-progress__foot { display: flex; justify-content: space-between; gap: 8px; font-size: .72rem; font-weight: 700; opacity: .85; }

/* İşçi ana səhifəsi — göstərici kartları */
.emp-perf__track {
  position: relative; display: flex; gap: 12px; margin: 0 -14px; padding: 4px 14px 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 14px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.emp-perf__track::-webkit-scrollbar { display: none; }
.perf-card {
  --pc: var(--brand);
  position: relative; overflow: hidden; flex: 0 0 44%; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 12px 28px rgba(16,40,60,.07);
}
.perf-card::before {
  content: ""; position: absolute; right: -42px; top: -42px; width: 120px; height: 120px; border-radius: 50%;
  background: color-mix(in srgb, var(--pc) 9%, transparent); pointer-events: none;
}
.perf-card > * { position: relative; }
.perf-card__top { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 6px; }
.perf-card__ico {
  width: 36px; height: 36px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--pc) 14%, #fff); color: var(--pc);
}
.perf-card__ico svg { width: 18px; height: 18px; }
.perf-card__tag {
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  font-size: .68rem; font-weight: 800; background: color-mix(in srgb, var(--pc) 12%, #fff); color: var(--pc);
}
.perf-card__delta { padding: 3px 8px; border-radius: 999px; font-size: .68rem; font-weight: 800; white-space: nowrap; }
.perf-card__delta.is-up { background: #d1fae5; color: #047857; }
.perf-card__delta.is-down { background: #fee2e2; color: #b91c1c; }
.perf-card h3 { margin: 8px 0 0; font-family: 'Sora', sans-serif; font-size: .95rem; letter-spacing: -.01em; }
.perf-card p { margin: 0; color: var(--muted); font-size: .76rem; font-weight: 700; line-height: 1.35; }
.perf-card__foot { margin-top: auto; padding-top: 8px; color: var(--muted); font-size: .7rem; font-weight: 700; line-height: 1.35; }

.ui-ring { position: relative; width: 92px; height: 92px; flex: 0 0 auto; }
.ui-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ui-ring circle { fill: none; stroke-width: 9; }
.ui-ring__bg { stroke: color-mix(in srgb, var(--pc, var(--brand)) 13%, #fff); }
.ui-ring__fg { stroke: var(--pc, var(--brand)); stroke-linecap: round; animation: ringIn 1.1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes ringIn { from { stroke-dashoffset: 263.89; } }
.ui-ring__val { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 1px; }
.ui-ring__val strong { font-family: 'Sora', sans-serif; font-size: 1.45rem; letter-spacing: -.03em; }
.ui-ring__val small { margin-top: 6px; color: var(--muted); font-size: .74rem; font-weight: 800; }
.ui-ring.is-lg { width: 112px; height: 112px; }
.ui-ring.is-lg .ui-ring__val strong { font-size: 1.95rem; }

.perf-card--score {
  --pc: #fff;
  flex-basis: 86%; color: #fff; border: 0;
  background: linear-gradient(150deg, #0a4f6c, #0b6e6e 55%, #13a08a);
  box-shadow: 0 18px 36px rgba(10,79,108,.25);
}
.perf-card--score.tone-mid { background: linear-gradient(150deg, #78350f, #b45309 55%, #f59e0b); box-shadow: 0 18px 36px rgba(180,83,9,.25); }
.perf-card--score.tone-low { background: linear-gradient(150deg, #7f1d1d, #b91c1c 55%, #ef4444); box-shadow: 0 18px 36px rgba(185,28,28,.25); }
.perf-card--score::before { width: 190px; height: 190px; right: -60px; top: -70px; background: rgba(255,255,255,.08); }
.perf-card--score .perf-card__ico,
.perf-card--score .perf-card__tag { background: rgba(255,255,255,.16); color: #fff; }
.perf-card--score .ui-ring__bg { stroke: rgba(255,255,255,.18); }
.perf-card--score .ui-ring__fg { stroke: #fde68a; }
.perf-card--score .ui-ring__val small,
.perf-card--score p { color: rgba(255,255,255,.8); }
.perf-card__score { display: flex; align-items: center; gap: 14px; width: 100%; }
.perf-card__score h3 { margin: 0; font-size: 1.08rem; }
.perf-card__score .perf-card__delta { display: inline-block; margin-top: 8px; }
.perf-card--score .perf-card__delta.is-up { background: rgba(52,211,153,.24); color: #d1fae5; }
.perf-card--score .perf-card__delta.is-down { background: rgba(248,113,113,.28); color: #fee2e2; }
.perf-card__parts { display: grid; gap: 8px; width: 100%; margin-top: 12px; }
.perf-card__parts span { display: flex; justify-content: space-between; font-size: .72rem; font-weight: 700; opacity: .92; }
.perf-card__parts b { font-weight: 800; }
.perf-card__parts i { display: block; height: 6px; margin-top: 4px; border-radius: 999px; background: rgba(255,255,255,.16); overflow: hidden; }
.perf-card__parts em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #fde68a, #fff); transform-origin: left; animation: barIn 1s ease both; }
@keyframes barIn { from { transform: scaleX(0); } }

.perf-card__big { display: flex; align-items: center; gap: 6px; height: 92px; }
.perf-card__big strong { font-family: 'Sora', sans-serif; font-size: 3.1rem; line-height: 1; letter-spacing: -.04em; color: var(--pc); }
.perf-card__big small { margin-top: 18px; color: var(--muted); font-weight: 800; }
.perf-card__dots { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: 10px; }
.perf-card__dots i { width: 12px; height: 12px; border-radius: 4px; background: #e2e8f0; }
.perf-card__dots i.is-ok { background: #10b981; }
.perf-card__dots i.is-late { background: #f59e0b; }
.perf-card__dots i.is-absent { background: #ef4444; }

.emp-perf__dots { display: flex; justify-content: center; gap: 6px; margin-top: -2px; }
.emp-perf__dots i { width: 7px; height: 7px; border-radius: 999px; background: #cbd5e1; cursor: pointer; transition: width .25s ease, background .25s ease; }
.emp-perf__dots i.is-active { width: 20px; background: var(--brand); }
@media (prefers-reduced-motion: reduce) {
  .ui-ring__fg, .perf-card__parts em, .emp-progress[data-since] .emp-progress__bar i::after { animation: none; }
}

.app-section-title {
  display: flex; justify-content: space-between; align-items: center;
  margin: 18px 4px 10px;
}
.app-section-title h2 { font-size: 1.05rem; }

/* Admin attendance — mobile cards */
.att-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-bottom: 16px;
}
.att-toolbar__date { flex: 1 1 180px; min-width: 0; max-width: 260px; }
.att-toolbar__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.att-mobile-list { display: none; }
.att-manual__summary {
  list-style: none; cursor: pointer;
  display: flex; flex-direction: column; gap: 2px;
}
.att-manual__summary::-webkit-details-marker { display: none; }
.att-manual__summary strong {
  font-family: 'Sora', sans-serif; font-size: 1.05rem;
}
.att-pager { margin-top: 16px; }
.att-mcard {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(16,40,60,.05);
}
.att-mcard + .att-mcard { margin-top: 10px; }
.att-mcard__head {
  display: flex; justify-content: space-between; gap: 10px; align-items: flex-start;
}
.att-mcard__who { display: flex; gap: 10px; min-width: 0; align-items: center; }
.att-mcard__avatar {
  width: 42px; height: 42px; border-radius: 14px; font-size: .8rem; flex: 0 0 auto;
}
.att-mcard__meta { min-width: 0; display: grid; gap: 2px; }
.att-mcard__meta a,
.att-mcard__meta strong {
  color: var(--ink); font-weight: 750; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: 'Sora', sans-serif; font-size: .95rem;
}
.att-mcard__meta span {
  color: var(--muted); font-size: .74rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.att-mcard__plan {
  margin-top: 8px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 650;
}
.att-mcard__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.att-mcard__grid div {
  background: #f4f8fb;
  border-radius: 12px;
  padding: 8px 6px;
  text-align: center;
}
.att-mcard__grid span {
  display: block; color: var(--muted); font-size: .68rem; font-weight: 700;
}
.att-mcard__grid strong {
  display: block; margin-top: 3px; font-size: .88rem; font-weight: 800;
}
.att-mcard__grid strong.is-late { color: var(--warn); }

@media (max-width: 900px) {
  .att-desktop { display: none !important; }
  .att-mobile-list { display: block; }
  .att-toolbar { display: grid; gap: 8px; }
  .att-toolbar__date { max-width: none; width: 100%; }
  .att-toolbar__actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .att-toolbar__actions .btn { width: 100%; justify-content: center; }
  .att-manual__grid { grid-template-columns: 1fr !important; }
  .att-mcard__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .att-panel.panel { padding: 12px; border-radius: 18px; }
  .att-mcard__head .badge { flex: 0 0 auto; }
}

.att-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 14px; margin-top: 10px; box-shadow: 0 10px 28px rgba(16,40,60,.06);
}
.att-card__top {
  display: flex; justify-content: space-between; gap: 10px; align-items: flex-start;
}
.att-card__date { font-family: 'Sora', sans-serif; font-weight: 700; }
.att-card__rows {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px;
}
.att-card__rows div {
  background: #f4f8fb; border-radius: 14px; padding: 10px 8px; text-align: center;
}
.att-card__rows span { display: block; color: var(--muted); font-size: .72rem; font-weight: 700; }
.att-card__rows strong { display: block; margin-top: 3px; font-size: .95rem; }

.month-chips {
  display: flex; gap: 8px; overflow: auto; padding-bottom: 4px; margin: 12px 0 4px;
  -webkit-overflow-scrolling: touch;
}
.month-chips a {
  flex: 0 0 auto; padding: 8px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: .82rem; font-weight: 700; color: var(--muted);
}
.month-chips a.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; border-color: transparent;
}

.cabinet-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 16px; margin-top: 12px; box-shadow: 0 10px 28px rgba(16,40,60,.06);
}
.cabinet-head {
  display: flex; gap: 12px; align-items: center; margin-bottom: 14px;
}
.cabinet-head .profile-avatar { width: 64px; height: 64px; border-radius: 20px; font-size: 1.2rem; }
.empty-state { text-align: center; display: grid; gap: 8px; justify-items: center; }
.app-toast { margin-bottom: 10px; border-radius: 16px; }

.cta-scan {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 14px; padding: 14px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(11,110,110,.1), rgba(10,79,108,.08));
  border: 1px solid rgba(11,110,110,.15);
}
.cta-scan strong { display: block; font-size: .98rem; }
.cta-scan span { color: var(--muted); font-size: .82rem; }

/* Ana səhifə — həftəlik cədvəl zolağı */
.emp-week { display: block; color: inherit; }
.emp-week__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.emp-week__day {
  --c: #0b6e6e;
  display: grid; justify-items: center; gap: 2px;
  padding: 9px 2px 8px; border-radius: 14px;
  background: color-mix(in srgb, var(--c) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--c) 16%, #fff);
}
.emp-week__day span { color: var(--muted); font-size: .6rem; font-weight: 800; text-transform: uppercase; }
.emp-week__day strong { font-family: 'Sora', sans-serif; font-size: 1.02rem; line-height: 1.1; }
.emp-week__day small {
  color: color-mix(in srgb, var(--c) 80%, #0f172a);
  font-size: .62rem; font-weight: 800; line-height: 1.2; text-align: center;
}
.emp-week__day.is-off { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 9%, #fff) 0 6px, #fff 6px 12px); }
.emp-week__day.is-today {
  background: linear-gradient(160deg, var(--brand), var(--brand-2)); border-color: transparent;
  box-shadow: 0 8px 18px rgba(11,110,110,.3);
}
.emp-week__day.is-today span, .emp-week__day.is-today strong, .emp-week__day.is-today small { color: #fff; }
.emp-week__day.is-past { opacity: .5; }

/* App dock — floating bar + raised center FAB */
.app-dock {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(10px + var(--safe-bottom));
  width: min(460px, calc(100% - 16px));
  height: 78px;
  z-index: 55;
  pointer-events: none;
}
.app-dock--admin { display: none; }
body.is-employee-app .app-dock--app { display: block; }

.app-dock__surface {
  position: absolute;
  inset: 14px 0 0;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 14px 34px rgba(16, 40, 60, .16);
  pointer-events: none;
}
.app-dock__surface::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -22px;
  width: 72px;
  height: 72px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--dock-cut, #e8eef3);
  box-shadow: 0 0 0 12px var(--dock-cut, #e8eef3);
}
.app-dock__row {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  padding: 0 6px 10px;
  pointer-events: none;
}
.app-dock__item,
.app-dock__center {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  pointer-events: auto;
  text-decoration: none;
  display: grid;
  justify-items: center;
  align-content: end;
  gap: 2px;
  color: #6f7d8d;
  font-size: .66rem;
  font-weight: 750;
  min-width: 0;
  padding: 0;
  line-height: 1.1;
}
.app-dock__item { padding-bottom: 2px; }
.app-dock__ico {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  color: inherit;
}
.app-dock__item svg,
.app-dock__ico svg,
.app-dock__center svg { width: 22px; height: 22px; display: block; }
.app-dock__item.is-active,
.app-dock__center.is-active { color: #0a4f6c; }
.app-dock__item:active { transform: scale(.96); }

.app-dock__center { gap: 4px; color: #6f7d8d; }
.app-dock__fab {
  position: relative;
  width: 58px; height: 58px;
  margin-top: -26px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(160deg, #12385a 0%, #0a4f6c 55%, #0b6e6e 100%);
  box-shadow: 0 12px 26px rgba(10, 79, 108, .42);
  border: 4px solid #fff;
}
.app-dock__fab svg { width: 24px; height: 24px; position: relative; z-index: 1; }
.app-dock__center:active .app-dock__fab { transform: scale(.95); }
.app-dock__fab-pulse {
  position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid rgba(10, 79, 108, .28);
  animation: dockPulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes dockPulse {
  0% { transform: scale(.92); opacity: .65; }
  70% { transform: scale(1.16); opacity: 0; }
  100% { transform: scale(1.16); opacity: 0; }
}

@media (max-width: 900px) {
  body.has-admin-dock .app-dock--admin { display: block; }
  body.has-admin-dock .main {
    padding-bottom: calc(120px + var(--safe-bottom));
  }
  body.has-admin-dock .topbar-quick { display: none; }
  body.has-admin-dock {
    --dock-cut: #e8eef3;
    background:
      radial-gradient(120% 60% at 100% 0%, rgba(20,145,155,.1), transparent 50%),
      linear-gradient(180deg, #eef4f7 0%, #e8eef3 100%);
  }
}

.install-page {
  max-width: 520px;
  margin: 0 auto;
  padding: 28px 16px 40px;
}
.install-page__icon {
  width: 84px; height: 84px; border-radius: 22px;
  box-shadow: 0 14px 30px rgba(11,110,110,.25);
}
.install-page h1 { font-family: 'Sora', sans-serif; margin: 16px 0 8px; }
.install-page > p { color: var(--muted); }
.install-link {
  display: grid; gap: 8px;
  margin: 16px 0;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}
.install-link span { font-size: .78rem; font-weight: 800; color: var(--muted); }
.install-link code { word-break: break-all; font-weight: 800; color: var(--brand); }
.install-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.install-card h2 { font-size: 1rem; margin: 0 0 8px; }
.install-card ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.install-done {
  padding: 12px 14px; border-radius: 14px;
  background: rgba(15,138,95,.12); color: var(--ok); font-weight: 800;
}
.emp-side, .emp-head { display: none; }

@media (min-width: 1024px) {
  .emp-side {
    display: flex; flex-direction: column; gap: 16px;
    position: fixed; inset: 0 auto 0 0; z-index: 60;
    width: 264px;
    padding: 20px 14px 16px;
    background: linear-gradient(180deg, #0a3d4d 0%, #0b6e6e 70%, #0f766e 100%);
    color: #fff;
    overflow-y: auto; scrollbar-width: none;
  }
  .emp-side::-webkit-scrollbar { display: none; }
  .emp-side__brand {
    display: flex; align-items: center; gap: 12px;
    padding: 4px 8px 16px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    color: inherit;
  }
  .emp-side__brand img { width: 42px; height: 42px; border-radius: 13px; box-shadow: 0 8px 18px rgba(0,0,0,.18); }
  .emp-side__brand strong { display: block; font-family: 'Sora', sans-serif; font-size: 1.12rem; line-height: 1.1; }
  .emp-side__brand span { display: block; margin-top: 2px; opacity: .7; font-size: .76rem; }

  .emp-side__me {
    display: flex; align-items: center; gap: 11px;
    padding: 10px; border-radius: 16px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
    color: inherit; transition: background .15s ease;
  }
  .emp-side__me:hover { background: rgba(255,255,255,.14); }
  .emp-side__me img {
    width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%;
    object-fit: cover; background: #fff; border: 2px solid rgba(255,255,255,.75);
  }
  .emp-side__me div { min-width: 0; }
  .emp-side__me strong,
  .emp-side__me span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .emp-side__me strong { font-size: .9rem; }
  .emp-side__me span { margin-top: 1px; font-size: .74rem; opacity: .7; }

  .emp-side__nav { display: grid; gap: 14px; }
  .emp-side__group { display: grid; gap: 3px; }
  .emp-side__label {
    padding: 0 12px 4px;
    font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    opacity: .55;
  }
  .emp-side__nav a,
  .emp-side__out button {
    position: relative;
    display: flex; align-items: center; gap: 11px;
    padding: 9px 12px; border-radius: 12px;
    color: rgba(255,255,255,.82);
    font-weight: 700; font-size: .92rem;
    transition: background .15s ease, color .15s ease;
  }
  .emp-side__ico { width: 20px; height: 20px; flex: 0 0 auto; display: grid; place-items: center; }
  .emp-side__ico svg { width: 19px; height: 19px; }
  .emp-side__nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
  .emp-side__nav a.is-active {
    background: rgba(255,255,255,.16); color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
  }
  .emp-side__nav a.is-active::before {
    content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px;
    width: 4px; border-radius: 0 4px 4px 0; background: #fff;
  }
  .emp-side__out { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }
  .emp-side__out button { width: 100%; border: 0; background: transparent; font-family: inherit; cursor: pointer; }
  .emp-side__out button:hover { background: rgba(239,68,68,.2); color: #fff; }

  body.is-employee-app .app-topbar { display: none; }
  body.is-employee-app .app-dock--app { display: none; }
  body.is-employee-app .app-status-glow { left: 264px; }
  body.is-employee-app .mobile-app {
    max-width: none;
    margin: 0 0 0 264px;
    min-height: 100vh;
    padding: 24px 28px 48px;
  }

  .emp-head {
    position: sticky; top: 12px; z-index: 40;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin-bottom: 20px; padding: 12px 14px 12px 16px;
    background: #fff; border: 1px solid var(--line); border-radius: 22px;
    box-shadow: 0 12px 30px rgba(16,40,60,.07);
  }
  .emp-head__title { display: flex; align-items: center; gap: 14px; min-width: 0; }
  .emp-head__icon {
    width: 50px; height: 50px; flex: 0 0 auto; border-radius: 16px;
    display: grid; place-items: center;
    background: linear-gradient(145deg, rgba(11,110,110,.14), rgba(10,79,108,.08));
    color: var(--brand);
  }
  .emp-head__icon svg { width: 24px; height: 24px; }
  .emp-head__title > div { min-width: 0; }
  .emp-head__eyebrow {
    display: block; color: var(--brand);
    font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  }
  .emp-head h1 { margin: 1px 0 0; font-size: 1.4rem; line-height: 1.15; }
  .emp-head__title p {
    margin: 2px 0 0; color: var(--muted); font-size: .84rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .emp-head__aside { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

  .emp-head__state {
    --st: #b45309; --st-bg: rgba(251,191,36,.14);
    display: flex; align-items: center; gap: 10px;
    height: 48px; padding: 0 14px 0 12px; border-radius: 14px;
    background: var(--st-bg);
  }
  .emp-head__state.is-in { --st: #0f8a5f; --st-bg: rgba(15,138,95,.1); }
  .emp-head__state.is-done { --st: #0a4f6c; --st-bg: rgba(10,79,108,.08); }
  .emp-head__state.is-off { --st: #6d28d9; --st-bg: rgba(124,58,237,.08); }
  .emp-head__state i {
    position: relative; width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: var(--st);
  }
  .emp-head__state.is-in i::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--st);
    animation: empPulse 1.8s ease-out infinite;
  }
  @keyframes empPulse {
    0% { transform: scale(1); opacity: .7; }
    80%, 100% { transform: scale(2.6); opacity: 0; }
  }
  .emp-head__state strong { display: block; color: var(--st); font-size: .86rem; line-height: 1.15; }
  .emp-head__state span { display: block; color: var(--muted); font-size: .74rem; font-weight: 700; }

  .emp-head__clock {
    display: grid; justify-items: center; align-content: center;
    height: 48px; padding: 0 14px; border-radius: 14px; background: #f4f8fb;
  }
  .emp-head__clock strong { font-family: 'Sora', sans-serif; font-size: 1.05rem; line-height: 1.1; }
  .emp-head__clock span { color: var(--muted); font-size: .7rem; font-weight: 700; }

  .emp-head__scan {
    display: inline-flex; align-items: center; gap: 8px;
    height: 48px; padding: 0 18px; border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
    font-weight: 800; font-size: .9rem;
    box-shadow: 0 10px 22px rgba(11,110,110,.25);
  }
  .emp-head__scan svg { width: 18px; height: 18px; }
  .emp-head__me {
    display: flex; align-items: center; gap: 10px;
    height: 48px; padding: 0 12px 0 4px; margin-left: 2px;
    border-left: 1px solid var(--line);
  }
  .emp-head__me img {
    width: 40px; height: 40px; margin-left: 10px; border-radius: 50%; object-fit: cover;
    border: 2px solid #fff; box-shadow: 0 0 0 2px rgba(11,110,110,.3);
  }
  .emp-head__me strong { display: block; font-size: .88rem; line-height: 1.15; }
  .emp-head__me span { display: block; color: var(--muted); font-size: .74rem; max-width: 130px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .emp-head__me:hover strong { color: var(--brand); }

  body.is-employee-app .mobile-hero,
  body.is-employee-app .app-hero { border-radius: 24px; }
  .mobile-hero .today-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .emp-home {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
    grid-template-areas: "hero month" "hero actions" "perf perf" "week week" "recent recent";
    gap: 18px;
  }
  .emp-home__perf { grid-area: perf; min-width: 0; }
  .emp-perf__head { margin-top: 0; }
  .emp-perf__track {
    display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, 1fr));
    margin: 0; padding: 0; overflow: visible;
  }
  .emp-perf__dots { display: none; }
  .emp-home__hero { grid-area: hero; display: flex; flex-direction: column; }
  .emp-home__hero .today-grid { margin-top: auto; padding-top: 18px; }
  .emp-home__month { grid-area: month; margin-top: 0; }
  .emp-home__actions { grid-area: actions; margin-top: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .emp-home__recent { grid-area: recent; }
  .emp-home__week { grid-area: week; margin-top: 0; }
  .emp-week__day { padding: 12px 4px; }
  .emp-week__day strong { font-size: 1.2rem; }
  .emp-week__day small { font-size: .74rem; }
  .emp-home__recent .app-section-title { margin-top: 4px; }

  .att-list {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px;
    margin-top: 12px;
  }
  .emp-home__recent .att-list { margin-top: 0; }
  .att-list > * { margin-top: 0; }
  .att-list > .cabinet-card { grid-column: 1 / -1; }

  .emp-narrow { max-width: 640px; margin: 0 auto; }
}
@media (min-width: 1024px) and (max-width: 1320px) {
  .emp-head__clock, .emp-head__me div { display: none; }
  .emp-head__me { padding-right: 0; }
}

@media (max-width: 420px) {
  .att-card__rows { grid-template-columns: 1fr 1fr 1fr; }
  .today-tile strong { font-size: 1.05rem; }
  .mobile-app { padding-left: 12px; padding-right: 12px; }
  .quick-actions { grid-template-columns: 1fr 1fr 1fr; }
  .quick-actions__item { padding: 12px 8px; }
  .app-dock { height: 76px; }
  .app-dock__fab { width: 54px; height: 54px; margin-top: -24px; }
  .app-dock__item,
  .app-dock__center { font-size: .62rem; }
}

/* ---------- Siyahı filtrləri (işçilər, şöbələr, vəzifələr) ---------- */
.emp-search__status {
  display: inline-flex; gap: 4px; padding: 4px;
  background: #f0f4f7; border-radius: 14px;
}
.emp-chip { position: relative; cursor: pointer; }
.emp-chip input { position: absolute; opacity: 0; pointer-events: none; }
.emp-chip span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 11px;
  font-size: .84rem; font-weight: 700; color: var(--muted); white-space: nowrap;
  transition: .15s ease;
}
.emp-chip b {
  font-size: .7rem; padding: 1px 7px; border-radius: 999px;
  background: rgba(16,32,51,.07); color: var(--ink);
}
.emp-chip input:checked + span { background: #fff; color: var(--brand); box-shadow: 0 4px 12px rgba(16,40,60,.08); }
.emp-chip input:checked + span b { background: rgba(11,110,110,.12); color: var(--brand); }
.emp-chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 1px; }
.emp-results__meta {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin-bottom: 10px; color: var(--muted); font-size: .86rem;
}
.emp-results__meta b { color: var(--ink); }
.emp-results__meta em { font-style: normal; font-weight: 800; color: var(--brand); }
.emp-results__meta a { font-weight: 800; color: var(--brand); }
.emp-results mark, .org mark { background: rgba(217,119,6,.22); color: inherit; border-radius: 4px; padding: 0 1px; }
@media (max-width: 700px) {
  .emp-search__status { display: grid; grid-template-columns: repeat(3, 1fr); }
  .emp-chip span { justify-content: center; width: 100%; padding: 8px 6px; }
}

/* ---------- Şöbələr / vəzifələr ---------- */
.org { display: grid; gap: 14px; min-width: 0; }
.org .empty-state[hidden] { display: none; }
.org-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.org-stat {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  padding: 14px 16px; border-radius: 20px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(16,40,60,.05);
}
.org-stat__ico {
  --c: var(--brand);
  width: 42px; height: 42px; flex: 0 0 auto; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c);
}
.org-stat__ico .ui-icon { width: 20px; height: 20px; }
.org-stat small { display: block; color: var(--muted); font-size: .76rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org-stat strong { display: block; font-family: 'Sora', sans-serif; font-size: 1.4rem; line-height: 1.2; }
.org-stat strong em { margin-left: 4px; font-style: normal; font-family: 'Manrope', sans-serif; font-size: .8rem; font-weight: 700; color: var(--muted); }
.org-stat.is-warn { border-color: rgba(217,119,6,.35); background: linear-gradient(180deg, #fffbeb, #fff); }
.org-stat.is-warn strong { color: #b45309; }

.org-toolbar {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr) auto;
  gap: 10px; align-items: center; margin-bottom: 14px;
}
.org-toolbar .control { min-height: 46px; }
.org-toolbar .control__input { min-height: 46px; padding-top: 11px !important; padding-bottom: 11px !important; }
.org-search .control__input { padding-right: 46px !important; }
.org-search .control__input::-webkit-search-cancel-button { display: none; }
.org-search__clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: #e8eef3; color: var(--muted);
}
.org-search__clear[hidden] { display: none; }
.org-search__clear svg { width: 14px; height: 14px; }
.org-search__clear:hover { background: rgba(194,65,65,.12); color: var(--danger); }
.org-search__kbd {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: 7px; display: grid; place-items: center;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  font: 700 .75rem/1 'Manrope', sans-serif; pointer-events: none;
}
.org-search:focus-within .org-search__kbd,
.org-search__clear:not([hidden]) ~ .org-search__kbd { display: none; }
.org-link { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; font-weight: 800; color: var(--brand); }

.org-row { grid-template-columns: minmax(200px, 1.3fr) minmax(220px, 1.3fr) auto auto; }
.org-row[hidden] { display: none; }
.org-row.is-off { background: #fbfcfd; }
.org-row.is-off .org-tile { filter: grayscale(.85); opacity: .6; }
.org-row.is-off .person-row__who strong { color: var(--muted); }
.org-row.is-busy { opacity: .5; pointer-events: none; }
.org-tile {
  --c: var(--brand);
  width: 44px; height: 44px; flex: 0 0 auto; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--c), color-mix(in srgb, var(--c) 70%, #0f172a));
  color: #fff; font: 800 .74rem/1 'Sora', sans-serif; letter-spacing: .02em;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 28%, transparent), inset 0 0 0 1px rgba(255,255,255,.18);
}
.org-tile .ui-icon { width: 20px; height: 20px; }
.org-meta { display: flex; align-items: center; gap: 12px; min-width: 0; flex-wrap: wrap; }
.org-people { display: flex; align-items: center; min-width: 0; }
.org-people__stack { display: inline-flex; align-items: center; }
.org-people__stack img, .org-people__stack b {
  width: 30px; height: 30px; border-radius: 50%; object-fit: cover; margin-left: -8px;
  box-shadow: 0 0 0 2.5px #fff;
}
.org-people__stack > :first-child { margin-left: 0; }
.org-people__stack b {
  display: grid; place-items: center; background: #e8f3f2; color: var(--brand);
  font-size: .66rem; font-weight: 800;
}
.org-people__none { color: var(--muted); font-size: .78rem; font-weight: 700; }
.org-share { display: flex; align-items: center; gap: 7px; flex: 1 1 90px; min-width: 90px; max-width: 160px; }
.org-share > span { flex: 1 1 auto; height: 6px; border-radius: 999px; background: #eef2f6; overflow: hidden; }
.org-share i { display: block; height: 100%; border-radius: inherit; }
.org-share small { color: var(--muted); font-size: .72rem; font-weight: 800; min-width: 30px; text-align: right; }
.icon-btn.is-danger:hover { background: rgba(194,65,65,.12); color: var(--danger); }
button.icon-btn { padding: 0; cursor: pointer; font: inherit; }
.icon-btn.is-chat { background: rgba(22,163,74,.1); color: #15803d; border-color: rgba(22,163,74,.2); }
.icon-btn.is-chat:hover { background: linear-gradient(135deg, #16a34a, #0b6e6e); color: #fff; border-color: transparent; }
.icon-btn.is-on { background: rgba(22,163,74,.12); color: #15803d; }

.org-dialog {
  width: min(500px, calc(100% - 24px)); max-height: calc(100vh - 40px);
  padding: 0; border: 0; border-radius: 24px; background: transparent; overflow: visible;
}
.org-dialog::backdrop { background: rgba(15,23,42,.45); }
.org-dialog__box {
  display: grid; gap: 14px; padding: 20px;
  background: #fff; border-radius: 24px; box-shadow: 0 30px 60px rgba(15,23,42,.25);
  max-height: calc(100vh - 40px); overflow: auto;
}
.org-grip { display: none; }
.org-dialog__head { display: flex; align-items: center; gap: 12px; }
.org-dialog__head > div { flex: 1 1 auto; min-width: 0; }
.org-dialog__eyebrow { color: var(--brand); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.org-dialog__head h3 { margin: 2px 0 0; font-family: 'Sora', sans-serif; font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org-dialog__x {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px; border: 0; cursor: pointer;
  display: grid; place-items: center; background: #f1f5f9; color: var(--ink);
}
.org-dialog__x svg { width: 18px; height: 18px; }
.org-dialog__body { display: grid; gap: 12px; }
.org-dialog__body .field { margin: 0; }
.org-dialog__foot { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.org-dialog__foot .btn { min-height: 48px; justify-content: center; }
.org-dialog__foot .btn svg { width: 18px; height: 18px; }
.org-switch { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #f8fafc; border: 1px solid var(--line); cursor: pointer; }
.org-switch[hidden] { display: none; }
.org-switch input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.org-switch__ui { position: relative; width: 44px; height: 26px; flex: 0 0 auto; border-radius: 999px; background: #cbd5e1; transition: background .15s ease; }
.org-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(15,23,42,.2); transition: transform .18s ease; }
.org-switch input:checked + .org-switch__ui { background: var(--brand); }
.org-switch input:checked + .org-switch__ui::after { transform: translateX(18px); }
.org-switch__text { display: grid; }
.org-switch__text strong { font-size: .9rem; }
.org-switch__text small { color: var(--muted); font-size: .76rem; }
.org-dialog.is-confirm { width: min(420px, calc(100% - 24px)); }
.org-dialog.is-confirm .org-dialog__box { justify-items: center; text-align: center; }
.org-dialog.is-confirm h3 { margin: 0; font-family: 'Sora', sans-serif; font-size: 1.1rem; }
.org-dialog.is-confirm p { margin: -6px 0 4px; line-height: 1.5; }
.org-dialog.is-confirm .org-dialog__foot { width: 100%; grid-template-columns: 1fr 1fr; }
.org-confirm__ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: rgba(220,38,38,.1); color: #dc2626; }
.org-confirm__ico svg { width: 26px; height: 26px; }

button.org-open { width: 100%; padding: 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; border-radius: 14px; }
button.org-open:hover .person-row__who strong { color: var(--brand); }
button.org-open:focus-visible, button.org-people__stack:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
button.org-people__stack { padding: 3px; margin: -3px; border: 0; background: none; cursor: pointer; border-radius: 999px; transition: transform .15s ease; }
button.org-people__stack:hover { transform: translateY(-1px); }
button.org-people__stack:hover img, button.org-people__stack:hover b { box-shadow: 0 0 0 2.5px #fff, 0 4px 10px rgba(16,40,60,.15); }
.org-people { gap: 10px; }
.org-people__live { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; color: var(--muted); white-space: nowrap; }
.org-people__live i { width: 7px; height: 7px; border-radius: 50%; background: #cbd5e1; }
.org-people__live.is-on { color: #15803d; }
.org-people__live.is-on i { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
button.org-count { border: 0; cursor: pointer; font: inherit; font-size: .74rem; font-weight: 800; }
button.org-count:hover { background: rgba(11,110,110,.12); color: var(--brand); }

.opd { width: min(560px, calc(100% - 24px)); }
.opd h3:focus { outline: none; }
.opd__box { gap: 12px; grid-template-rows: auto auto auto minmax(0, 1fr) auto; max-height: min(720px, calc(100vh - 40px)); overflow: hidden; }
.opd__summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.opd__summary:empty { display: none; }
.opd__summary small { margin-left: auto; color: var(--muted); font-size: .72rem; font-weight: 700; }
.opd__search[hidden] { display: none; }
.opd__search .control__input { min-height: 44px; }
.opd__search .control__input::-webkit-search-cancel-button { display: none; }
.opd__list { list-style: none; margin: 0 -6px; padding: 0 6px; display: grid; gap: 6px; align-content: start; overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.opd-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px;
  border: 1px solid var(--line); background: #fff; transition: border-color .15s ease, background .15s ease;
}
.opd-row:hover { border-color: rgba(11,110,110,.25); background: #f8fbfc; }
.opd-row[hidden] { display: none; }
.opd-row.is-off { background: #fbfcfd; }
.opd-row.is-off img { filter: grayscale(1); opacity: .6; }
.opd-row__main { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; color: inherit; text-decoration: none; }
.opd-row__av { position: relative; flex: 0 0 auto; }
.opd-row__av img { display: block; width: 44px; height: 44px; border-radius: 14px; object-fit: cover; background: #eef3f7; }
.opd-row__av i { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; background: #22c55e; border: 2.5px solid #fff; }
.opd-row__who { display: grid; gap: 2px; min-width: 0; }
.opd-row__who strong { font-family: 'Sora', sans-serif; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opd-row__who strong em { font-style: normal; font-family: 'Manrope', sans-serif; font-size: .64rem; font-weight: 800; padding: 2px 6px; border-radius: 6px; background: rgba(217,119,6,.12); color: #b45309; vertical-align: 2px; }
.opd-row__who small { color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opd-row__main:hover strong { color: var(--brand); }
.opd-row__side { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.opd-row__acts { display: flex; gap: 4px; }
.opd-row__acts .icon-btn { width: 34px; height: 34px; }
.opd-row__acts .icon-btn svg { width: 16px; height: 16px; }
.opd-pill {
  --c: #64748b;
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; white-space: nowrap;
  font-size: .72rem; font-weight: 800; color: color-mix(in srgb, var(--c) 85%, #000); background: color-mix(in srgb, var(--c) 13%, #fff);
}
.opd-pill b { font-weight: 700; opacity: .8; }
.opd-pill.tone-ok { --c: #16a34a; }
.opd-pill.tone-late { --c: #d97706; }
.opd-pill.tone-absent { --c: #dc2626; }
.opd-pill.tone-leave { --c: #0284c7; }
.opd-pill.tone-wait { --c: #64748b; }
.opd-pill.tone-off { --c: #475569; }
.opd-pill.tone-inactive { --c: #94a3b8; }
.opd-pill.tone-neutral { --c: #0b6e6e; }
.opd-empty { padding: 18px; text-align: center; color: var(--muted); font-size: .86rem; }
.opd-empty[hidden] { display: none; }
.opd-empty.is-big { display: grid; gap: 4px; padding: 30px 18px; border-radius: 16px; background: #f8fafc; border: 1px dashed var(--line); }
.opd-empty.is-big strong { color: var(--ink); font-size: .95rem; }
.opd__foot { grid-template-columns: 1fr 1fr; }
.opd__foot:has(> :only-child) { grid-template-columns: 1fr; }

@media (max-width: 1100px) {
  .org-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .org-toolbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .org-search { grid-column: 1 / -1; }
  .org-row { grid-template-columns: 1fr auto; }
  .org-meta { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .org-stats { gap: 8px; }
  .org-stat { padding: 11px 12px; gap: 10px; border-radius: 16px; }
  .org-stat__ico { width: 36px; height: 36px; border-radius: 12px; }
  .org-stat strong { font-size: 1.15rem; }
  .org-toolbar { grid-template-columns: 1fr; gap: 8px; }
  .org-search__kbd { display: none; }
  .org-row { grid-template-columns: 1fr auto; gap: 10px; }
  .org-row .person-row__main, .org-row .org-meta { grid-column: 1 / -1; }
  .org-row .org-meta { order: 2; }
  .org-row .person-row__status { order: 3; align-self: center; justify-content: flex-start; }
  .org-row .person-row__actions { order: 4; justify-content: flex-end; }
  .org-share { max-width: none; }
  .org-dialog { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 26px 26px 0 0; }
  .org-dialog__box { border-radius: 26px 26px 0 0; padding: 10px 16px calc(18px + var(--safe-bottom, 0px)); }
  .org-grip { display: block; width: 44px; height: 5px; margin: 0 auto; border-radius: 999px; background: #cbd5e1; }
  .org-dialog.is-confirm { width: 100%; }
  .opd { width: 100%; }
  .opd__box { max-height: 88vh; }
  .opd__summary small { display: none; }
  .opd-row { flex-wrap: wrap; gap: 8px; }
  .opd-row__side { width: 100%; justify-content: space-between; padding-left: 56px; }
}
