:root{
  --navy-900:#081F2C;
  --navy-800:#0A2838;
  --navy-700:#0E3A4E;
  --navy-600:#12465C;

  --brand:#0E7490;
  --brand-600:#0B6277;
  --brand-soft:#E4F4F8;
  --brand-line:#BEE7EF;

  --text:#16262F;
  --text-2:#3D5563;
  --muted:#728B99;
  --faint:#9DAFB9;

  --bg:#F2F6F8;
  --card:#FFFFFF;
  --line:#E2EAF0;
  --line-2:#EDF3F6;

  --ok:#0E9F6E;
  --ok-soft:#E6F6F0;
  --warn:#C77700;
  --warn-soft:#FDF3E2;
  --danger:#D93B3B;
  --danger-soft:#FDECEC;
  --info:#2563EB;
  --info-soft:#EAF1FE;

  --r-sm:8px;
  --r:12px;
  --r-lg:16px;
  --shadow-1:0 1px 2px rgba(9,36,51,.05), 0 1px 1px rgba(9,36,51,.03);
  --shadow-2:0 8px 24px -6px rgba(9,36,51,.14), 0 2px 6px rgba(9,36,51,.05);
  --shadow-3:0 24px 60px -12px rgba(9,36,51,.28);
  --sidebar-w:246px;
}

*,*::before,*::after{ box-sizing:border-box; }

html,body{ height:100%; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:14px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  -webkit-tap-highlight-color:transparent;
}

h1,h2,h3,h4,p{ margin:0; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; }
svg{ width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }

.shell{ display:flex; min-height:100vh; }

.sidebar{
  position:fixed; inset:0 auto 0 0; width:var(--sidebar-w); z-index:60;
  display:flex; flex-direction:column;
  background:linear-gradient(168deg,#0C3044 0%,#0A2838 46%,#081F2C 100%);
  color:#CBDCE5;
  border-right:1px solid rgba(255,255,255,.04);
}
.sidebar::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(520px 260px at 10% -8%, rgba(56,189,248,.18), transparent 70%);
}

.brand{ display:flex; align-items:center; gap:11px; padding:20px 18px 18px; position:relative; z-index:1; }
.brand-mark{
  width:38px; height:38px; flex:none; border-radius:11px;
  display:grid; place-items:center;
  background:linear-gradient(150deg,#1C6C88,#0E4A61);
  color:#8FE3F7;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16), 0 6px 16px -6px rgba(56,189,248,.5);
}
.brand-mark svg{ width:24px; height:24px; stroke:none; fill:#B7ECFA; }
.brand-mark svg path:nth-child(2),.brand-mark svg path:nth-child(3){ fill:none; stroke:#B7ECFA; }
.brand-text{ display:flex; flex-direction:column; line-height:1.25; }
.brand-text strong{ color:#fff; font-size:16.5px; letter-spacing:.06em; font-weight:650; }
.brand-text span{ font-size:11px; color:#7FA3B4; letter-spacing:.04em; }

.nav{ flex:1; overflow-y:auto; padding:6px 12px 12px; position:relative; z-index:1; }
.nav-label{
  font-size:10.5px; letter-spacing:.16em; text-transform:uppercase;
  color:#5C7F91; padding:16px 10px 7px; font-weight:600;
}
.nav-item{
  display:flex; align-items:center; gap:11px;
  padding:9.5px 11px; margin-bottom:2px;
  border-radius:9px; color:#A9C3D0; font-size:13.5px; font-weight:500;
  transition:background .15s, color .15s; position:relative;
}
.nav-item svg{ width:18px; height:18px; opacity:.85; flex:none; }
.nav-item:hover{ background:rgba(255,255,255,.05); color:#E4F1F7; }
.nav-item.active{
  background:linear-gradient(90deg,rgba(56,189,248,.18),rgba(56,189,248,.06));
  color:#fff; font-weight:600;
  box-shadow:inset 0 0 0 1px rgba(120,220,255,.14);
}
.nav-item.active::before{
  content:""; position:absolute; left:-12px; top:50%; transform:translateY(-50%);
  width:3px; height:18px; border-radius:0 3px 3px 0; background:#38BDF8;
}
.nav-item.active svg{ opacity:1; color:#7DD3FC; }
.nav-badge{
  margin-left:auto; font-style:normal; font-size:11px; font-weight:700;
  min-width:20px; height:19px; padding:0 6px; border-radius:9px;
  display:none; align-items:center; justify-content:center;
  background:#E8544E; color:#fff;
}
.nav-badge.show{ display:inline-flex; }

.sidebar-foot{ padding:12px; position:relative; z-index:1; border-top:1px solid rgba(255,255,255,.07); }
.company-mini{ display:flex; gap:9px; align-items:flex-start; padding:9px 10px; border-radius:9px; background:rgba(255,255,255,.045); }
.company-mini .dot{ width:7px; height:7px; border-radius:50%; background:#3FCF9B; margin-top:6px; flex:none; box-shadow:0 0 0 3px rgba(63,207,155,.16); }
.company-mini strong{ display:block; color:#DCEBF3; font-size:11.5px; font-weight:600; line-height:1.45; word-break:break-word; }
.company-mini span{ font-size:11px; color:#7899A9; }

.main{ flex:1; min-width:0; margin-left:var(--sidebar-w); display:flex; flex-direction:column; }

.topbar{
  position:sticky; top:0; z-index:40;
  display:flex; align-items:center; gap:14px;
  height:64px; padding:0 26px;
  background:rgba(255,255,255,.86);
  backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid var(--line);
}
.topbar-title{ min-width:0; }
.topbar-title h1{ font-size:17px; font-weight:650; letter-spacing:.01em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.topbar-actions{ margin-left:auto; display:flex; align-items:center; gap:12px; }

.search-box{
  display:flex; align-items:center; gap:8px;
  height:36px; padding:0 10px 0 11px; min-width:250px;
  background:#F4F8FA; border:1px solid var(--line); border-radius:9px;
  color:var(--faint); font-size:13px; cursor:pointer; transition:.16s;
}
.search-box:hover{ border-color:var(--brand-line); background:#fff; box-shadow:var(--shadow-1); }
.search-box svg{ width:16px; height:16px; }
.search-box span{ flex:1; text-align:left; }
.search-box kbd{
  font-family:inherit; font-size:11px; color:var(--faint);
  border:1px solid var(--line); background:#fff; border-radius:4px; padding:0 5px; line-height:16px;
}
.avatar{
  width:34px; height:34px; border-radius:50%; flex:none;
  display:grid; place-items:center; font-size:13px; font-weight:700; color:#fff;
  background:linear-gradient(145deg,#146B85,#0A3C51);
  box-shadow:0 3px 10px -4px rgba(10,60,81,.7);
  cursor:pointer; transition:transform .14s, box-shadow .14s;
}
.avatar:hover{ transform:translateY(-1px); box-shadow:0 6px 14px -5px rgba(10,60,81,.75); }

.user-mini{ cursor:pointer; transition:background .14s, border-color .14s; }
.user-mini:hover{ background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.16); }
.user-mini .um-out{ cursor:pointer; }

.icon-btn{
  width:36px; height:36px; border-radius:9px; border:1px solid transparent;
  background:transparent; color:var(--text-2); display:grid; place-items:center; cursor:pointer;
}
.icon-btn:hover{ background:#F1F6F8; }
.icon-btn svg{ width:19px; height:19px; }
.menu-btn{ display:none; }

.view{ flex:1; padding:22px 26px 8px; max-width:1400px; width:100%; }
.footnote{ padding:18px 26px 26px; color:var(--faint); font-size:11.5px; }

.page-head{ display:flex; align-items:flex-end; gap:16px; margin-bottom:18px; flex-wrap:wrap; }
.page-head .ph-text{ min-width:0; }
.page-head h2{ font-size:20px; font-weight:680; letter-spacing:-.01em; display:flex; align-items:center; gap:9px; }
.page-head .ph-actions{ margin-left:auto; display:flex; gap:9px; align-items:center; flex-wrap:wrap; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  height:36px; padding:0 15px; border-radius:9px; border:1px solid transparent;
  background:linear-gradient(180deg,#0F7E9C,#0C6880);
  color:#fff; font-size:13px; font-weight:600; cursor:pointer;
  transition:transform .12s, box-shadow .16s, background .16s;
  box-shadow:0 1px 2px rgba(12,104,128,.35), inset 0 1px 0 rgba(255,255,255,.14);
  white-space:nowrap;
}
.btn:hover{ background:linear-gradient(180deg,#1289A9,#0C6880); box-shadow:0 4px 12px -4px rgba(12,104,128,.55); }
.btn:active{ transform:translateY(1px); }
.btn svg{ width:16px; height:16px; stroke-width:2; }
.btn.ghost{ background:#fff; border-color:var(--line); color:var(--text-2); box-shadow:var(--shadow-1); }
.btn.ghost:hover{ border-color:#C9DCE4; background:#FBFDFE; color:var(--text); }
.btn.subtle{ background:#EEF5F8; color:var(--brand-600); border-color:transparent; box-shadow:none; }
.btn.subtle:hover{ background:#E3EFF4; }
.btn.danger{ background:#fff; border-color:#F3CFCF; color:var(--danger); box-shadow:none; }
.btn.danger:hover{ background:#FDF3F3; }

.btn.btn-wait{ color:var(--faint); border-style:dashed; border-color:#D8E3E8; }
.btn.btn-wait:hover{ background:#fff; color:var(--muted); border-color:#C9DCE4; box-shadow:var(--shadow-1); }
.btn.sm{ height:30px; padding:0 11px; font-size:12.5px; border-radius:8px; }
.btn.block{ width:100%; }

.card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--r-lg);
  box-shadow:var(--shadow-1);
}
.card-head{
  display:flex; align-items:center; gap:10px;
  padding:15px 18px; border-bottom:1px solid var(--line-2);
}
.card-head h3{ font-size:14px; font-weight:650; display:flex; align-items:center; gap:8px; }
.card-head .ch-actions{ margin-left:auto; display:flex; gap:8px; align-items:center; }
.card-body{ padding:16px 18px; }
.card-body.tight{ padding:6px 10px; }
.card-body.flush{ padding:0; }
.link{ color:var(--brand); font-size:12.5px; font-weight:600; display:inline-flex; align-items:center; gap:3px; cursor:pointer; }
.link svg{ width:13px; height:13px; }
.card-head h3 svg{ width:16px; height:16px; color:var(--brand); flex:none; }
.link:hover{ text-decoration:underline; }
.count-chip{ font-size:11.5px; color:var(--muted); background:#F3F7F9; border-radius:20px; padding:1px 8px; font-weight:600; }

.kpi-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:16px; }
.kpi{
  position:relative; overflow:hidden;
  background:#fff; border:1px solid var(--line); border-radius:var(--r-lg);
  padding:15px 16px 14px; box-shadow:var(--shadow-1);
  display:flex; gap:13px; align-items:flex-start;
}
.kpi-icon{
  width:38px; height:38px; border-radius:10px; flex:none; display:grid; place-items:center;
  background:var(--brand-soft); color:var(--brand-600);
}
.kpi-icon svg{ width:19px; height:19px; }
.kpi-icon.ok{ background:var(--ok-soft); color:var(--ok); }
.kpi-icon.warn{ background:var(--warn-soft); color:var(--warn); }
.kpi-icon.danger{ background:var(--danger-soft); color:var(--danger); }
.kpi-main{ min-width:0; }
.kpi-label{ font-size:12px; color:var(--muted); font-weight:500; }
.kpi-value{ font-size:25px; font-weight:700; letter-spacing:-.02em; line-height:1.25; font-variant-numeric:tabular-nums; }
.kpi-value small{ font-size:12.5px; font-weight:600; color:var(--faint); margin-left:3px; }
.kpi-sub{ font-size:11.5px; color:var(--faint); margin-top:1px; }
.kpi-sub em{ font-style:normal; color:var(--text-2); font-weight:600; }

.dash-grid{ display:grid; grid-template-columns:minmax(0,1.62fr) minmax(0,1fr); gap:16px; align-items:start; }
.stack{ display:flex; flex-direction:column; gap:16px; }

.cert-row{
  display:grid; grid-template-columns:minmax(0,1fr) 168px 132px 108px 58px;
  gap:12px; align-items:center; min-height:64px;
  padding:11px 14px 11px 16px; position:relative;
  border-bottom:1px solid var(--line-2);
}
.cert-row:last-child{ border-bottom:none; }
.cert-row::before{
  content:""; position:absolute; left:0; top:0; bottom:0; width:3px;
  background:transparent;
}
.cert-row.lv-expired::before{ background:#E2564F; }
.cert-row.lv-urgent::before{ background:#E8A03C; }
.cert-row.lv-warn::before{ background:#E9CE6B; }
.cert-row.lv-ok::before{ background:#7FC8AC; }

.cert-row.lv-muted::before{ background:#D5E1E8; }

.cert-name{ font-size:13.5px; font-weight:600; display:flex; align-items:center; gap:7px; }

.cert-badge{ justify-self:end; display:flex; align-items:center; }
.cert-badge .pill{ min-width:104px; justify-content:center; box-sizing:border-box; }
.only-sm{ display:none; }
.cert-name .who{ font-weight:600; }
.cert-sub{ font-size:11.5px; color:var(--muted); margin-top:1px; display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.cert-sub .dotsep{ width:3px; height:3px; border-radius:50%; background:#C6D6DE; }

.cert-date{
  font-size:12.5px; color:var(--text-2); font-variant-numeric:tabular-nums;
  display:flex; flex-direction:column; justify-content:center;
  min-height:36px; line-height:1.45; white-space:nowrap;
}
.cert-date span{ display:block; font-size:10.5px; color:var(--faint); }

.cert-src{
  display:inline-flex; align-items:center; gap:3px;
  border:1px solid #d7e5f2; background:#f0f7fd; color:#2a6ea8;
  border-radius:20px; padding:0 7px; height:19px; font-size:10.5px; font-family:inherit;
  cursor:pointer; white-space:nowrap; line-height:1;
}
.cert-src:hover{ background:#e6f1fb; border-color:#bcd8ef; }
.cert-src:disabled{ opacity:.65; cursor:default; }
.cert-src svg{ width:11px; height:11px; }
.cert-ocr{
  font-size:10px; font-weight:600; color:#3f7a5c; background:#e6f4ec;
  border-radius:4px; padding:0 4px; line-height:1.7;
}

.cert-photos{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.cert-photo{ margin:0; }
.cert-photo img{
  display:block; width:100%; height:250px; object-fit:contain;
  background:#f4f7fa; border:1px solid #e3eaf1; border-radius:8px;
}
.cert-photo figcaption{ margin-top:4px; text-align:center; font-size:11.5px; color:var(--muted); }

.cert-photo-pdf{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px;
  height:250px; border:1px solid #e3eaf1; border-radius:8px; background:#f7fafd;
  text-decoration:none; padding:10px; box-sizing:border-box;
}
.cert-photo-pdf b{
  font-size:14px; letter-spacing:.8px; color:#b3402f; background:#fdeceb;
  border:1px solid #f3c9c4; border-radius:5px; padding:2px 8px; line-height:1.5;
}
.cert-photo-pdf em{
  font-style:normal; font-size:12px; color:var(--text,#16283a); max-width:100%;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.cert-photo-pdf span{ font-size:11.5px; color:var(--brand,#1a6fb5); }
.cert-photo-pdf:hover{ border-color:var(--brand,#1a6fb5); background:#eef5fc; }
@media (max-width:600px){
  .cert-photos{ grid-template-columns:repeat(2,1fr); }
  .cert-photo img{ height:130px; }
  .cert-photo-pdf{ height:130px; gap:3px; }
  .cert-photo-pdf b{ font-size:12px; }
  .cert-photo-pdf span{ display:none; }
}
.cert-row .row-acts{ display:flex; gap:2px; justify-content:flex-end; opacity:0; transition:opacity .15s; }
.cert-row:hover .row-acts{ opacity:1; }

.cert-row.sortable{ grid-template-columns:16px minmax(0,1fr) 168px 132px 108px 58px; padding-left:10px; }
.cert-grip{
  grid-column:1; align-self:stretch;
  display:flex; align-items:center; justify-content:center;
  width:16px; color:#B7CAD6; cursor:grab; border-radius:5px;
  transition:color .12s, background .12s;
}
.cert-grip svg{ width:10px; height:16px; display:block; }
.cert-grip:hover{ color:#6E8B9C; background:#EDF3F8; }
.cert-grip:active{ cursor:grabbing; }
.cert-row.cert-drag-src{ opacity:.42; background:#F4F8FB; }
.cert-row.drop-before{ box-shadow:inset 0 2px 0 var(--brand, #1a6fb5); }
.cert-row.drop-after{ box-shadow:inset 0 -2px 0 var(--brand, #1a6fb5); }
.cert-list.dragging{ background:#FBFDFE; }
.cert-sort-hint{ font-size:11.5px; color:var(--faint); white-space:nowrap; }

.cert-ro-hint{ font-size:11.5px; color:var(--faint); white-space:nowrap; }

.cert-date.has-node{ display:flex; flex-direction:column; gap:2px; line-height:1.35; }
.cert-date.has-node .cd-tag{
  align-self:flex-start; font-style:normal; font-size:10px; font-weight:700; letter-spacing:.02em;
  color:var(--brand,#1a6fb5); background:#EAF3FA; border-radius:4px;
  padding:0 5px; line-height:15px; white-space:nowrap;
}
.cert-date.has-node b{ font-size:13.5px; font-weight:650; color:var(--text,#16283a); font-variant-numeric:tabular-nums; }
.cert-date.has-node span{ font-weight:400; color:var(--muted); }
.cert-node-tip{ font-size:11px; color:var(--faint); line-height:1.55; margin-top:5px; }

.pill{
  display:inline-flex; align-items:center; gap:4px;
  font-size:11.5px; font-weight:650; line-height:1;
  padding:4.5px 8px; border-radius:20px; white-space:nowrap;
  background:#F1F5F7; color:var(--text-2);
  font-variant-numeric:tabular-nums;
}
.pill::before{ content:""; width:5px; height:5px; border-radius:50%; background:currentColor; opacity:.85; }
.pill.ok{ background:var(--ok-soft); color:#0A7F58; }
.pill.warn{ background:var(--warn-soft); color:#A35F00; }
.pill.urgent{ background:#FDEEE1; color:#B4590C; }
.pill.expired{ background:var(--danger-soft); color:#B92F2F; }
.pill.info{ background:var(--info-soft); color:#1D4FD0; }
.pill.muted{ background:#F1F5F7; color:var(--muted); }
.pill.danger{ background:#FBE3E3; color:#B92F2F; }
.pill.plain::before{ display:none; }

.vessel-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(292px,1fr)); gap:14px; }
.vessel-card{
  background:#fff; border:1px solid var(--line); border-radius:var(--r-lg);
  padding:16px; cursor:pointer; transition:.16s; box-shadow:var(--shadow-1); position:relative; overflow:hidden;
}
.vessel-card:hover{ border-color:#C6DEE7; box-shadow:var(--shadow-2); transform:translateY(-1px); }
.vc-top{ display:flex; align-items:flex-start; gap:11px; }
.vc-flag{
  width:38px; height:38px; border-radius:10px; flex:none; display:grid; place-items:center;
  background:linear-gradient(150deg,#EAF6FA,#D8EDF5); color:#12657E;
}
.vc-flag svg{ width:20px; height:20px; }
.vc-name{ font-size:15px; font-weight:680; letter-spacing:.01em; }
.vc-meta{ font-size:11.5px; color:var(--muted); margin-top:2px; }
.vc-top .pill{ margin-left:auto; }
.vc-stats{ display:flex; gap:18px; margin-top:13px; padding-top:12px; border-top:1px dashed var(--line); }
.vc-stat span{ display:block; font-size:10.5px; color:var(--faint); }
.vc-stat strong{ font-size:13.5px; font-weight:650; font-variant-numeric:tabular-nums; }
.vc-foot{ display:flex; align-items:center; gap:6px; margin-top:11px; font-size:11.5px; color:var(--muted); }
.vc-foot svg{ width:13px; height:13px; }
.vc-foot .warn-txt{ color:#B4590C; font-weight:600; }
.vc-foot .ok-txt{ color:#0A7F58; font-weight:600; }
.vc-foot .bad-txt{ color:#B92F2F; font-weight:600; }

.toolbar{ display:flex; align-items:center; gap:9px; margin-bottom:14px; flex-wrap:wrap; }
.field-search{
  display:flex; align-items:center; gap:8px; height:36px; padding:0 12px;
  background:#fff; border:1px solid var(--line); border-radius:9px; min-width:230px; flex:1; max-width:330px;
  box-shadow:var(--shadow-1); transition:.15s;
}
.field-search:focus-within{ border-color:var(--brand); box-shadow:0 0 0 3px rgba(14,116,144,.1); }
.field-search svg{ width:16px; height:16px; color:var(--faint); flex:none; }
.field-search input{ border:none; outline:none; background:transparent; font-size:13px; width:100%; color:var(--text); }
.field-search input::placeholder{ color:var(--faint); }
.chips{ display:flex; gap:6px; flex-wrap:wrap; }
.chip{
  height:30px; padding:0 12px; border-radius:20px; cursor:pointer;
  border:1px solid var(--line); background:#fff; color:var(--text-2);
  font-size:12.5px; font-weight:550; display:inline-flex; align-items:center; gap:5px; transition:.14s;
  box-shadow:var(--shadow-1);
}
.chip:hover{ border-color:#C6DEE7; }
.chip.on{ background:var(--navy-800); border-color:var(--navy-800); color:#fff; }
.chip em{ font-style:normal; font-size:11px; opacity:.6; }

.list{ background:#fff; border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--shadow-1); }
.list-head{
  display:grid; padding:9px 16px; background:#FAFCFD; border-bottom:1px solid var(--line-2);
  font-size:11px; font-weight:650; color:var(--faint); letter-spacing:.05em; text-transform:uppercase;
}
.row{
  display:grid; align-items:center; gap:12px; padding:11px 16px;
  border-bottom:1px solid var(--line-2); cursor:pointer; transition:background .12s;
}
.row:last-child{ border-bottom:none; }
.row:hover{ background:#FAFDFE; }
.row-chev{ color:#C6D6DE; justify-self:end; display:flex; align-items:center; justify-content:flex-end; gap:5px; }
.row-chev svg{ width:16px; height:16px; }
.row.mini{ grid-template-columns:minmax(0,1fr) auto; align-items:center; padding-top:9px; padding-bottom:9px; }

.crew-cols{ grid-template-columns:minmax(180px,1.5fr) 120px minmax(120px,1fr) 120px 118px 24px; }
.doc-cols{ grid-template-columns:112px minmax(200px,2fr) 88px 108px 100px minmax(24px,auto); }

.doc-list{ display:block; }
.doc-g{ border-bottom:1px solid var(--line-2); }
.doc-g:last-child{ border-bottom:none; }
.doc-g-hd{
  display:flex; align-items:center; gap:12px; width:100%; padding:11px 16px;
  background:#fff; border:none; font:inherit; text-align:left; cursor:pointer; transition:background .14s;
}
.doc-g-hd:hover{ background:#F8FCFD; }
.doc-g.open .doc-g-hd{ background:#F5FAFC; }
.dg-letter{
  width:32px; height:32px; flex:none; border-radius:9px; display:grid; place-items:center;
  font-size:14px; font-weight:800; color:#fff; background:var(--dg, var(--brand-600));
  box-shadow:0 2px 7px -3px rgba(15,42,56,.45);
}
.dg-main{ display:flex; flex-direction:column; gap:2px; min-width:0; flex:1; }
.dg-name{ font-size:14px; font-weight:650; color:var(--text); }
.dg-sub{ font-size:11.5px; color:var(--muted); }
.dg-stat{ display:flex; align-items:center; gap:9px; flex:none; font-size:12px; color:var(--text-2); }
.dg-stat b{ color:var(--text); font-weight:700; }
.dg-stat em{ font-style:normal; display:inline-flex; align-items:center; gap:3px; font-size:11px; color:var(--brand); }
.dg-stat em svg{ width:11px; height:11px; }
.dg-stat em.dg-none{ color:var(--faint); }
.dg-chev{ flex:none; display:flex; color:#C1D3DC; transition:transform .18s; }
.dg-chev svg{ width:16px; height:16px; }
.doc-g.open .dg-chev{ transform:rotate(90deg); }
.doc-g-body{ background:#FBFDFE; box-shadow:inset 3px 0 0 var(--dg, var(--line)); }
.doc-g-body .row:hover{ background:#F2FAFC; }
.doc-code{ color:var(--brand); font-weight:650; }
.doc-nm{ display:flex; align-items:center; gap:7px; min-width:0; flex-wrap:wrap; }
.doc-name{
  font:inherit; font-size:13.5px; font-weight:620; color:var(--text);
  background:none; border:none; padding:0; text-align:left; cursor:pointer;
}
.doc-name:hover{ color:var(--brand-600); }
.doc-name.is-prev{ text-decoration:underline; text-decoration-color:rgba(14,116,144,.25); text-underline-offset:3px; }
.doc-name.is-prev:hover{ text-decoration-color:var(--brand); }
.att-btn{ font-family:inherit; cursor:pointer; }
.att-btn:hover{ background:#DCF1F7; }
.doc-more{ display:flex; align-items:center; color:#C6D6DE; }
.doc-more svg{ width:16px; height:16px; }
.doc-more:hover{ color:var(--brand); }
.doc-tip{ display:flex; align-items:flex-start; gap:7px; margin-top:11px; font-size:11.5px; color:var(--muted); line-height:1.65; }
.doc-tip svg{ width:13px; height:13px; flex:none; margin-top:2px; color:var(--faint); }
.doc-tip b{ color:var(--text-2); }
.doc-exp-all{ flex:none; }

.person{ display:flex; align-items:center; gap:11px; min-width:0; }
.person-av{
  width:34px; height:34px; border-radius:50%; flex:none; display:grid; place-items:center;
  font-size:13px; font-weight:650; color:#0E5F76; background:#DFF1F7;
}
.person-av.f0{ background:#DFF1F7; color:#0E5F76; }
.person-av.f1{ background:#E6EDFB; color:#2A4FA8; }
.person-av.f2{ background:#E9F6EC; color:#1B7A44; }
.person-av.f3{ background:#FBF0E2; color:#8F5A14; }
.person-av.f4{ background:#F6E9F5; color:#8A3E86; }
.person-main{ min-width:0; }
.person-name{ font-size:13.5px; font-weight:620; display:flex; align-items:center; gap:6px; }
.person-sub{ font-size:11.5px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.rank-chip{
  display:inline-flex; align-items:center; flex:none;
  height:19px; padding:0 8px; border-radius:6px;
  background:var(--brand); color:#fff;
  font-size:11.5px; font-weight:700; letter-spacing:.3px;
  box-shadow:0 1px 2px rgba(14,116,144,.20);
}
.rank-chip.empty{ background:#F1F5F8; color:var(--faint); font-weight:550; box-shadow:none; }
.person-name .rn-name{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cell{ font-size:12.5px; color:var(--text-2); min-width:0; }
.cell .sub{ display:block; font-size:11px; color:var(--faint); }
.mono{ font-variant-numeric:tabular-nums; }

.approve-card{ border-color:#E8D8AE; }
.approve-card .card-head{ background:#FDF8EC; border-bottom-color:#EFE2C4; border-radius:var(--r-lg) var(--r-lg) 0 0; }
.approve-card .card-head h3 svg{ color:#B98A18; }
.approve-card .todo-row{ padding:12px 18px; }
.approve-card .todo-row:hover{ background:#FEFBF3; }
.todo-list{ display:flex; flex-direction:column; }
.todo-row{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  padding:13px 16px; border-bottom:1px solid var(--line);
}
.todo-row:last-child{ border-bottom:0; }
.todo-row:hover{ background:#FAFCFD; }
.todo-av{
  width:36px; height:36px; border-radius:50%; flex:none; display:grid; place-items:center;
  font-size:13px; font-weight:650; color:#0E5F76; background:#DFF1F7;
}
.todo-main{ min-width:0; flex:1 1 200px; }
.todo-name{ font-size:13.5px; font-weight:620; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.todo-sub{ font-size:12px; color:var(--text-2); margin-top:2px; }
.todo-meta{ font-size:11.5px; color:var(--faint); margin-top:3px; }
.todo-actions{ display:flex; gap:8px; flex:none; margin-left:auto; }
.todo-empty{
  display:flex; flex-direction:column; align-items:center; gap:6px;
  padding:44px 16px; color:var(--faint); text-align:center;
}
.todo-empty svg{ width:30px; height:30px; opacity:.5; }
.todo-empty p{ font-size:13.5px; color:var(--text-2); font-weight:600; margin:0; }
.todo-empty span{ font-size:12px; }

.back-link{
  display:inline-flex; align-items:center; gap:5px; font-size:12.5px; color:var(--muted);
  margin-bottom:12px; cursor:pointer; font-weight:550;
}
.back-link:hover{ color:var(--brand); }
.back-link svg{ width:15px; height:15px; }

.hero{
  display:flex; align-items:center; gap:16px; padding:18px 20px;
  background:linear-gradient(135deg,#0D3040 0%,#0F4459 55%,#12657E 100%);
  border-radius:var(--r-lg); color:#fff; box-shadow:0 10px 26px -14px rgba(9,50,68,.8);
  position:relative; overflow:hidden; flex-wrap:wrap;
}
.hero::after{
  content:""; position:absolute; right:-40px; top:-60px; width:240px; height:240px; border-radius:50%;
  background:radial-gradient(circle,rgba(125,211,252,.22),transparent 68%);
}
.hero-ico{
  width:52px; height:52px; border-radius:13px; flex:none; display:grid; place-items:center;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.16); color:#9FE6F9;
}
.hero-ico svg{ width:26px; height:26px; }
.hero-main{ min-width:0; flex:1; }
.hero-main h2{ font-size:20px; font-weight:680; letter-spacing:.01em; display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
.hero-main p{ font-size:12.5px; color:#A9C9D6; margin-top:3px; }
.hero .pill{ background:rgba(255,255,255,.16); color:#E8F6FB; }
.hero .pill::before{ background:#8FE3F7; }
.hero-acts{ display:flex; gap:8px; position:relative; z-index:1; }
.hero .btn.ghost{ background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.22); color:#fff; box-shadow:none; }
.hero .btn.ghost:hover{ background:rgba(255,255,255,.18); }

.detail-grid{ display:grid; grid-template-columns:minmax(0,1.55fr) minmax(0,1fr); gap:16px; align-items:start; margin-top:16px; }

.detail-grid.one-col{ grid-template-columns:minmax(0,1fr); }

.info-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:14px 20px; }
.info-item span{ display:block; font-size:11px; color:var(--faint); margin-bottom:2px; }
.info-item strong{ font-size:13px; font-weight:600; color:var(--text); word-break:break-word; }
.info-item strong.big{ font-size:15px; }

.mini-stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.mini-stat{ background:#F7FAFC; border:1px solid var(--line-2); border-radius:10px; padding:10px 11px; }
.mini-stat span{ display:block; font-size:10.5px; color:var(--faint); }
.mini-stat strong{ font-size:17px; font-weight:700; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.mini-stat strong small{ font-size:11px; font-weight:600; color:var(--faint); }

.table-wrap{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
table.tbl{ width:100%; border-collapse:collapse; font-size:12.5px; min-width:520px; }
table.tbl th{
  text-align:left; font-size:10.5px; letter-spacing:.05em; text-transform:uppercase;
  color:var(--faint); font-weight:650; padding:9px 14px; border-bottom:1px solid var(--line-2); white-space:nowrap;
  background:#FAFCFD;
}
table.tbl td{ padding:11px 14px; border-bottom:1px solid var(--line-2); color:var(--text-2); vertical-align:middle; }
table.tbl tr:last-child td{ border-bottom:none; }
table.tbl tr:hover td{ background:#FAFDFE; }
table.tbl td.strong{ color:var(--text); font-weight:600; }
table.tbl td .sub{ display:block; font-size:11px; color:var(--faint); }

.section-title{ display:flex; align-items:center; gap:8px; margin:22px 0 11px; }
.section-title h3{ font-size:14px; font-weight:660; }
.section-title .ch-actions{ margin-left:auto; }

.empty{ padding:38px 20px; text-align:center; color:var(--faint); }
.empty svg{ width:34px; height:34px; opacity:.5; margin-bottom:8px; }
.empty p{ font-size:12.5px; }
table.tbl .empty{ padding:22px 12px; }
table.tbl .empty svg{ width:26px; height:26px; margin-bottom:5px; }

.modal-back{
  position:fixed; inset:0; z-index:200; background:rgba(8,31,44,.42);
  backdrop-filter:blur(3px); display:flex; align-items:center; justify-content:center; padding:20px;
  animation:fade .16s ease;
}
@keyframes fade{ from{opacity:0} to{opacity:1} }
@keyframes pop{ from{opacity:0; transform:translateY(10px) scale(.985)} to{opacity:1; transform:none} }
.modal{
  background:#fff; border-radius:var(--r-lg); width:100%; max-width:600px; max-height:88vh;
  display:flex; flex-direction:column; box-shadow:var(--shadow-3); animation:pop .18s ease;
}
.modal.wide{ max-width:760px; }
.modal-hd{ display:flex; align-items:center; padding:16px 20px; border-bottom:1px solid var(--line-2); }
.modal-hd h3{ font-size:15px; font-weight:660; }
.modal-hd .icon-btn{ display:grid; margin-left:auto; width:30px; height:30px; }
.modal-bd{ padding:18px 20px; overflow-y:auto; }
.modal-ft{ display:flex; gap:9px; justify-content:flex-end; padding:14px 20px; border-top:1px solid var(--line-2); background:#FBFDFE; border-radius:0 0 var(--r-lg) var(--r-lg); }
.fgrid{ display:grid; grid-template-columns:1fr 1fr; gap:13px; }
.fgrid .full{ grid-column:1/-1; }
.field label{ display:block; font-size:11.5px; font-weight:620; color:var(--text-2); margin-bottom:5px; }
.field label em{ color:var(--danger); font-style:normal; margin-left:2px; }
.field input,.field select,.field textarea{
  width:100%; height:38px; padding:0 11px; border:1px solid var(--line); border-radius:9px;
  font-size:13px; font-family:inherit; color:var(--text); background:#fff; outline:none; transition:.14s;
}
.field textarea{ height:auto; padding:9px 11px; resize:vertical; min-height:70px; line-height:1.5; }
.field select{ appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23728B99' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 10px center; background-size:15px; padding-right:30px; }
.field input:focus,.field select:focus,.field textarea:focus{ border-color:var(--brand); box-shadow:0 0 0 3px rgba(14,116,144,.11); }
.field .hint{ font-size:11px; color:var(--faint); margin-top:4px; }

.fgrid-sep{
  display:flex; align-items:center; gap:8px; margin-top:2px; padding-top:10px;
  border-top:1px dashed var(--line); font-size:11.5px; font-weight:650; color:var(--brand);
}
.fgrid-sep:first-child{ border-top:none; padding-top:0; margin-top:0; }
.fgrid-sep span{ display:inline-flex; align-items:center; gap:6px; }

.famf{ border:1px solid var(--line); border-radius:10px; background:#FBFDFE; padding:9px 10px 8px; }
.famf-rows{ display:flex; flex-direction:column; gap:7px; }
.famf-row{ display:grid; grid-template-columns:1fr 96px 1.1fr 28px; gap:7px; align-items:center; }
.famf-row input,.famf-row select{
  width:100%; height:34px; padding:0 10px; border:1px solid var(--line); border-radius:8px;
  font-size:12.5px; font-family:inherit; color:var(--text); background:#fff; outline:none;
}
.famf-row input:focus,.famf-row select:focus{ border-color:var(--brand); box-shadow:0 0 0 3px rgba(14,116,144,.11); }
.famf-row .icon-btn{ width:28px; height:28px; color:var(--muted); }
.famf-ft{ display:flex; align-items:center; gap:10px; margin-top:8px; flex-wrap:wrap; }
@media (max-width:520px){
  .famf-row{ grid-template-columns:1fr 84px 1fr 28px; }
}

.pm-box{ border:1px solid var(--line); border-radius:10px; background:#FBFDFE; padding:10px 11px 8px; }
.pm-group{ display:flex; gap:8px; align-items:flex-start; }
.pm-group + .pm-group{ margin-top:7px; }
.pm-gt{ flex:none; font-size:11px; font-weight:650; color:var(--faint); padding-top:6px; width:26px; }
.pm-chips{ display:flex; flex-wrap:wrap; gap:6px; flex:1; }
.pm-chip{
  display:inline-flex; align-items:center; gap:4px; height:28px; padding:0 10px;
  border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--text-2);
  font-size:12px; font-weight:550; font-family:inherit; cursor:pointer; transition:.14s;
}
.pm-chip:hover{ border-color:var(--brand-line); color:var(--brand); background:#F5FBFD; }
.pm-chip.on{ border-color:var(--brand); background:var(--brand-soft); color:var(--brand); font-weight:650; }
.pm-hint{ font-size:11px; color:var(--faint); margin-top:7px; }

.att-chip{
  display:inline-flex; align-items:center; gap:3px; flex:none;
  font-size:10.5px; font-weight:700; line-height:1.5;
  color:var(--brand); background:var(--brand-soft); border:1px solid var(--brand-line);
  border-radius:6px; padding:0 4px;
}
.att-chip svg{ width:11px; height:11px; stroke-width:2; }

.att-body.drag{ background:#F3FBFE; }
.att-body.drag .dropzone{ border-color:var(--brand); background:#EDF9FD; }

.dropzone{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
  padding:17px 14px; border:1.5px dashed #CFE2EA; border-radius:11px; text-align:center;
  background:linear-gradient(180deg,#FBFDFE,#F4FAFC); cursor:pointer; transition:.15s;
}
.dropzone:hover{ border-color:var(--brand); background:#F1FAFD; }
.dz-ico{
  width:32px; height:32px; border-radius:9px; display:grid; place-items:center;
  background:#fff; border:1px solid var(--line); color:var(--brand); margin-bottom:2px;
}
.dz-ico svg{ width:16px; height:16px; }
.dz-t{ font-size:12.5px; color:var(--text-2); }
.dz-t strong{ color:var(--brand); font-weight:650; }
.dz-s{ font-size:11px; color:var(--faint); }

.att-list{ margin-top:10px; display:flex; flex-direction:column; }
.att-item{ display:flex; align-items:center; gap:10px; padding:9px 0; border-top:1px solid var(--line-2); }
.att-item:first-child{ border-top:none; }
.att-ico{
  position:relative; width:33px; height:38px; border-radius:7px; flex:none;
  display:grid; place-items:center; color:#5C7C8C; background:#F3F7F9; border:1px solid var(--line-2);
}
.att-ico svg{ width:16px; height:16px; margin-top:-4px; }
.att-ico em{
  position:absolute; left:0; right:0; bottom:3px; text-align:center;
  font-style:normal; font-size:7.5px; font-weight:700; letter-spacing:.02em;
}
.att-ico.pdf{ background:#FDECEC; color:#C2382F; border-color:#F6DAD8; }
.att-ico.img{ background:#E9F4FB; color:#1B6C96; border-color:#D6E9F4; }
.att-ico.doc{ background:#EAF1FE; color:#2856C7; border-color:#D9E4FB; }
.att-ico.xls{ background:#E8F6EE; color:#1E7B4A; border-color:#D5EDDF; }
.att-ico.zip{ background:#F6F0E4; color:#8A6114; border-color:#EBE0C9; }
.att-main{ min-width:0; flex:1; }
.att-name{
  font-size:12.8px; font-weight:600; color:var(--text);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.att-name[data-act]{ cursor:pointer; }
.att-name[data-act]:hover{ color:var(--brand); text-decoration:underline; text-underline-offset:2px; }
.att-meta{ font-size:11px; color:var(--faint); }
.att-acts{ display:flex; gap:2px; flex:none; }
.att-acts .icon-btn{ display:grid; width:28px; height:28px; color:var(--muted); }
.att-acts .icon-btn svg{ width:15px; height:15px; }
.att-acts .icon-btn:hover{ background:#F1F6F8; color:var(--brand); }
.att-acts .icon-btn.del:hover{ color:var(--danger); background:var(--danger-soft); }

.cert-att{
  display:inline-flex; align-items:center; justify-content:center; gap:5px; flex:none;
  height:29px; width:100%; padding:0 8px; border-radius:8px;
  border:1px dashed #9FD3E4; background:#F1FAFD; color:var(--brand);
  font-size:11.5px; font-weight:650; line-height:1; white-space:nowrap;
  cursor:pointer; transition:.15s;
}
.cert-att svg{ width:14px; height:14px; stroke-width:2.1; }
.cert-att:hover{ border-style:solid; border-color:var(--brand); background:#E2F5FC; }
.cert-att:active{ transform:translateY(1px); }
.cert-att.has{
  border:1px solid var(--brand); background:var(--brand); color:#fff;
  box-shadow:0 1px 2px rgba(14,116,144,.22);
}
.cert-att.has:hover{ background:#0B5F76; border-color:#0B5F76; }
.cert-att-empty{ display:block; height:29px; }

.icon-btn.att-mini{
  display:inline-grid; width:28px; height:28px; color:#B7C8D2; position:relative;
}
.icon-btn.att-mini svg{ width:14px; height:14px; }
.icon-btn.att-mini em{
  position:absolute; top:0; right:0; font-style:normal; font-size:8px; font-weight:700;
  color:#fff; background:var(--brand); border-radius:6px; padding:0 3px; line-height:1.4;
}
.icon-btn.att-mini:hover{ color:var(--brand); background:var(--brand-soft); }
.icon-btn.att-mini.has{ color:var(--brand); }

.viewer{
  position:fixed; inset:0; z-index:260; display:flex; flex-direction:column;
  background:rgba(6,22,32,.9); animation:fade .16s ease;
}
.viewer-bar{
  display:flex; align-items:center; gap:10px; padding:10px 14px;
  background:rgba(255,255,255,.97); border-bottom:1px solid var(--line);
}
.vb-name{
  font-size:13px; font-weight:620; color:var(--text); min-width:0;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.vb-name span{ font-size:11px; color:var(--faint); font-weight:500; margin-left:7px; }
.vb-acts{ margin-left:auto; display:flex; gap:6px; align-items:center; flex:none; }
.vb-acts .icon-btn{ display:grid; width:32px; height:32px; }
.viewer-body{ flex:1; display:grid; place-items:center; padding:14px; overflow:auto; }
.viewer-body img{
  max-width:100%; max-height:100%; border-radius:8px; background:#fff;
  box-shadow:0 20px 50px -14px rgba(0,0,0,.65);
}
.viewer-body iframe{ width:100%; height:100%; border:none; border-radius:8px; background:#fff; }

.vw-pdf{ width:100%; height:100%; min-height:0; display:flex; flex-direction:column; gap:8px; }
.vw-pdf iframe{ flex:1; min-height:0; }
.vw-tip{
  display:flex; align-items:center; gap:10px; font-size:11.5px; line-height:1.6;
  color:#D6E5EC; background:rgba(255,255,255,.08); border-radius:8px; padding:8px 11px;
}
.vw-tip span{ flex:1; min-width:0; }
.vw-tip .btn{ flex:none; }
.vw-txt{
  width:auto; max-width:1000px; margin:0 auto; justify-self:stretch; align-self:start;
  max-height:100%; overflow:auto; background:#fff; border-radius:10px; padding:18px 20px;
  font-family:ui-monospace,Menlo,Consolas,monospace; font-size:12.5px; line-height:1.75; color:var(--text);
  white-space:pre-wrap; word-break:break-word;
}
.vw-media{ max-width:100%; max-height:100%; border-radius:10px; background:#000; }
.vw-fb{
  max-width:430px; padding:26px 26px 24px; border-radius:15px; background:#fff; text-align:center;
  display:flex; flex-direction:column; align-items:center; gap:10px;
  box-shadow:0 26px 60px -22px rgba(0,0,0,.6);
}
.vw-fb-ext{
  width:52px; height:52px; border-radius:13px; display:grid; place-items:center;
  background:var(--brand-soft); color:var(--brand-600); font-size:12.5px; font-weight:800; letter-spacing:.04em;
}
.vw-fb strong{ font-size:14.5px; color:var(--text); }
.vw-fb p{ margin:0; font-size:12px; color:var(--muted); line-height:1.7; }
.vw-fb .btn{ margin-top:4px; }

.note-box{
  margin-top:14px; padding:10px 12px; border-radius:10px; line-height:1.7;
  background:#F7FAFC; border:1px solid var(--line-2); font-size:12.5px; color:var(--text-2);
}

.toast-root{ position:fixed; left:50%; bottom:34px; transform:translateX(-50%); z-index:300; display:flex; flex-direction:column; gap:8px; align-items:center; pointer-events:none; }
.toast{
  background:#0E2E3E; color:#fff; font-size:13px; font-weight:550; padding:9px 16px; border-radius:22px;
  box-shadow:0 10px 24px -8px rgba(9,40,55,.6); animation:toastIn .22s ease;
  display:flex; align-items:center; gap:7px;
}
.toast svg{ width:15px; height:15px; color:#7FE0BE; }
@keyframes toastIn{ from{opacity:0; transform:translateY(10px)} to{opacity:1; transform:none} }

.search-overlay{ position:fixed; inset:0; z-index:210; background:rgba(8,31,44,.4); backdrop-filter:blur(3px); padding:12vh 16px 16px; display:flex; justify-content:center; align-items:flex-start; animation:fade .14s; }
.search-panel{ width:100%; max-width:600px; background:#fff; border-radius:14px; box-shadow:var(--shadow-3); overflow:hidden; animation:pop .18s; }
.search-input-row{ display:flex; align-items:center; gap:10px; padding:13px 16px; border-bottom:1px solid var(--line-2); }
.search-input-row svg{ color:var(--faint); }
.search-input-row input{ flex:1; border:none; outline:none; font-size:15px; font-family:inherit; color:var(--text); }
.search-results{ max-height:52vh; overflow-y:auto; padding:6px; }
.sr-group{ font-size:10.5px; font-weight:650; letter-spacing:.08em; text-transform:uppercase; color:var(--faint); padding:9px 10px 4px; }
.sr-item{ display:flex; align-items:center; gap:10px; padding:9px 10px; border-radius:8px; cursor:pointer; }
.sr-item:hover{ background:#F3F8FA; }
.sr-item .sr-title{ font-size:13.5px; font-weight:600; }
.sr-item .sr-sub{ font-size:11.5px; color:var(--muted); }
.sr-item .pill{ margin-left:auto; }
.sr-empty{ padding:26px; text-align:center; color:var(--faint); font-size:12.5px; }

.todo-item{
  display:flex; align-items:center; gap:11px; padding:10px 2px;
  border-bottom:1px dashed var(--line); cursor:pointer;
}
.todo-item:last-child{ border-bottom:none; }
.todo-item:hover .ti-t{ color:var(--brand); }
.todo-dot{
  width:30px; height:30px; border-radius:9px; flex:none; display:grid; place-items:center;
  background:#F1F5F7; color:var(--muted);
}
.todo-dot svg{ width:15px; height:15px; }
.todo-dot.danger{ background:var(--danger-soft); color:var(--danger); }
.todo-dot.warn{ background:var(--warn-soft); color:var(--warn); }
.todo-item .ti-main{ flex:1; min-width:0; }
.todo-item .ti-t{ font-size:13px; font-weight:620; color:var(--text); transition:color .14s; }
.todo-item .ti-s{ font-size:11.5px; color:var(--muted); }

.vmini{ display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--line-2); cursor:pointer; }
.vmini:last-child{ border-bottom:none; }
.vmini:hover .vmini-name{ color:var(--brand); }
.vmini-name{ font-size:13px; font-weight:640; display:flex; align-items:center; gap:7px; transition:color .14s; }
.vmini-sub{ font-size:11px; color:var(--muted); margin-top:2px; }

.bar{ height:5px; border-radius:9px; background:#EDF3F6; overflow:hidden; margin-top:6px; }
.bar i{ display:block; height:100%; border-radius:9px; transition:width .4s ease; }
.bar i.ok{ background:linear-gradient(90deg,#40C79B,#0E9F6E); }
.bar i.warn{ background:linear-gradient(90deg,#F4C862,#D99400); }
.bar i.danger{ background:linear-gradient(90deg,#F0918B,#D93B3B); }

.tabbar{ display:none; }

@media (max-width:1180px){
  .dash-grid{ grid-template-columns:minmax(0,1fr); }
  .detail-grid{ grid-template-columns:minmax(0,1fr); }
}

@media (max-width:1080px){
  .kpi-grid{ grid-template-columns:repeat(2,1fr); }
}

@media (max-width:980px){
  :root{ --sidebar-w:0px; }
  .sidebar{
    width:262px; transform:translateX(-100%); transition:transform .24s cubic-bezier(.4,0,.2,1);
    box-shadow:0 0 40px rgba(0,0,0,.3); z-index:80; padding-bottom:20px;
  }
  .sidebar.open{ transform:none; }
  .main{ margin-left:0; }
  .menu-btn{ display:grid; }
  .scrim{ position:fixed; inset:0; background:rgba(8,31,44,.4); z-index:75; opacity:0; pointer-events:none; transition:opacity .22s; }
  .scrim.show{ opacity:1; pointer-events:auto; }
  .topbar{ padding:0 14px; height:58px; gap:8px; }
  .topbar-title h1{ font-size:16px; }
  .search-box{ min-width:0; width:36px; padding:0; justify-content:center; background:transparent; border-color:transparent; }
  .search-box span,.search-box kbd{ display:none; }
  .search-box svg{ width:18px; height:18px; color:var(--text-2); }
  .avatar{ width:31px; height:31px; font-size:12px; }
  .view{ padding:14px 13px 84px; }
  .footnote{ display:none; }
  .kpi-grid{ grid-template-columns:repeat(2,1fr); gap:10px; }
  .kpi{ padding:12px; gap:10px; border-radius:13px; }
  .kpi-icon{ width:32px; height:32px; border-radius:9px; }
  .kpi-icon svg{ width:16px; height:16px; }
  .kpi-value{ font-size:21px; }
  .kpi-label{ font-size:11px; }
  .kpi-sub{ font-size:10.5px; }
  .page-head{ margin-bottom:12px; }
  .page-head h2{ font-size:17.5px; }
  .page-head .ph-actions{ width:100%; margin-left:0; }
  .page-head .ph-actions .btn{ flex:1; }
  .card{ border-radius:13px; }
  .card-head{ padding:12px 13px; }
  .card-head h3{ font-size:13px; }
  .card-body{ padding:13px; }
  .card-body.tight{ padding:4px 4px; }
  .cert-row{
    grid-template-columns:minmax(0,1fr) auto; gap:6px 10px; padding:11px 12px 11px 14px;
    min-height:0;
  }

  .cert-row.sortable{ grid-template-columns:minmax(0,1fr) auto; padding-left:14px; }
  .cert-grip{ display:none; }
  .cert-sort-hint{ display:none; }
  .cert-ro-hint{ display:none; }
  .cert-row .cert-date{ grid-column:1; grid-row:2; font-size:11.5px; align-self:center; min-height:0; white-space:normal; }
  .cert-row .cert-date span{ display:none; }
  .cert-row .cert-sub{
    display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; padding-right:2px;
  }
  .cert-row .cert-sub .dotsep{ display:inline-block; vertical-align:middle; margin:0 5px; }
  .cert-row .cert-badge{ grid-row:1; grid-column:2; }
  .cert-row .cert-badge .pill{ min-width:0; }
  .cert-row .att-pair{ grid-row:2; grid-column:2; justify-self:end; }
  .cert-row .row-acts{ grid-column:1; grid-row:2; justify-self:end; opacity:1; padding-right:2px; }
  .vessel-grid{ grid-template-columns:1fr; }
  .toolbar{ gap:7px; }
  .field-search{ max-width:none; }
  .chips{ width:100%; flex-wrap:nowrap; overflow-x:auto; padding-bottom:2px; }
  .chip{ flex:none; }

  .list{ border-radius:13px; }
  .list-head{ display:none; }
  .row{
    grid-template-columns:1fr 1fr !important;
    gap:6px 12px; padding:12px 30px 12px 13px; position:relative;
  }
  .row > .person{ grid-column:1 / -1; }
  .row > .cell{ grid-column:auto; min-width:0; font-size:11.5px; }
  .row > .cell .sub{ display:inline; margin-left:0; }
  .row > .cell .sub::before{ content:" · "; color:var(--faint); }
  .only-sm{ display:inline; }
  .crew-cols > .cell:nth-child(3) .sub{ display:none; }
  .row > .row-chev{ position:absolute; right:9px; top:16px; }

  .row.mini{ grid-template-columns:minmax(0,1fr) auto !important; padding:9px 13px; }
  .row.mini > .person{ grid-column:1; }
  .row.mini > .pill{ grid-column:2; justify-self:end; }

  .doc-cols{ grid-template-columns:1fr auto !important; }
  .doc-cols > .cell:nth-child(1),
  .doc-cols > .cell:nth-child(2){ grid-column:1 / -1; }
  .doc-cols > .cell:nth-child(3){ display:none; }
  .doc-cols > .cell:nth-child(4){ grid-column:1; }
  .doc-cols > .cell:nth-child(5){ grid-column:2; justify-self:end; }

  .doc-g-hd{ padding:10px 12px; gap:9px; }
  .dg-letter{ width:28px; height:28px; border-radius:8px; font-size:13px; }
  .dg-name{ font-size:13px; }
  .dg-sub{ display:none; }
  .dg-stat{ font-size:11px; gap:6px; }
  .dg-stat em, .dg-rev{ display:none; }
  .doc-g-body .row{ padding-left:12px; }

  .doc-cols > .cell:nth-child(4){ display:none; }
  .doc-exp-all{ margin-left:auto; }
  .doc-tip{ font-size:11px; }

  .hero{ padding:15px; gap:12px; border-radius:13px; }
  .hero-ico{ width:44px; height:44px; border-radius:11px; }
  .hero-ico svg{ width:22px; height:22px; }
  .hero-main h2{ font-size:17px; }
  .hero-acts{ width:100%; }
  .hero-acts .btn{ flex:1; }
  .info-grid{ grid-template-columns:1fr 1fr; gap:12px 14px; }
  .fgrid{ grid-template-columns:1fr; }
  .modal-back{ padding:0; align-items:flex-end; }
  .modal{ max-width:none; max-height:92vh; border-radius:16px 16px 0 0; }
  .modal-ft{ padding:12px 16px calc(12px + env(safe-area-inset-bottom)); border-radius:0; }
  .modal-ft .btn{ flex:1; }
  .search-overlay{ padding:8vh 12px 12px; }
  .toast-root{ bottom:calc(78px + env(safe-area-inset-bottom)); }

  .dropzone{ padding:14px 12px; }
  .dz-t{ font-size:12px; }
  .dz-s{ font-size:10.5px; }
  .att-item{ gap:8px; padding:8px 0; }
  .att-acts .icon-btn{ width:30px; height:30px; }
  .cert-att svg{ width:13px; height:13px; }
  .row-chev .att-chip{ display:none; }
  .viewer-bar{ padding:8px 10px; gap:6px; }
  .viewer-bar .btn.ghost.sm{ padding:0 9px; font-size:11px; }
  .viewer-body{ padding:8px; }
  .vw-fb{ padding:20px 18px; }
  .vw-txt{ padding:13px 13px; font-size:11.5px; }

  .tabbar{
    display:grid; grid-template-columns:repeat(6,1fr);
    position:fixed; left:0; right:0; bottom:0; z-index:70;
    background:rgba(255,255,255,.94); backdrop-filter:blur(14px);
    border-top:1px solid var(--line);
    padding:6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a{
    display:flex; flex-direction:column; align-items:center; gap:3px; padding:5px 0;
    color:#8FA6B2; font-size:10px; font-weight:600; position:relative;
  }
  .tabbar svg{ width:21px; height:21px; }
  .tabbar a.active{ color:var(--brand); }
  .tabbar a.active svg{ stroke-width:2; }
  .tabbar .nav-badge{ position:absolute; top:0; left:calc(50% + 6px); }
}

@media (max-width:400px){
  .kpi-value{ font-size:19px; }
  .mini-stats{ grid-template-columns:1fr 1fr; }
}

body.locked{ overflow:hidden; }
body.locked .shell,
body.locked .tabbar,
body.locked .toast-root{ display:none !important; }

.login-wrap{
  position:fixed; inset:0; z-index:400; display:flex; flex-direction:column;
  align-items:center; justify-content:center; padding:26px 18px; overflow:auto;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(56,189,248,.22), transparent 62%),
    linear-gradient(162deg,#0C3044 0%, #0A2838 52%, #06191F 100%);
}
.login-glow{
  position:absolute; width:540px; height:540px; border-radius:50%; filter:blur(96px);
  background:rgba(56,189,248,.20); top:-190px; right:-150px; pointer-events:none;
}
.login-card{
  position:relative; width:100%; max-width:394px; background:#fff; border-radius:18px;
  padding:28px 26px 22px; box-shadow:0 30px 70px -20px rgba(3,16,24,.75);
  animation:pop .22s ease;
}
.login-brand{ display:flex; align-items:center; gap:11px; margin-bottom:20px; }
.lb-mark{
  width:40px; height:40px; border-radius:11px; display:grid; place-items:center;
  background:linear-gradient(150deg,#0E7490,#0C3044); color:#8FE3F7; flex:none;
}
.lb-mark svg{ width:23px; height:23px; }
.login-brand strong{ display:block; font-size:15.5px; font-weight:700; letter-spacing:.02em; line-height:1.35; }
.login-brand em{ display:block; font-style:normal; font-size:11.5px; color:var(--faint); line-height:1.35; margin-top:1px; }
.login-card h2{ font-size:19px; font-weight:700; letter-spacing:-.01em; }
.login-sub{ font-size:12.5px; color:var(--muted); margin:3px 0 18px; }
.lf-field{ margin-bottom:13px; }
.lf-field label{ display:block; font-size:11.5px; font-weight:620; color:var(--text-2); margin-bottom:6px; }
.lf-field input,
.lf-field select{
  width:100%; height:44px; padding:0 12px; border:1px solid var(--line); border-radius:10px;
  font-size:14px; font-family:inherit; color:var(--text); outline:none; background:#FBFDFE; transition:.15s;
}
.lf-field select{
  padding-right:32px; appearance:none; -webkit-appearance:none; cursor:pointer;
  background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C8B93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 10px center; background-size:15px 15px;
}
.lf-field input:focus,
.lf-field select:focus{ border-color:var(--brand); background-color:#fff; box-shadow:0 0 0 3px rgba(14,116,144,.12); }
.lf-row{ display:flex; align-items:center; justify-content:space-between; margin:2px 0 4px; }

.lf-row2{ display:flex; gap:10px; }
.lf-row2 .lf-field{ flex:1 1 0; min-width:0; margin-bottom:13px; }
@media (max-width:430px){
  .lf-row2{ flex-direction:column; gap:0; }
}
.lf-chk{ display:inline-flex; align-items:center; gap:7px; font-size:12px; color:var(--text-2); cursor:pointer; }
.lf-chk input{ width:14px; height:14px; accent-color:var(--brand); }
.lf-link{ border:none; background:none; color:var(--brand); font-size:12px; cursor:pointer; padding:0; }
.lf-err{ min-height:17px; font-size:12px; color:var(--danger); margin:4px 0 6px; }
.login-btn{ width:100%; height:44px; justify-content:center; font-size:14.5px; font-weight:650; border-radius:10px; }
.login-foot{
  margin-top:16px; padding-top:13px; border-top:1px solid var(--line-2);
  font-size:11.5px; color:var(--muted); line-height:1.75;
}
.login-foot code{ background:#F1F5F7; border-radius:4px; padding:1px 5px; font-size:11px; color:var(--text-2); }

.login-tabs{ display:flex; gap:20px; border-bottom:1px solid var(--line-2); margin:2px 0 16px; }
.lt-tab{
  position:relative; border:none; background:none; padding:0 1px 9px; cursor:pointer;
  font:inherit; font-size:13.5px; font-weight:620; color:var(--muted); transition:.14s;
}
.lt-tab:hover{ color:var(--text-2); }
.lt-tab.on{ color:var(--text); }
.lt-tab.on::after{
  content:''; position:absolute; left:0; right:0; bottom:-1px; height:2px;
  border-radius:2px; background:var(--brand);
}
.login-pane[hidden],
.reg-done[hidden]{ display:none !important; }
.lf-grid{ display:grid; grid-template-columns:1fr 1fr; gap:0 10px; }
.lf-hint{ font-style:normal; font-weight:400; color:var(--faint); font-size:10.5px; margin-left:5px; }
.lf-chk-block{
  display:flex; align-items:flex-start; gap:8px; margin:2px 0 4px;
  font-size:11.5px; line-height:1.6; color:var(--muted);
}
.lf-chk-block input{ width:14px; height:14px; margin-top:2px; flex:none; accent-color:var(--brand); }
.reg-done{ text-align:center; padding:10px 0 4px; }
.rd-ico{ display:block; width:46px; height:46px; margin:0 auto 12px; color:var(--ok); }
.rd-ico svg{ width:46px; height:46px; }
.reg-done strong{ display:block; font-size:15.5px; font-weight:700; color:var(--text); }
.rd-meta{ margin-top:8px; font-size:12.5px; color:var(--text-2); line-height:1.7; }
.rd-meta code{ background:#F1F5F7; border-radius:4px; padding:1px 5px; font-size:12px; color:var(--text); }
.rd-note{
  margin:12px 0 16px; padding:10px 12px; border-radius:9px; background:var(--brand-soft);
  font-size:11.5px; line-height:1.75; color:var(--text-2); text-align:left;
}
.reg-done .btn{ width:100%; justify-content:center; }

.login-copy{ position:relative; margin-top:20px; font-size:11.5px; color:rgba(203,220,229,.55); text-align:center; }
.login-copy .lc-line{ display:block; margin-top:5px; }
.login-copy a{ color:inherit; text-decoration:none; }
.login-copy a:hover{ color:rgba(203,220,229,.85); text-decoration:underline; }

@media (max-height: 820px){
  .login-wrap{ justify-content:flex-start; padding-top:max(24px, 5vh); }
}
@media (max-width: 380px){
  .lf-grid{ grid-template-columns:1fr; gap:0; }
}

.me-nav-card{
  margin-bottom:12px; padding:9px 10px;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.09);
  border-radius:10px; cursor:pointer;
  transition:background .14s, border-color .14s, box-shadow .14s;
}
.me-nav-card:hover{ background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.16); }
.me-nav-card.active{
  background:linear-gradient(90deg,rgba(56,189,248,.2),rgba(56,189,248,.07));
  border-color:rgba(120,220,255,.28);
  box-shadow:inset 0 0 0 1px rgba(120,220,255,.1);
}
.me-nav-card.active::before{ display:none; }
.me-nav-card .um-av{ width:28px; height:28px; font-size:11.5px; }
.me-nav-card .um-out{ margin-left:2px; }

.user-mini{
  display:flex; align-items:center; gap:9px; padding:9px 10px; margin-bottom:9px;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.09); border-radius:10px;
}
.um-av{
  width:30px; height:30px; border-radius:50%; flex:none; display:grid; place-items:center;
  font-size:12px; font-weight:700; color:#0E5F76; background:#BFE9F5;
}
.um-av.lg{ width:40px; height:40px; font-size:15px; }
.um-main{ min-width:0; flex:1; }
.um-main strong{
  display:block; font-size:12.5px; font-weight:650; color:#E8F4F8;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.um-main span{ font-size:10.5px; color:rgba(203,220,229,.62); }
.um-out{
  width:28px; height:28px; border-radius:7px; border:none; background:transparent;
  color:rgba(203,220,229,.62); display:grid; place-items:center; cursor:pointer; flex:none; transition:.14s;
}
.um-out svg{ width:15px; height:15px; }
.um-out:hover{ background:rgba(255,255,255,.12); color:#fff; }

.me-row{ display:flex; align-items:center; gap:11px; }
.me-txt strong{ display:block; font-size:14px; font-weight:650; }
.me-txt span{ font-size:11.5px; color:var(--muted); }

.mini-btn{
  display:inline-flex; align-items:center; height:26px; padding:0 9px; margin-left:6px;
  border:1px solid var(--line); background:#fff; border-radius:7px; cursor:pointer;
  font-size:11.5px; font-weight:600; color:var(--text-2); transition:.14s; white-space:nowrap;
}
.mini-btn:hover{ border-color:#BFD9E4; color:var(--brand); background:#F7FBFD; }
.mini-btn svg{ width:13px; height:13px; margin-right:3px; flex:none; }
.mini-btn.primary{ border-color:var(--brand-line); background:var(--brand-soft); color:var(--brand); }
.mini-btn.danger{ color:#B93B3B; border-color:#F1D5D5; }
.mini-btn.danger:hover{ background:var(--danger-soft); border-color:#E9BDBD; color:#B93B3B; }
.user-tbl td{ font-size:12.5px; }

.ua-tip{
  display:flex; align-items:flex-start; gap:9px; margin:0 0 12px;
  padding:10px 12px; border-radius:10px; background:var(--warn-soft); border:1px solid #F1E0BE;
  font-size:11.5px; line-height:1.7; color:#8A5A0B;
}
.ua-tip svg{ width:15px; height:15px; flex:none; margin-top:1px; }
.ua-tip b{ font-weight:700; }

body.readonly [data-act="add"],
body.readonly [data-act="edit"],
body.readonly [data-act="del"],
body.readonly [data-act="addSub"],
body.readonly [data-act="editSub"],
body.readonly [data-act="delSub"],
body.readonly [data-act="saveCompany"],
body.readonly [data-act="reset"],
body.readonly [data-act="import"],
body.readonly [data-act="addUser"],
body.readonly [data-act="userStatus"],
body.readonly [data-act="userPwd"],
body.readonly [data-act="userEdit"],
body.readonly [data-act="userDel"]{ display:none !important; }

.role-sel{
  height:28px; padding:0 6px; border-radius:8px; cursor:pointer;
  border:1px solid var(--line); background:#fff;
  font-size:11.5px; font-weight:600; color:var(--text-2);
}
.role-sel:hover{ border-color:#BFD9E4; }
.role-sel.role-admin{ border-color:var(--brand-line); background:var(--brand-soft); color:var(--brand); }
.role-sel.role-shore{ border-color:#CFE3D8; background:#F3FAF6; color:#2E7D5B; }
.role-sel.role-officer{ border-color:#CBDDF3; background:#F2F7FE; color:#2A5E9E; }
.role-sel.role-rating{ border-color:var(--line); background:#F7FAFB; color:var(--muted); }
.role-sel.role-editor{ border-color:#CFE3D8; background:#F3FAF6; color:#2E7D5B; }
.role-sel:focus{ outline:none; border-color:var(--brand); }
.usr-acts{ display:flex; align-items:center; gap:4px; justify-content:flex-end; flex-wrap:nowrap; }
.usr-acts .mini-btn{ margin-left:0; }

.usr-tbl th.usr-act-col,
.usr-tbl td.usr-act-col{ width:1%; white-space:nowrap; }
.usr-acts .icon-btn{ width:28px; height:28px; color:var(--muted); }
.usr-acts .icon-btn svg{ width:16px; height:16px; }

.defpwd{
  display:inline-flex; align-items:center; gap:6px; height:28px; padding:0 8px 0 10px;
  border:1px solid var(--line); border-radius:8px; background:#FBFDFE;
  font-size:11.5px; color:var(--muted);
}
.defpwd b{ font-family:ui-monospace,Menlo,Consolas,monospace; font-size:11.5px; color:var(--text); }
.defpwd .mini-btn{ height:22px; padding:0 7px; font-size:11px; }

.usr-th{ white-space:nowrap; }
.usr-th .th-btn{
  display:inline-flex; align-items:center; gap:4px; height:22px; padding:0 2px;
  border:0; background:none; cursor:pointer; color:var(--muted);
  font-size:11.5px; font-weight:600; letter-spacing:.02em;
}
.usr-th .th-btn:hover{ color:var(--brand); }
.usr-th .th-btn.on{ color:var(--brand); }
.usr-th .th-ar{ font-size:8.5px; line-height:1; opacity:.55; }
.usr-th .th-btn.on .th-ar{ opacity:1; }
.usr-th .th-flt{
  display:inline-flex; align-items:center; justify-content:center;
  width:20px; height:20px; margin-left:2px; padding:0;
  border:0; border-radius:5px; background:none; cursor:pointer;
  color:var(--faint);
}
.usr-th .th-flt svg{ width:12px; height:12px; }
.usr-th .th-flt:hover{ color:var(--brand); background:var(--brand-soft); }
.usr-th .th-flt.on{ color:var(--brand); background:var(--brand-soft); }
.usr-th .th-flt.open{ box-shadow:0 0 0 2px var(--brand-line); }

.th-pop{
  position:fixed; z-index:1200; min-width:176px; max-width:260px;
  max-height:320px; overflow:auto; padding:6px;
  background:#fff; border:1px solid var(--line); border-radius:11px;
  box-shadow:var(--shadow-2);
}
.th-pop-hd{
  padding:4px 8px 6px; font-size:11px; font-weight:650; color:var(--muted);
  border-bottom:1px solid var(--line-2); margin-bottom:4px;
}
.th-pop-sec + .th-pop-sec{ margin-top:6px; border-top:1px solid var(--line-2); padding-top:6px; }
.th-pop-t{ padding:2px 8px 4px; font-size:10.5px; color:var(--faint); }
.th-opt{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  width:100%; padding:5px 8px; border:0; border-radius:7px; background:none;
  font-size:12.5px; color:var(--text-2); text-align:left; cursor:pointer;
}
.th-opt:hover{ background:#F4F8FA; }
.th-opt em{ font-style:normal; font-size:11px; color:var(--faint); font-variant-numeric:tabular-nums; }
.th-opt.on{ background:var(--brand-soft); color:var(--brand); font-weight:650; }
.th-opt.on em{ color:var(--brand); }

.cred-card{
  border:1px solid var(--brand-line); border-radius:11px; background:var(--brand-soft);
  padding:10px 13px; display:flex; flex-direction:column; gap:7px;
}
.cred-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:12.5px; }
.cred-row span{ color:var(--muted); }
.cred-row b{ color:var(--text); font-weight:650; }
.cred-row code{
  font-family:ui-monospace,Menlo,Consolas,monospace; font-size:12.5px;
  background:#fff; border:1px solid var(--brand-line); border-radius:6px; padding:1px 7px;
}
.cred-note{ margin-top:10px; font-size:11.5px; line-height:1.75; color:var(--muted); }
.cred-note.warn{ color:var(--danger); }
.usr-acts .icon-btn.del:hover{ color:var(--danger); background:var(--danger-soft); }
.usr-self{ color:var(--brand-600) !important; font-weight:600; }
.usr-tbl td .sub{ font-size:11px; color:var(--faint); line-height:1.5; }
.usr-created{ font-size:11.5px; color:var(--muted); white-space:nowrap; }

.usr-pwd{ white-space:nowrap; }

.usr-more{ display:inline-flex; align-items:center; gap:4px; }
.usr-more-ar{ font-size:9px; color:var(--faint); line-height:1; }
.row-menu{ min-width:210px; padding:6px; }
.row-menu .row-opt{ width:100%; text-align:left; justify-content:flex-start; }
.row-menu .row-opt span{ font-size:12.5px; }
.row-menu .row-opt.danger span{ color:var(--danger); }
.row-menu .row-opt.primary span{ color:var(--brand-600); font-weight:600; }

.att-tbl td{ font-size:12.5px; vertical-align:middle; padding-top:9px; padding-bottom:9px; }
.att-tbl th{ font-size:11.5px; }
.att-file{ display:flex; align-items:center; gap:9px; min-width:0; }
.att-ext{
  flex:0 0 auto; width:34px; height:34px; border-radius:7px;
  display:grid; place-items:center; font-style:normal;
  font-size:9.5px; font-weight:700; letter-spacing:.3px;
  background:#EEF2F5; color:#64757F;
}
.att-ext.pdf{ background:#FDECEC; color:#D2453F; }
.att-ext.doc{ background:#EAF1FE; color:#2A62C4; }
.att-ext.xls{ background:#E9F6ED; color:#1E8A47; }
.att-ext.ppt{ background:#FDF0E8; color:#C4632A; }
.att-ext.img{ background:#F1ECFD; color:#6B4FC4; }
.att-ext.zip{ background:#F5F0E4; color:#8A6D2F; }
.att-ext.txt{ background:#EFF3F6; color:#5B6B75; }
.att-file-main{ min-width:0; }
.att-file-main strong{
  display:block; max-width:330px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  font-weight:500; color:var(--text);
}

.att-tbl td.att-open{ cursor:pointer; }
.att-tbl td.att-open .att-file-main strong{ transition:color .12s; }
.att-tbl td.att-open:hover .att-file-main strong{
  color:var(--brand); text-decoration:underline; text-underline-offset:2px;
}
.att-tbl td .sub{
  display:block; font-size:11px; color:var(--faint); line-height:1.5;
  max-width:330px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.att-tbl td.att-size{ text-align:right; white-space:nowrap; color:var(--muted); }
.att-tbl td.att-time{ white-space:nowrap; color:var(--muted); }
.att-tbl td.att-who{ font-size:12px; color:var(--text-2); white-space:nowrap; }
.att-tbl th.att-act-col, .att-tbl td.att-act-col{ width:1%; white-space:nowrap; text-align:right; }
.att-tbl tbody tr:hover{ background:#F8FBFC; }

.att-tbl tbody tr.grp-first td{ border-top:1px solid #DCE8EE; }

.att-merged{
  display:flex; align-items:center; gap:7px; padding:9px 16px;
  background:#FFF9EC; border-bottom:1px solid var(--line-2);
  font-size:12px; line-height:1.6; color:#8A6A28;
}
.att-merged svg{ width:14px; height:14px; flex:none; }

.att-log{ margin-top:18px; }
.att-log .log-q{ width:220px; }

.att-pager{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  padding:10px 14px; border-top:1px solid var(--line); background:#FBFCFD;
}
.att-pager-t{ font-size:11.5px; color:var(--text-2); margin-right:auto; }
.pager{ display:flex; align-items:center; gap:5px; flex-wrap:wrap; }
.pg{
  min-width:28px; height:28px; padding:0 8px; border-radius:8px;
  border:1px solid var(--line); background:#fff; color:var(--text-2);
  font-size:12px; font-weight:600; cursor:pointer; font-variant-numeric:tabular-nums;
  font-family:inherit;
}
.pg:hover:not(:disabled){ border-color:var(--brand-line); color:var(--brand-600); background:var(--brand-soft); }
.pg.on{ background:var(--brand-600); border-color:var(--brand-600); color:#fff; }
.pg.on:hover{ color:#fff; }
.pg:disabled{ opacity:.42; cursor:default; background:#fff; }
.pg-txt{ padding:0 10px; }
.pg-gap{ color:var(--faint); font-size:12px; padding:0 1px; }
.pg-info{ font-size:11.5px; color:var(--faint); margin-left:5px; white-space:nowrap; }
.pgh{ display:none !important; }
.pg-bar{
  margin:10px 0 0; border:1px solid var(--line); border-radius:10px;
  background:#fff; padding:8px 12px;
}
.pg-bar .att-pager-t{ color:var(--text-2); }
.count-chip.muted{ background:#F1F5F7; color:var(--faint); font-weight:550; }
.count-chip.warn{ background:#FDF4E3; color:#8A6A15; }

.att-tbl td.att-org{ white-space:nowrap; }
.att-tbl td.att-org .pill{ font-size:11px; }
.att-tbl td.att-org .sub{ font-size:11px; color:var(--faint); }

.chips-lb{ align-self:center; font-size:11.5px; color:var(--faint); letter-spacing:.5px; margin-right:1px; }

.row-menu{ min-width:230px; }
.row-menu .row-opt span{ font-size:12.5px; }
.row-note{
  margin:6px 2px 2px; padding:6px 8px 0; border-top:1px dashed var(--line-2);
  font-size:11px; line-height:1.6; color:var(--faint);
}
.usr-pwd-txt{ font-size:11px; color:var(--text-2) !important; letter-spacing:.2px; }
@media (max-width:980px){
  .usr-tbl td:nth-child(9) .usr-acts{ justify-content:flex-start; flex-wrap:wrap; }
}

@media (max-width:980px){
  .login-card{ padding:24px 20px 20px; border-radius:16px; }
  .login-wrap{ padding:20px 14px; justify-content:flex-start; padding-top:9vh; }
  .user-mini{ margin-bottom:8px; }
  .mini-btn{ height:28px; padding:0 10px; }
}

@media (max-width:980px){
  table.user-tbl{ min-width:0; }
  .user-tbl thead{ display:none; }
  .user-tbl tbody tr{
    display:flex; flex-wrap:wrap; align-items:center; gap:5px 10px;
    padding:12px 13px; border-bottom:1px solid var(--line-2);
  }
  .user-tbl tbody tr:last-child{ border-bottom:none; }
  .user-tbl td{ border:none !important; padding:0 !important; }
  .user-tbl td:nth-child(1){ order:1; font-size:13px; }
  .user-tbl td:nth-child(2){ order:2; font-size:12px; color:var(--text-2); min-width:0; }

  .user-tbl td:nth-child(2) .pt-ship{ white-space:normal; flex-wrap:wrap; font-size:10.5px; line-height:1.5; }
  .user-tbl td:nth-child(3){ order:3; }
  .user-tbl td:nth-child(4){ order:4; }
  .user-tbl td:nth-child(5){ order:5; }
  .user-tbl td:nth-child(6){ display:none; }
  .user-tbl td:nth-child(7){ display:none; }
  .user-tbl td:nth-child(8){ display:none; }
  .user-tbl td:nth-child(9){ order:6; width:100%; text-align:left !important; margin-top:3px; }
  .user-tbl td:nth-child(9) .mini-btn:first-child{ margin-left:0; }
}

.dz-ro{
  display:flex; align-items:center; gap:8px; padding:13px 14px;
  border:1px dashed var(--line); border-radius:10px; background:#FAFCFD;
  font-size:12px; color:var(--muted); line-height:1.6;
}
.dz-ro svg{ width:15px; height:15px; flex:none; color:var(--faint); }
body.readonly .att-acts [data-act="attDelete"]{ display:none !important; }

@media (min-width:981px){
  body.readonly .cert-row{ grid-template-columns:minmax(0,1fr) 132px 108px 58px; }
  body.readonly .cert-att-empty{ display:none; }
}

.mats{ padding:0; }
.mat-hint{ font-size:11px; color:var(--faint); }
.mat-group{
  padding:9px 15px 5px; font-size:11px; font-weight:700; letter-spacing:.04em;
  color:var(--faint); background:#FAFCFD; border-bottom:1px solid var(--line-2);
}
.mat-group:first-child{ border-top:none; }
.mat-row{
  display:grid; grid-template-columns:30px minmax(0,1fr) 162px;
  gap:10px; align-items:center; padding:9px 15px;
  border-bottom:1px solid var(--line-2);
}
.mat-row:last-child{ border-bottom:none; }
.mat-ico{
  width:30px; height:30px; border-radius:8px; display:grid; place-items:center;
  background:#F1F7FA; color:#5C7C8C; border:1px solid var(--line-2);
}
.mat-ico svg{ width:15px; height:15px; }
.mat-main{ min-width:0; }
.mat-name{ font-size:13px; font-weight:600; color:var(--text); display:flex; align-items:center; gap:6px; }
.mat-ret{
  font-size:10px; font-weight:600; color:#8A6114; background:#FBF4E6;
  border:1px solid #EFE2C6; border-radius:5px; padding:1px 5px; white-space:nowrap;
}
.mat-sub{ font-size:11px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mat-none{ font-size:11.5px; color:var(--faint); justify-self:end; }
.mat-row .cert-att{ width:auto; }

@media (max-width:980px){
  .mat-row{ grid-template-columns:26px minmax(0,1fr) auto; gap:8px; padding:9px 13px; }
  .mat-ico{ width:26px; height:26px; border-radius:7px; }
  .mat-ico svg{ width:13px; height:13px; }
  .mat-name{ font-size:12.5px; }
  .mat-sub{ font-size:10.5px; }
  .mat-row .cert-att{ width:auto; }
  .mat-group{ padding:8px 13px 4px; }
  .mat-hint{ display:none; }
}

.att-pair{
  display:flex; align-items:center; gap:6px;
  width:100%; justify-content:flex-end;
}
.att-pair .cert-att{ width:auto; flex:1; min-width:0; }
.cert-view{
  display:inline-flex; align-items:center; justify-content:center; gap:4px; flex:none;
  height:29px; padding:0 8px; border-radius:8px;
  border:1px solid var(--line); background:#fff; color:var(--text-2);
  font-size:11.5px; font-weight:650; line-height:1; white-space:nowrap;
  cursor:pointer; transition:.15s;
}
.cert-view svg{ width:13px; height:13px; stroke-width:1.9; }
.cert-view:hover:not([disabled]){ border-color:var(--brand-line); color:var(--brand); background:var(--brand-soft); }
.cert-view[disabled]{ opacity:.42; cursor:not-allowed; }

@media (max-width:980px){
  .att-pair{ width:auto; }
  .att-pair .cert-att{ flex:none; }
  .cert-view{ height:28px; padding:0 8px; }
  .cert-view span{ display:none; }
  .cert-view svg{ width:15px; height:15px; }
  .mat-row .att-pair{ justify-self:end; }
}

.detail-grid > .mats-card{ grid-column:1 / -1; }
.detail-grid > .span-all{ grid-column:1 / -1; }
.mats-2{ column-count:2; column-gap:26px; padding:6px 4px; }
.mats-2 .mat-row{
  break-inside:avoid; page-break-inside:avoid;
  padding:9px 14px; border-radius:0;
}
.mats-2 .mat-group{
  break-inside:avoid; break-after:avoid; page-break-after:avoid;
  border-radius:6px 6px 0 0;
}
@media (max-width:1180px){
  .mats-2{ column-count:1; }
}

.mcat-hint{ font-size:12px; color:var(--muted); line-height:1.7; margin-bottom:11px; }
.mcat-list{ display:flex; flex-direction:column; gap:8px; max-height:58vh; overflow:auto; padding-right:2px; }
.mcat-row{
  display:grid; gap:8px; align-items:end;
  grid-template-columns:24px minmax(120px,1.3fr) minmax(96px,.9fr) minmax(78px,.7fr) minmax(140px,1.4fr) minmax(84px,.7fr) auto;
  padding:9px 10px; border:1px solid var(--line); border-radius:10px; background:#FBFDFE;
}
.mcat-no{ font-size:11.5px; color:var(--faint); text-align:center; padding-bottom:10px; font-variant-numeric:tabular-nums; }
.mcat-f{ min-width:0; }
.mcat-f label{ display:block; font-size:10.5px; font-weight:620; color:var(--faint); margin-bottom:3px; }
.mcat-f input{
  width:100%; height:32px; padding:0 8px; border:1px solid var(--line); border-radius:7px;
  font-size:12.5px; font-family:inherit; color:var(--text); background:#fff; outline:none;
}
.mcat-f input:focus{ border-color:var(--brand); box-shadow:0 0 0 3px rgba(14,116,144,.1); }
.mcat-acts{ display:flex; gap:4px; padding-bottom:2px; }
.mcat-acts .mini-btn{ height:28px; padding:0 7px; font-size:11px; }
.mcat-add{ display:flex; align-items:center; gap:10px; margin-top:11px; }
.mcat-cnt{ font-size:11.5px; color:var(--faint); }
@media (max-width:900px){
  .mcat-row{ grid-template-columns:20px 1fr 1fr; }
  .mcat-f.lg,.mcat-f.sm{ grid-column:auto; }
  .mcat-acts{ grid-column:1 / -1; justify-content:flex-end; }
}

.duty-card{ margin-bottom:16px; }

.duty-sum{
  display:grid; grid-template-columns:minmax(0,1fr) auto; gap:24px; align-items:center;
  background:var(--card); border:1px solid var(--line); border-radius:var(--r);
  box-shadow:var(--shadow-1); padding:14px 18px; margin-bottom:14px;
}
.ds-top{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.ds-top strong{ font-size:13.5px; font-weight:660; }
.ds-top span{ font-size:12.5px; color:var(--muted); }
.ds-bar{ height:6px; border-radius:4px; background:var(--line-2); margin-top:9px; overflow:hidden; }
.ds-bar i{ display:block; height:100%; border-radius:4px; background:linear-gradient(90deg,#0E7490,#38BDF8); transition:width .3s; }
.ds-stats{ display:flex; gap:24px; }
.ds-stats > div{ min-width:56px; text-align:right; }
.ds-stats strong{ display:block; font-size:17px; font-weight:680; letter-spacing:-.01em; font-variant-numeric:tabular-nums; }
.ds-stats span{ font-size:11.5px; color:var(--muted); }

.duty-note{ margin-top:14px; }
.dn-list{ margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:7px; }
.dn-list li{
  position:relative; padding-left:14px; font-size:12.5px; color:var(--text-2); line-height:1.65;
}
.dn-list li::before{
  content:''; position:absolute; left:0; top:8px; width:5px; height:5px; border-radius:50%;
  background:var(--brand-line);
}
.dn-list b{ color:var(--text); font-weight:640; }
.duty-hint{ font-size:11.5px; color:var(--muted); }
.duty-sel{
  height:30px; max-width:160px; padding:0 8px; border-radius:8px;
  border:1px solid var(--line); background:#fff; color:var(--text);
  font:inherit; font-size:12.5px; cursor:pointer;
}
.duty-sel:hover{ border-color:var(--brand-line); }

.duty-top{ display:grid; grid-template-columns:minmax(0,1fr) 176px; gap:24px; align-items:center; padding-bottom:14px; }
.duty-role{ display:flex; align-items:center; gap:8px; font-size:15px; font-weight:680; letter-spacing:-.01em; }
.duty-no{
  font-style:normal; font-size:10.5px; font-weight:650; color:var(--brand-600);
  background:var(--brand-soft); border-radius:6px; padding:2px 7px;
}
.duty-tag{ font-size:12.5px; color:var(--text-2); line-height:1.65; margin-top:5px; }
.duty-points{ display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.duty-points span{
  font-size:11px; color:var(--text-2); background:#F3F7F9;
  border:1px solid var(--line-2); border-radius:20px; padding:2px 9px; white-space:nowrap;
}
.duty-meter{ text-align:right; }
.dm-num{ display:flex; align-items:baseline; justify-content:flex-end; gap:4px; }
.dm-num b{ font-size:25px; font-weight:700; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.dm-num i{ font-style:normal; font-size:12px; color:var(--muted); font-variant-numeric:tabular-nums; }
.dm-num span{ font-size:11.5px; color:var(--muted); }
.dm-bar{ height:6px; border-radius:4px; background:var(--line-2); margin-top:8px; overflow:hidden; }
.dm-bar i{ display:block; height:100%; border-radius:4px; background:linear-gradient(90deg,#0E7490,#38BDF8); transition:width .3s; }

.duty-list{ display:flex; flex-direction:column; border-top:1px solid var(--line-2); margin-top:2px; }
.duty-item{
  display:grid; grid-template-columns:26px minmax(0,1fr) auto 14px; align-items:center; gap:10px;
  padding:11px 4px 11px 2px; border-bottom:1px dashed var(--line-2); color:inherit; transition:background .14s;
}
.duty-item:last-child{ border-bottom:0; }
.duty-item:hover{ background:#F7FBFC; }
.duty-item:hover .di-name{ color:var(--brand-600); }
.di-idx{ font-size:10.5px; font-weight:650; color:var(--faint); font-variant-numeric:tabular-nums; }
.di-main{ min-width:0; }
.di-name{ display:flex; align-items:center; gap:6px; font-size:13.5px; font-weight:620; color:var(--text); }
.di-flag{
  font-style:normal; font-size:10px; font-weight:600; color:#B92F2F;
  background:var(--danger-soft); border-radius:20px; padding:0 6px; white-space:nowrap;
}
.di-sub{ font-size:11px; color:var(--muted); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.di-stat{ display:flex; flex-direction:column; align-items:flex-end; gap:4px; }
.di-dots{ display:flex; gap:3px; }
.di-dots .dd{ width:8px; height:8px; border-radius:2px; background:#D5E1E8; }
.di-dots .dd.ok{ background:var(--ok); }
.di-dots .dd.late{ background:#E39100; }
.di-dots .dd.due{ background:#E8C97E; }
.di-dots .dd.arch{ background:var(--brand); }
.di-num{ font-size:10.5px; color:var(--muted); font-variant-numeric:tabular-nums; white-space:nowrap; }
.di-num b{ font-size:11.5px; color:var(--text); font-weight:660; }
.di-chev{ display:grid; place-items:center; color:var(--faint); }
.di-chev svg{ width:14px; height:14px; }

.duty-item.is-op{ grid-template-columns:minmax(0,1fr) auto; gap:8px; padding:10px 2px; }
.duty-item.is-op .di-hit{
  display:grid; grid-template-columns:26px minmax(0,1fr) auto; align-items:center; gap:10px;
  min-width:0; color:inherit;
}
.di-pill{ flex:none; font-size:10.5px; }
.di-act{ display:flex; align-items:center; justify-content:flex-end; }
.di-act .cert-att, .di-act .cert-view{ width:auto; flex:none; height:28px; padding:0 9px; font-size:11.5px; white-space:nowrap; }
.di-act .cert-att svg, .di-act .cert-view svg{ width:13px; height:13px; }
.duty-name{ display:flex; align-items:center; gap:6px; font-size:13px; font-weight:620; color:var(--text); }.duty-freq{
  font-style:normal; font-size:10px; font-weight:600; color:#8A6114;
  background:#FBF4E6; border:1px solid #EFE2C6; border-radius:20px; padding:0 6px; white-space:nowrap;
}
.duty-none{ font-size:11px; color:var(--faint); white-space:nowrap; }
.duty-foot{ font-size:11.5px; color:var(--muted); margin-top:12px; line-height:1.6; }

.duty-tabs{ display:flex; gap:6px; padding:10px 0 4px; }
.dtab{
  display:inline-flex; align-items:center; gap:5px; height:26px; padding:0 10px;
  border-radius:20px; border:1px solid var(--line); background:#fff; color:var(--text-2);
  font:inherit; font-size:12px; cursor:pointer; transition:.14s;
}
.dtab b{ font-size:11px; font-weight:650; color:var(--muted); font-variant-numeric:tabular-nums; }
.dtab:hover{ border-color:var(--brand-line); color:var(--brand-600); }
.dtab.on{ background:var(--brand-soft); border-color:var(--brand-line); color:var(--brand-600); font-weight:650; }
.dtab.on b{ color:var(--brand-600); }
.duty-tabs + .duty-list{ border-top:0; margin-top:0; }

.dv-sum{
  display:grid; grid-template-columns:minmax(0,1fr) auto; gap:24px; align-items:center;
  background:var(--card); border:1px solid var(--line); border-radius:var(--r);
  box-shadow:var(--shadow-1); padding:14px 18px; margin-bottom:14px;
}
.dvs-top{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.dvs-top strong{ font-size:13.5px; font-weight:660; }
.dvs-top span{ font-size:12.5px; color:var(--muted); }
.dvs-bar{ height:6px; border-radius:4px; background:var(--line-2); margin-top:9px; overflow:hidden; }
.dvs-bar i{ display:block; height:100%; border-radius:4px; background:linear-gradient(90deg,#0E7490,#38BDF8); transition:width .3s; }
.dvs-meta{ font-size:11.5px; color:var(--muted); margin-top:8px; line-height:1.6; }
.dvs-stats{ display:flex; gap:22px; }
.dvs-stats > div{ min-width:52px; text-align:right; }
.dvs-stats strong{ display:block; font-size:17px; font-weight:680; letter-spacing:-.01em; font-variant-numeric:tabular-nums; }
.dvs-stats span{ font-size:11.5px; color:var(--muted); }

.dv-card .card-body{ padding:0; }
.dv-group-hd{
  font-size:11px; font-weight:650; color:var(--muted); letter-spacing:.02em;
  padding:10px 16px 6px; background:#FAFCFD; border-top:1px solid var(--line-2);
}
.dv-card .card-body > .dv-group-hd:first-child{ border-top:0; }
.dv-row{
  display:grid; grid-template-columns:30px minmax(0,1fr) auto auto; align-items:center; gap:12px;
  padding:10px 16px; border-bottom:1px solid var(--line-2);
}
.dv-row:last-child{ border-bottom:0; }
.dv-row:hover{ background:#FBFDFE; }
.dv-ic{ display:grid; place-items:center; width:30px; height:30px; border-radius:9px; background:var(--brand-soft); color:var(--brand-600); }
.dv-ic svg{ width:15px; height:15px; }
.dv-main{ min-width:0; }
.dv-name{ display:flex; align-items:center; gap:6px; font-size:13px; font-weight:620; }
.dv-tag{
  font-style:normal; font-size:9.5px; font-weight:600; color:var(--muted);
  background:#F1F5F7; border-radius:5px; padding:0 5px;
}
.dv-meta{ font-size:11px; color:var(--muted); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dv-pill{ flex:none; }
.dv-row .att-pair{ width:auto; }
.dv-row .att-pair .cert-att{ width:auto; flex:none; height:28px; padding:0 9px; font-size:11.5px; }
.dv-row > .cert-att{ width:auto; flex:none; height:28px; padding:0 9px; font-size:11.5px; }
.dv-row .cert-view{ height:28px; }
.dv-note{ font-size:11.5px; color:var(--muted); padding:10px 2px 0; line-height:1.6; }

.dv-ship-chip{
  font-style:normal; font-size:10.5px; font-weight:600; letter-spacing:0;
  color:var(--brand-600); background:var(--brand-soft); border:1px solid var(--brand-line);
  border-radius:20px; padding:1px 8px; white-space:nowrap;
}
.dv-ship-meta{ font-size:11.5px; color:var(--muted); padding:0 18px 10px; line-height:1.6; }
.dv-ship .card-body{ padding-top:0; }
.dv-ship .dropzone{ padding:15px 14px; }

.dh-card .card-body{ padding:0; }
.dh-sum{
  display:grid; grid-template-columns:minmax(0,1fr) auto; gap:18px; align-items:center;
  padding:12px 18px; background:#FAFCFD; border-bottom:1px solid var(--line-2);
}
.dhs-main strong{ display:block; font-size:12.5px; font-weight:660; }
.dhs-main span{ display:block; font-size:11.5px; color:var(--muted); margin-top:3px; line-height:1.6; }
.dhs-stats{ display:flex; gap:20px; }
.dhs-stats > div{ min-width:48px; text-align:right; }
.dhs-stats strong{ display:block; font-size:17px; font-weight:680; letter-spacing:-.01em; font-variant-numeric:tabular-nums; }
.dhs-stats span{ font-size:10.5px; color:var(--muted); white-space:nowrap; }

.dh-list{ display:flex; flex-direction:column; }
.dh-row{ padding:0 18px; border-bottom:1px dashed var(--line-2); }
.dh-row:last-child{ border-bottom:0; }
.dh-row.gap{ background:#FCFDFE; }
.dh-hd{ display:flex; align-items:center; gap:9px; padding:9px 0; }
.dh-dot{ width:9px; height:9px; border-radius:50%; background:#D5E1E8; flex:none; }
.dh-row.done .dh-dot{ background:var(--brand); }
.dh-row.now .dh-dot{ background:#E39100; }
.dh-t{ display:flex; align-items:center; gap:7px; min-width:0; flex:1; }
.dh-t strong{ font-size:12.5px; font-weight:620; color:var(--text); white-space:nowrap; }
.dh-row.gap .dh-t strong{ color:var(--muted); font-weight:560; }
.dh-tag{
  font-style:normal; font-size:9.5px; font-weight:600; color:var(--brand-600);
  background:var(--brand-soft); border:1px solid var(--brand-line); border-radius:20px; padding:0 6px;
  white-space:nowrap;
}
.dh-tag.alt{ color:var(--muted); background:#F1F5F7; border-color:transparent; }
.dh-n{ font-size:11px; color:var(--muted); font-variant-numeric:tabular-nums; white-space:nowrap; }
.dh-n.now{ color:#A35F00; }
.dh-n.gap{ color:var(--faint); }
.dh-up{
  display:inline-flex; align-items:center; gap:4px; height:26px; padding:0 9px; flex:none;
  border:1px solid var(--brand-line); border-radius:7px; background:var(--brand-soft); color:var(--brand-600);
  font:inherit; font-size:11.5px; font-weight:600; cursor:pointer; transition:.14s;
}
.dh-up svg{ width:12px; height:12px; }
.dh-up:hover{ border-color:var(--brand); background:#E2F5FC; }
.dh-files{ padding:0 0 6px 18px; }
.dh-files .att-item:first-child{ border-top:0; }
.dh-loading, .dh-empty{ padding:16px 18px; font-size:12px; color:var(--muted); }

.duty-posts{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.duty-post{
  display:block; text-align:left; font:inherit; color:inherit; cursor:pointer;
  background:#FBFDFE; border:1px solid var(--line); border-radius:10px; padding:11px 12px;
  transition:.15s;
}
.duty-post:hover{ border-color:var(--brand-line); background:#F2FAFD; transform:translateY(-1px); }
.dp-top{ display:flex; align-items:center; gap:6px; }
.dp-top strong{ font-size:13px; font-weight:660; }
.dp-no{ font-size:10.5px; color:var(--muted); margin-top:4px; }
.dp-bar{ height:5px; border-radius:3px; background:var(--line-2); margin-top:9px; overflow:hidden; }
.dp-bar i{ display:block; height:100%; border-radius:3px; background:var(--brand); }
.dp-num{ font-size:10.5px; color:var(--muted); margin-top:6px; font-variant-numeric:tabular-nums; }
.dp-num b{ font-size:12px; color:var(--text); }
.dp-num em{ font-style:normal; font-size:10px; color:var(--faint); margin-left:5px; }
.dp-perm{
  font-style:normal; font-size:9.5px; font-weight:650; line-height:1.7;
  padding:0 5px; border-radius:5px; white-space:nowrap;
}
.dp-perm.ok{ color:var(--ok); background:var(--ok-soft); }
.dp-perm.muted{ color:var(--muted); background:#F1F5F7; }
.dp-dept{ margin-left:auto; font-size:9.5px; color:var(--faint); white-space:nowrap; }

.sec-block{ margin-top:15px; }
.sec-block:first-child{ margin-top:0; }
.sec-hd{
  display:flex; align-items:center; gap:7px;
  font-size:11px; font-weight:650; letter-spacing:.03em; color:var(--muted);
  padding:0 2px 8px;
}
.sec-hd::before{ content:""; width:3px; height:11px; border-radius:2px; background:var(--brand-line); }
.sec-hd em{
  font-style:normal; font-size:10px; font-weight:650; color:var(--faint);
  background:#F0F5F8; border-radius:5px; padding:0 5px;
}

.pos-chip{
  display:inline-flex; align-items:center; gap:2px; height:24px; padding:0 7px;
  border-radius:7px; border:1px solid var(--line); background:#fff;
  font:inherit; font-size:11.5px; color:var(--text-2); cursor:pointer; white-space:nowrap;
}
.pos-chip svg{ width:12px; height:12px; color:var(--faint); }
.pos-chip:hover{ border-color:var(--brand-line); color:var(--brand-600); background:var(--brand-soft); }

@media (max-width:1180px){
  .duty-posts{ grid-template-columns:repeat(3,minmax(0,1fr)); }
  .di-dots{ flex-wrap:nowrap; gap:2px; }
  .di-dots .dd{ width:6px; height:6px; border-radius:1.5px; }
}
@media (max-width:980px){
  .duty-top{ grid-template-columns:minmax(0,1fr) 140px; gap:16px; }
  .duty-name{ font-size:12.5px; }
  .dv-sum{ grid-template-columns:minmax(0,1fr); gap:14px; }
  .dvs-stats{ gap:16px; }
  .dvs-stats > div{ text-align:left; min-width:0; }
  .page-head.duty-head{ align-items:center; }
  .page-head.duty-head .ph-text{ flex:1; }
  .page-head.duty-head .ph-actions{ width:auto; margin-left:auto; }
  .page-head.duty-head .ph-actions .btn{ flex:none; width:auto; height:32px; padding:0 12px; font-size:12.5px; }
}
@media (max-width:760px){
  .duty-top{ grid-template-columns:minmax(0,1fr); gap:12px; }
  .page-head.duty-head{ align-items:center; }
  .page-head.duty-head .ph-text{ flex:1; }
  .page-head.duty-head .ph-actions{ width:auto; margin-left:auto; }
  .page-head.duty-head .ph-actions .btn{ flex:none; width:auto; height:32px; padding:0 12px; font-size:12.5px; }
  .duty-sum{ grid-template-columns:minmax(0,1fr); gap:12px; padding:13px 14px; }
  .ds-top{ flex-direction:column; align-items:flex-start; gap:2px; }
  .ds-stats{ gap:10px; justify-content:space-between; }
  .ds-stats > div{ min-width:0; text-align:left; }
  .duty-meter{ display:flex; align-items:center; gap:10px; text-align:left; }
  .dm-num b{ font-size:20px; }
  .dm-bar{ flex:1; margin-top:0; }
  .duty-posts{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .duty-post{ padding:9px 10px; }
  .dp-top{ gap:5px; }
  .dp-top strong{ font-size:12.5px; }
  .dp-perm{ font-size:9px; padding:0 4px; }
  .dp-dept{ display:none; }
  .sec-hd{ padding-bottom:7px; }
  .duty-points span{ font-size:10.5px; padding:2px 7px; }
  .duty-sel{ max-width:120px; }
  .duty-hint{ display:none; }
  .duty-card .card-head{ flex-wrap:wrap; row-gap:8px; }
  .duty-card .card-head h3{ font-size:12.5px; white-space:nowrap; }
  .duty-card .card-head h3 .count-chip{ display:none; }
  .duty-card .ch-actions{ gap:6px; }
  .duty-card .duty-sel{ max-width:104px; height:28px; font-size:12px; }
  .duty-card .ch-actions .pill{ font-size:10.5px; padding:1px 6px; }

  .duty-item{ grid-template-columns:22px minmax(0,1fr) auto; gap:8px; padding:10px 0; }
  .di-chev{ display:none; }
  .di-dots{ display:none; }
  .duty-item.is-op{ grid-template-columns:minmax(0,1fr) auto; gap:6px; }
  .duty-item.is-op .di-hit{ grid-template-columns:22px minmax(0,1fr); gap:8px; }
  .duty-item.is-op .di-pill{ display:none; }
  .duty-item.is-op .duty-freq{ font-size:9.5px; padding:0 5px; }
  .duty-item.is-op .di-act .cert-view{ display:none; }
  .duty-item.is-op .di-act .cert-att{ height:30px; padding:0 8px; font-size:11px; }
  .dv-ship-meta{ padding:0 13px 9px; font-size:10.5px; }
  .dv-ship .card-body{ padding:0 13px 13px; }

  .dh-sum{ grid-template-columns:1fr; gap:10px; padding:11px 13px; }
  .dhs-stats{ justify-content:space-between; gap:10px; }
  .dhs-stats > div{ min-width:0; text-align:left; }
  .dhs-stats strong{ font-size:15px; }
  .dh-row{ padding:0 13px; }
  .dh-t strong{ font-size:12px; }
  .dh-files{ padding-left:16px; }
  .dh-loading, .dh-empty{ padding:14px 13px; }
  .di-name{ font-size:13px; }
  .di-sub{ font-size:10.5px; }
  .duty-foot{ font-size:11px; }

  .dv-sum{ grid-template-columns:minmax(0,1fr); gap:12px; padding:13px 14px; }
  .dvs-top{ flex-direction:column; align-items:flex-start; gap:2px; }
  .dvs-stats{ justify-content:space-between; gap:10px; }
  .dvs-stats > div{ min-width:0; text-align:left; }
  .dv-row{ grid-template-columns:26px minmax(0,1fr) auto auto; gap:8px; padding:10px 13px; }
  .dv-row .att-pair{ grid-column:auto; justify-self:end; }
  .dv-row .att-pair .cert-view{ display:none; }
  .dv-row > .cert-att, .dv-row .att-pair .cert-att{ height:30px; padding:0 10px; }
  .dv-pill{ font-size:10.5px; padding:1px 7px; }
  .dv-ic{ width:26px; height:26px; border-radius:8px; }
  .dv-name{ font-size:12.5px; }
  .dv-meta{ font-size:10.5px; }
  .dv-group-hd{ padding:9px 13px 5px; }
}

.perm-tbl{ min-width:740px; }
.perm-tbl.mod-tbl{ min-width:760px; }
.perm-tbl.wide-tbl{ min-width:900px; }
.pt-scroll-hint{ display:none; font-size:11px; color:var(--faint); }
.perm-tbl th.pt-user,
.perm-tbl td.pt-user{
  min-width:140px; position:sticky; left:0; z-index:1; background:#fff;
  box-shadow:1px 0 0 var(--line-2);
}
.perm-tbl th.pt-user{ background:#FAFCFD; z-index:2; }
.perm-tbl tr:hover td.pt-user{ background:#FAFDFE; }
.perm-tbl td.pt-user strong{ display:block; font-size:12.5px; font-weight:620; color:var(--text); }
.perm-tbl td.pt-user span{ display:block; font-size:10.5px; color:var(--faint); margin-top:1px; max-width:170px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.perm-tbl th.pt-sec{ text-align:center; padding:9px 5px; font-size:10px; letter-spacing:0; }
.perm-tbl th.pt-sum-hd{ text-align:right; padding-right:14px; }
.perm-tbl td.pt-cell{ padding:7px 5px; text-align:center; }
.perm-tbl td.pt-act{ text-align:right; white-space:nowrap; }
.perm-cell{
  min-width:46px; height:26px; padding:0 6px; border-radius:6px; cursor:pointer;
  font:inherit; font-size:11px; font-weight:620; border:1px solid transparent;
  background:#F4F8FA; color:var(--faint); transition:.14s;
}
.perm-cell.none{ border-color:var(--line); background:#fff; color:var(--faint); }
.perm-cell.view{ background:var(--info-soft); border-color:#CFE0FB; color:var(--info); }
.perm-cell.edit{ background:var(--ok-soft); border-color:#C3EBDC; color:var(--ok); }
.perm-cell:hover{ transform:translateY(-1px); box-shadow:var(--shadow-1); }
.perm-cell.none:hover{ border-color:var(--brand-line); color:var(--brand); }
.perm-cell.all{
  display:inline-flex; align-items:center; justify-content:center; width:100%;
  background:var(--brand-soft); border-color:var(--brand-line); color:var(--brand-600); cursor:default;
}
.perm-cell.all:hover{ transform:none; box-shadow:none; }
.pt-sum{ font-size:10.5px; color:var(--faint); font-variant-numeric:tabular-nums; }
.perm-tbl td.pt-act .mini-btn{ margin-left:8px; }
.perm-legend{
  display:flex; flex-wrap:wrap; align-items:center; gap:14px;
  padding:10px 14px; border-top:1px solid var(--line-2);
  font-size:11px; color:var(--muted);
}
.perm-legend span{ display:inline-flex; align-items:center; gap:5px; }
.perm-legend i{ width:9px; height:9px; border-radius:3px; }
.perm-legend .pc-edit{ background:#C3EBDC; }
.perm-legend .pc-view{ background:#CFE0FB; }
.perm-legend .pc-none{ background:#fff; border:1px solid var(--line); }
.perm-legend em{ font-style:normal; color:var(--faint); width:100%; }

.perm-view-tabs{ display:flex; flex-wrap:wrap; gap:8px; padding:12px 14px 0; }
.perm-view-tab{
  display:inline-flex; align-items:center; gap:7px; height:32px; padding:0 14px;
  border:1px solid var(--line); background:#fff; color:var(--text-2);
  border-radius:9px; font:inherit; font-size:12.5px; font-weight:620; cursor:pointer; transition:.14s;
}
.perm-view-tab b{
  font-size:10.5px; font-weight:620; color:var(--faint);
  background:#F4F8FA; border-radius:7px; padding:1px 7px;
}
.perm-view-tab:hover{ border-color:var(--brand-line); color:var(--brand-600); }
.perm-view-tab.on{ background:var(--brand-soft); border-color:var(--brand-line); color:var(--brand-600); }
.perm-view-tab.on b{ background:#fff; color:var(--brand-600); }
.perm-focus{ background:#FFF8E6 !important; box-shadow:inset 0 0 0 2px #E8C46A; }

.perm-filter{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  padding:10px 14px; border-bottom:1px solid var(--line-2);
}
.perm-filter .field-search{ min-width:200px; max-width:300px; flex:1 1 200px; }
.perm-flt-sel{
  height:34px; padding:0 26px 0 10px; max-width:190px;
  font:inherit; font-size:12.5px; color:var(--text-2);
  border:1px solid var(--line); border-radius:9px; background:#fff;
  appearance:none; -webkit-appearance:none; cursor:pointer; transition:.14s;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23728B99' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 8px center; background-size:13px;
  box-shadow:var(--shadow-1);
}
.perm-flt-sel:hover{ border-color:#C6DEE7; }
.perm-flt-sel:focus{ outline:none; border-color:var(--brand); box-shadow:0 0 0 3px rgba(14,116,144,.1); }
.perm-ck{
  display:inline-flex; align-items:center; gap:6px; height:34px; padding:0 11px;
  border:1px solid var(--line); border-radius:9px; background:#fff; cursor:pointer;
  font-size:12.5px; color:var(--text-2); box-shadow:var(--shadow-1); transition:.14s;
}
.perm-ck:hover{ border-color:#C6DEE7; }
.perm-ck input{ accent-color:var(--brand); margin:0; }
.perm-flt-n{ margin-left:auto; font-size:11.5px; color:var(--faint); font-variant-numeric:tabular-nums; }
.perm-flt-rst.on{ border-color:var(--brand-line); background:var(--brand-soft); color:var(--brand); }
.perm-empty{ padding:26px 12px; text-align:center; font-size:12.5px; color:var(--faint); }
.perm-sel{
  width:100%; min-width:74px; height:26px; padding:0 22px 0 8px;
  font:inherit; font-size:11px; font-weight:620; color:var(--faint);
  border:1px solid var(--line); border-radius:6px; background:#fff;
  appearance:none; -webkit-appearance:none; cursor:pointer; transition:.14s;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23728B99' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 4px center; background-size:13px;
  text-align:left;
}
.perm-sel:hover{ border-color:var(--brand-line); }
.perm-sel:focus{ outline:none; border-color:var(--brand); box-shadow:0 0 0 3px rgba(14,116,144,.11); }
.perm-sel.lv-none{ color:var(--faint); }
.perm-sel.lv-view{ background-color:var(--info-soft); border-color:#CFE0FB; color:var(--info); }
.perm-sel.lv-edit{ background-color:var(--ok-soft); border-color:#C3EBDC; color:var(--ok); }

.perm-tabs{ display:flex; flex-wrap:wrap; gap:6px; padding:10px 14px 0; }
.perm-tab{
  display:inline-flex; align-items:center; gap:6px; height:28px; padding:0 10px;
  border:1px solid var(--line); background:#fff; color:var(--text-2);
  border-radius:8px; font:inherit; font-size:12px; cursor:pointer; transition:.14s;
}
.perm-tab b{ font-size:10.5px; font-weight:620; color:var(--faint); }
.perm-tab:hover{ border-color:var(--brand-line); color:var(--brand-600); }
.perm-tab.on{ background:var(--brand-soft); border-color:var(--brand-line); color:var(--brand-600); }
.perm-tab.on b{ color:var(--brand-600); }

.pt-ship{
  margin-top:4px; font-size:10.5px; color:var(--text-2);
  display:flex; align-items:center; gap:4px; white-space:nowrap;
}
.pt-ship::before{ content:''; width:4px; height:4px; border-radius:50%; background:var(--faint); }
.pt-ship.warn{ color:var(--danger); }
.pt-ship.warn::before{ background:var(--danger); }

@media (max-width:760px){
  .pt-scroll-hint{ display:inline; }
  .perm-tbl.mod-tbl{ min-width:560px; }
  .perm-tbl.wide-tbl{ min-width:660px; }
  .perm-tbl th.pt-user, .perm-tbl td.pt-user{ min-width:104px; }
  .perm-tbl td.pt-user strong{ font-size:12px; }
  .perm-tbl td.pt-user span{ max-width:104px; }
  .perm-tbl td.pt-cell{ padding:6px 3px; }
  .perm-tbl th.pt-sec{ padding:8px 3px; font-size:9.5px; }
  .perm-tbl td.pt-cell .perm-cell{ min-width:40px; padding:0 4px; }
  .perm-sel{ min-width:62px; font-size:10.5px; padding-right:18px; }
  .perm-view-tabs{ padding:10px 12px 0; gap:6px; }
  .perm-view-tab{ height:28px; padding:0 10px; font-size:12px; }
  .perm-tabs{ padding:10px 12px 0; gap:5px; }
  .perm-tab{ height:26px; padding:0 8px; font-size:11.5px; }
  .perm-filter{ padding:10px 12px; gap:6px; }
  .perm-filter .field-search{ max-width:none; flex:1 1 100%; }
  .perm-flt-sel{ flex:1 1 130px; max-width:none; height:32px; }
  .perm-ck{ height:32px; }
  .perm-flt-n{ width:100%; margin-left:0; text-align:right; }
}

.ex-cols{ grid-template-columns:132px minmax(190px,2fr) 172px 150px 96px 24px; }
.ex-code{ color:var(--brand); font-weight:650; font-size:11px; line-height:1.4; word-break:break-word; }
.ex-main .doc-nm{ flex-wrap:wrap; }
.ex-main .sub{ display:block; font-size:11px; color:var(--faint); margin-top:1px; }
.ex-prog{ display:flex; flex-direction:column; gap:5px; }
.ex-bar{ height:5px; border-radius:3px; background:#EDF3F6; overflow:hidden; }
.ex-bar i{ display:block; height:100%; border-radius:3px; background:linear-gradient(90deg,#31A9C6,#0E7490); }
.ex-bar i.ok{ background:linear-gradient(90deg,#34C08A,#0E9F6E); }
.ex-bar i.bad{ background:linear-gradient(90deg,#E7794F,#D93B3B); }
.ex-num{ font-size:11.5px; color:var(--muted); font-variant-numeric:tabular-nums; }
.ex-num b{ color:var(--text); font-weight:700; }
.ex-num em{ font-style:normal; color:var(--faint); margin-left:6px; }
.ex-due{ font-size:12px; color:var(--text-2); display:flex; flex-direction:column; align-items:flex-start; gap:4px; }
.ex-last{ font-size:12px; color:var(--text-2); }
.ex-last .sub{ display:block; font-size:10.5px; color:var(--faint); }

.es-row{
  display:grid; grid-template-columns:52px minmax(0,1fr) 20px; gap:12px; align-items:center;
  padding:12px 16px; border-bottom:1px solid var(--line-2); transition:background .12s;
}
.es-row:last-child{ border-bottom:none; }
.es-row:hover{ background:#FAFDFE; }
.es-date{
  text-align:center; border-radius:9px; padding:4px 0;
  background:#F3F8FA; border:1px solid var(--line);
}
.es-date strong{ display:block; font-size:14px; font-weight:700; color:var(--text); font-variant-numeric:tabular-nums; line-height:1.3; }
.es-date span{ font-size:10px; color:var(--muted); }
.es-main{ min-width:0; }
.es-t{ display:flex; align-items:center; gap:8px; font-size:13.5px; font-weight:620; }
.es-t em{ font-style:normal; font-size:11px; color:var(--muted); font-weight:500; }
.es-t .pill{ margin-left:auto; }
.es-sub{ font-size:11.5px; color:var(--muted); margin-top:2px; }
.es-bar{ height:4px; border-radius:3px; background:#EDF3F6; margin-top:6px; overflow:hidden; }
.es-bar i{ display:block; height:100%; border-radius:3px; background:linear-gradient(90deg,#34C08A,#0E9F6E); }

.cov-stats{ display:flex; gap:20px; }
.cov-stats > div{ display:flex; flex-direction:column; }
.cov-stats strong{ font-size:20px; font-weight:700; letter-spacing:-.02em; line-height:1.2; font-variant-numeric:tabular-nums; }
.cov-stats span{ font-size:11px; color:var(--muted); }
.cov-bar{ height:6px; border-radius:4px; background:#EDF3F6; margin:12px 0 13px; overflow:hidden; }
.cov-bar i{ display:block; height:100%; background:linear-gradient(90deg,#31A9C6,#0E7490); }
.cov-hd{ display:flex; align-items:center; gap:8px; font-size:11.5px; font-weight:600; color:var(--text-2); margin-bottom:7px; }
.cov-hd .mini-btn{ margin-left:auto; font-weight:600; }
.cov-chips{ display:flex; flex-wrap:wrap; gap:6px; }
.cov-chip{
  display:inline-flex; align-items:center; gap:5px;
  font-size:11.5px; background:var(--warn-soft); color:#A35F00;
  border-radius:20px; padding:3px 9px;
}
.cov-chip em{ font-style:normal; font-size:10px; opacity:.75; }
.cov-tip{ font-size:11.5px; color:var(--muted); margin-top:10px; line-height:1.7; }
.cov-tip.ok{ display:flex; align-items:center; gap:6px; color:var(--ok); }
.cov-tip.ok svg{ width:14px; height:14px; flex:none; }

.ext-rule{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px; }
.ext-rule li{ position:relative; padding-left:14px; font-size:12px; color:var(--text-2); line-height:1.65; }
.ext-rule li::before{ content:''; position:absolute; left:0; top:7px; width:5px; height:5px; border-radius:50%; background:var(--brand-line); }
.ext-rule li b{ color:var(--text); font-weight:600; }
.ext-rule li b.ok{ color:var(--ok); }
.ext-rule li b.warn{ color:var(--warn); }
.ext-rule.tight{ gap:6px; margin-top:4px; }
.ext-tip{
  display:flex; align-items:flex-start; gap:7px; margin-top:12px;
  font-size:11.5px; color:var(--warn); background:var(--warn-soft);
  border-radius:8px; padding:8px 10px; line-height:1.6;
}
.ext-tip svg{ width:13px; height:13px; flex:none; margin-top:2px; }

.ext-urgent{
  display:flex; gap:10px; margin-bottom:14px; padding:11px 14px;
  background:#FDF2F2; border:1px solid #F2CFCF; border-left:3px solid var(--danger);
  border-radius:11px; color:var(--danger);
}
.ext-urgent > svg{ width:17px; height:17px; flex:none; margin-top:1px; }
.ext-urgent > div{ min-width:0; font-size:12px; line-height:1.7; color:#8E3A3A; }
.ext-urgent b{ display:block; font-size:12.5px; color:#B92F2F; }

.sign-tip{
  display:flex; align-items:center; gap:9px; margin-bottom:14px;
  background:var(--brand-soft); border:1px solid var(--brand-line); color:var(--brand-600);
  border-radius:11px; padding:10px 13px; font-size:12.5px;
}
.sign-tip svg{ width:16px; height:16px; flex:none; }
.sign-tip span{ flex:1; min-width:0; }
.sign-tip b{ color:var(--brand-600); }
.sign-tip.ok{ background:var(--ok-soft, #EAF7EF); border-color:#C6E7D3; color:var(--ok); }
.sign-tip.warn{ background:#FDF6E7; border-color:#EEDFBC; color:#8A6A15; }
.sign-tip.warn b{ color:#7A5A0B; }

.arc-bar{
  display:flex; gap:10px; margin-bottom:14px; padding:11px 14px;
  background:#F3FAFC; border:1px solid #CFE3EA; border-radius:11px; color:var(--brand-600);
}
.arc-bar > svg{ width:18px; height:18px; flex:none; margin-top:1px; }
.arc-bar > div{ min-width:0; font-size:12px; line-height:1.7; color:var(--text-2); }
.arc-bar b{ display:block; font-size:12.5px; color:var(--brand-600); }
.arc-bar em{ display:block; font-style:normal; color:var(--faint); font-size:11px; }
.arc-file{
  border:none; background:none; padding:0; font:inherit; cursor:pointer;
  color:var(--brand-600); font-weight:600; text-decoration:underline;
}

.sig-svg{ display:block; width:100%; height:auto; overflow:visible; }
.sig-svg path{ fill:none; stroke:#122F3E; stroke-width:6.5; stroke-linecap:round; stroke-linejoin:round; }

.sheet-card .card-body.sheet-body{ padding:18px 20px 20px; }
.sheet{ background:#fff; }
.sheet-hd{ text-align:center; padding:2px 0 12px; border-bottom:1.6px solid #122F3E; }
.sheet-hd h3{ font-size:18px; font-weight:700; letter-spacing:.14em; color:#122F3E; }
.sheet-hd p{ font-size:11.5px; color:var(--muted); margin-top:4px; letter-spacing:.02em; }
.sheet-meta{ width:100%; border-collapse:collapse; margin-top:12px; font-size:12px; }
.sheet-meta th,.sheet-meta td{ border:1px solid #D9E3E9; padding:6px 9px; text-align:left; vertical-align:middle; }
.sheet-meta th{ background:#F5F9FB; font-weight:600; color:var(--text-2); white-space:nowrap; width:80px; font-size:11.5px; }
.sheet-meta td{ color:var(--text); }
.sheet-note{
  margin-top:12px; font-size:12px; color:var(--text-2); line-height:1.8;
  background:#F8FBFD; border:1px solid #E4EEF3; border-radius:8px; padding:9px 12px;
}
.sheet-note b{ display:block; margin-bottom:3px; color:var(--text); }
.sheet-note p{ margin:0; white-space:pre-line; }

.sheet-note.empty{ background:#FDFAF3; border-color:#EFE6D2; color:#8A6A15; }
.sheet-note .note-by{ margin-left:8px; font-style:normal; font-size:10.5px; color:var(--faint); }
.trn-outcome{ margin:0; font-size:12.5px; line-height:1.85; color:var(--text-2); white-space:pre-line; }
.trn-outcome.empty{ color:var(--muted); font-size:12px; }
.sheet-tbl{ width:100%; border-collapse:collapse; margin-top:12px; font-size:12px; }
.sheet-tbl th,.sheet-tbl td{ border:1px solid #D9E3E9; padding:6px 8px; }
.sheet-tbl th{ background:#F5F9FB; font-size:11px; color:var(--text-2); font-weight:600; text-align:left; }
.sheet-tbl th:nth-child(1){ width:44px; }
.sheet-tbl th:nth-child(3){ width:104px; }
.sheet-tbl th:nth-child(4){ width:92px; }
.sheet-tbl th:nth-child(5){ width:224px; }
.sheet-tbl th:nth-child(6){ width:92px; }
.sheet-tbl td{ height:46px; vertical-align:middle; }
.sheet-tbl tr.unsigned td{ background:#FFFDF6; }
.sg-idx{ text-align:center; color:var(--muted); }
.sg-name{ font-weight:600; }
.sg-me{ font-style:normal; font-size:9.5px; color:var(--brand-600); background:var(--brand-soft); border-radius:4px; padding:1px 4px; margin-left:5px; }
.sg-time{ color:var(--muted); font-size:11px; white-space:nowrap; }
.sg-sign{ position:relative; }
.sg-cell{ display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.sg-cell .sheet-svg{ width:112px; height:36px; flex:none; }
.sg-fp{ font-style:normal; font-size:9px; color:var(--faint); letter-spacing:.02em; }
.sg-bad{ font-style:normal; font-size:9px; color:var(--danger); }
.sg-agent{ font-style:normal; font-size:9px; color:var(--warn); }
.sg-re{
  font:inherit; font-size:10px; color:var(--muted); background:#fff;
  border:1px solid var(--line); border-radius:5px; padding:1px 6px; cursor:pointer;
}
.sg-re:hover{ color:var(--brand-600); border-color:var(--brand-line); }
.sheet-svg{ width:150px; height:42px; }
.sg-btn{ height:28px; padding:0 10px; font-size:11.5px; }
.sheet-empty{ text-align:center; color:var(--faint); }
.sheet-foot{ display:flex; gap:12px; margin-top:14px; flex-wrap:wrap; }
.sheet-sign{ flex:1; min-width:236px; border:1px dashed #CFDDE5; border-radius:9px; padding:8px 11px; }
.ss-label{ display:block; font-size:11.5px; color:var(--muted); margin-bottom:4px; }
.ss-box{ min-height:50px; display:flex; flex-direction:column; justify-content:center; }
.ss-box .sheet-svg{ width:148px; height:40px; }
.ss-meta{ font-style:normal; font-size:10px; color:var(--faint); margin-top:2px; }
.ss-hint{ display:block; margin-top:4px; font-style:normal; font-size:10.5px; color:var(--faint); }
.ss-blank{ font-size:11.5px; color:var(--faint); }
.sheet-tip{ margin-top:12px; font-size:10.5px; color:var(--faint); text-align:center; line-height:1.6; }

.sign-modal{ max-width:560px; }
.sign-who{ display:flex; align-items:center; gap:11px; padding:1px 0 12px; }
.sign-av{
  width:36px; height:36px; border-radius:50%; flex:none; display:grid; place-items:center;
  font-size:13px; font-weight:700; background:#DFF1F7; color:#0E5F76;
}
.sign-who strong{ display:block; font-size:13.5px; font-weight:650; }
.sign-who span{ display:block; font-size:11.5px; color:var(--muted); margin-top:1px; }
.sign-saved{
  border:1px solid var(--brand-line); background:var(--brand-soft);
  border-radius:10px; padding:9px 11px; margin-bottom:12px; transition:box-shadow .16s;
}
.sign-saved.on{ box-shadow:0 0 0 2px rgba(14,116,144,.32); }
.ss-hd{ display:flex; align-items:center; gap:8px; font-size:12px; font-weight:650; color:var(--brand-600); }
.ss-hd svg{ width:14px; height:14px; flex:none; }
.ss-hd em{ font-style:normal; font-size:10.5px; color:var(--muted); font-weight:400; }
.ss-cur{ margin-left:auto; font-size:10px; font-weight:600; padding:1px 7px; border-radius:20px; background:#E7EEF2; color:var(--muted); }
.ss-cur.on{ background:var(--brand); color:#fff; }
.sign-none{ display:flex; gap:9px; align-items:flex-start; padding:9px 11px; margin-bottom:12px; border:1px dashed #E3C08A; border-radius:10px; background:#FFFCF4; font-size:11.5px; line-height:1.7; color:#8A6320; }
.sign-none svg{ width:15px; height:15px; flex:none; margin-top:2px; }
.ss-body{ background:#fff; border-radius:8px; margin-top:7px; padding:2px 8px; }
.saved-svg{ height:60px; }
.ss-ft{ display:flex; align-items:center; gap:9px; margin-top:8px; flex-wrap:wrap; }
.ss-ft span{ font-size:11px; color:var(--muted); }
.pad-wrap{ border:1px solid var(--line); border-radius:11px; overflow:hidden; background:#fff; }
.pad-hd{
  display:flex; align-items:center; justify-content:space-between;
  padding:8px 11px; background:#F7FBFD; border-bottom:1px solid var(--line-2);
  font-size:11.5px; color:var(--text-2);
}
.pad-acts{ display:flex; gap:6px; }
.pad-btn{
  font:inherit; font-size:11.5px; color:var(--text-2); background:#fff;
  border:1px solid var(--line); border-radius:7px; padding:3px 9px; cursor:pointer;
}
.pad-btn:hover{ border-color:var(--brand-line); color:var(--brand-600); }
.pad-canvas{
  display:block; width:100%; background:#fff; touch-action:none; cursor:crosshair;
  background-image:repeating-linear-gradient(180deg,transparent 0,transparent 41px,#EFF5F8 41px,#EFF5F8 42px);
  background-position:0 4px;
}
.pad-canvas.drawing{ background-color:#FDFEFE; }
.pad-ft{ padding:7px 11px; font-size:10.5px; color:var(--faint); background:#FBFDFE; border-top:1px solid var(--line-2); }
.sign-save{ display:flex; align-items:center; gap:7px; margin-top:11px; font-size:12px; color:var(--text-2); }
.sign-save input{ width:15px; height:15px; accent-color:var(--brand); flex:none; }

.my-sign{ display:grid; grid-template-columns:minmax(0,1fr) 232px; gap:14px; align-items:center; }
.ms-box{
  border:1px dashed #CFDDE5; border-radius:10px; min-height:88px; background:#FCFEFF;
  display:flex; align-items:center; justify-content:center; padding:6px 14px;
}
.ms-svg{ height:74px; }
.ms-empty{ font-size:11.5px; color:var(--faint); text-align:center; line-height:1.7; }
.ms-meta{ font-size:11.5px; color:var(--muted); line-height:1.85; }
.ms-meta b{ color:var(--text); }
.ms-meta code{ font-size:10.5px; background:#F3F8FA; border-radius:4px; padding:1px 5px; }
.ms-acts{ display:flex; gap:7px; margin-top:9px; flex-wrap:wrap; }
.sign-tbl{ margin-top:14px; border-top:1px solid var(--line-2); padding-top:10px; }
.st-hd{ font-size:11.5px; font-weight:650; color:var(--text-2); margin-bottom:6px; }
.st-row{
  display:grid; grid-template-columns:minmax(0,1fr) 118px 90px 30px; gap:8px; align-items:center;
  padding:5px 0; font-size:11.5px; color:var(--text-2); border-bottom:1px dashed var(--line-2);
}
.st-row:last-child{ border-bottom:none; }
.st-row em{ font-style:normal; color:var(--faint); margin-left:5px; font-size:10.5px; }
.sign-note{ margin-top:12px; font-size:11px; color:var(--faint); line-height:1.7; }

.pp-list{ max-height:320px; overflow:auto; border:1px solid var(--line); border-radius:9px; }
.pp-row{
  display:grid; grid-template-columns:20px 30px minmax(0,1fr) 104px 96px; gap:8px; align-items:center;
  padding:8px 11px; border-bottom:1px solid var(--line-2); cursor:pointer;
}
.pp-row:last-child{ border-bottom:none; }
.pp-row:hover{ background:#F8FCFD; }
.pp-row input{ width:15px; height:15px; accent-color:var(--brand); }
.pp-av{
  width:26px; height:26px; border-radius:50%; display:grid; place-items:center;
  font-size:11px; font-weight:700; background:#E7F3F7; color:#0E5F76;
}
.pp-nm{ font-size:12.5px; font-weight:600; }
.pp-pos,.pp-ship{ font-size:11.5px; color:var(--muted); }
.pp-empty{ padding:20px; text-align:center; font-size:12px; color:var(--faint); }
.pp-count{ margin-right:auto; font-size:11.5px; color:var(--muted); }

.pp-depts{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin-bottom:10px; }
.pp-depts-lb{ font-size:11.5px; color:var(--faint); margin-right:2px; }
.pp-depts .chip{ height:26px; padding:0 10px; font-size:11.5px; font-weight:600; }
.pp-depts .chip em{ margin-left:2px; }
.pp-depts .chip.on{
  background:var(--brand-soft); border-color:var(--brand-line); color:var(--brand-600);
}

.pp-modal{ max-width:520px; }
.pp-group{ border-bottom:1px solid var(--line); }
.pp-group:last-child{ border-bottom:none; }
.pp-ghd{
  display:flex; align-items:center; gap:7px; padding:7px 11px;
  font-size:11.5px; font-weight:650; color:var(--text-2);
  background:#F6FAFB; position:sticky; top:0; z-index:1;
}
.pp-ghd svg{ width:14px; height:14px; flex:none; color:var(--brand); }
.pp-ghd em{ font-style:normal; font-weight:500; color:var(--faint); font-size:11px; }
.pp-ghd .pp-gall{
  margin-left:auto; border:1px solid var(--line); background:#fff; color:var(--brand-600);
  font:inherit; font-size:11px; font-weight:600; padding:2px 9px; border-radius:20px; cursor:pointer;
}
.pp-ghd .pp-gall:hover{ border-color:var(--brand-line); background:var(--brand-soft); }
.pp-group.has-pick .pp-ghd{ background:#EEF8EF; }
.pp-group .pp-row{ padding-left:15px; }

.pp-have{ border:1px solid var(--line); background:#FAFDFE; border-radius:9px; padding:9px 11px; }
.pp-have-hd{
  display:flex; align-items:center; gap:6px; font-size:11.5px; color:var(--text-2); margin-bottom:7px;
}
.pp-have-hd svg{ width:14px; height:14px; flex:none; color:var(--brand); }
.pp-have-hd b{ color:var(--brand-600); }
.pp-have-hd em{ margin-left:auto; font-style:normal; font-size:10.5px; color:var(--faint); }
.pp-have-list{ display:flex; flex-wrap:wrap; gap:6px; max-height:120px; overflow:auto; }
.pp-chip{
  display:inline-flex; align-items:center; gap:5px; height:25px; padding:0 4px 0 9px;
  border:1px solid var(--line); background:#fff; border-radius:20px; font-size:11.5px; font-weight:600;
}
.pp-chip i{ font-style:normal; font-weight:500; font-size:10.5px; color:var(--faint); }
.pp-chip.on{ background:#EEF8EF; border-color:#CDE8D6; }
.pp-chip-sg{ font-size:9.5px; font-weight:600; color:var(--ok); letter-spacing:.2px; }
.pp-chip .pp-x{
  width:18px; height:18px; border:none; background:transparent; color:var(--faint);
  border-radius:50%; cursor:pointer; display:grid; place-items:center; padding:0;
}
.pp-chip .pp-x svg{ width:11px; height:11px; }
.pp-chip .pp-x:hover{ background:#FBE9E9; color:var(--danger); }
.pp-none{ padding:16px; text-align:center; font-size:11.5px; color:var(--faint); }

.att-ref{ margin-top:14px; border-top:1px dashed var(--line); padding-top:10px; }

.att-body > .att-ref:first-child{ margin-top:0; padding-top:0; border-top:none; }
.att-ref-hd{
  display:flex; align-items:center; gap:6px; font-size:11.5px; color:var(--brand-600); margin-bottom:2px;
}
.att-ref-hd svg{ width:14px; height:14px; flex:none; }
.att-ref-hd b{ font-weight:650; }

.att-ref-hd > span{ display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 6px; min-width:0; }

.att-ref-hd > span .att-ref-src{ font-weight:500; color:var(--brand-600); cursor:default; }
.att-ref-hd > span > em{ margin-left:0; }
.att-ref-hd em{ margin-left:auto; font-style:normal; color:var(--faint); font-size:11px; }
.att-ref-empty{
  margin-top:8px; padding:10px 12px; border:1px dashed var(--line); border-radius:10px;
  background:#FAFBFC; font-size:12px; color:var(--muted); line-height:1.75;
}
.count-chip.ref{ margin-left:6px; background:#EAF4F7; color:var(--brand-600); }

.field.is-locked input,.field.is-locked select,.field.is-locked textarea{
  background:#F2F5F7; color:var(--faint); cursor:not-allowed;
}
.field .lock-hint{ color:var(--brand-600); }

.print-root{ display:none; }
@media print{
  body.printing{ background:#fff; }
  body.printing > *{ display:none !important; }
  body.printing > .print-root{ display:block !important; }
  .print-root .sheet{ padding:0; }
  .print-root .sg-btn,
  .print-root .sg-re,
  .print-root .sign-tip{ display:none !important; }
  .print-root *{ -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  .print-root .sheet-tbl th:nth-child(5){ width:210px; }
  @page{ size:A4 portrait; margin:14mm; }
}

@media (max-width:1180px){
  .ex-cols{ grid-template-columns:108px minmax(170px,2fr) 152px 132px 24px; }
  .ex-cols > .ex-last{ display:none; }
}
@media screen and (max-width:980px){
  .ex-cols{ grid-template-columns:1fr auto !important; gap:6px 12px; }
  .ex-cols > .ex-code{ display:none; }
  .ex-cols > .ex-main{ grid-column:1 / -1; }
  .ex-cols > .ex-prog{ grid-column:1; }
  .ex-cols > .ex-due{ grid-column:2; justify-self:end; align-items:flex-end; font-size:11.5px; }
  .ex-cols > .ex-due .pill{ font-size:10px; padding:3px 7px; }
  .ex-cols > .ex-last{ display:none; }
  .es-row{ grid-template-columns:46px minmax(0,1fr) 16px; gap:9px; padding:11px 13px; }
  .es-t{ font-size:12.5px; flex-wrap:wrap; gap:6px; }
  .es-t .pill{ margin-left:0; }
  .es-sub{ font-size:10.5px; }
  .cov-stats{ gap:14px; }
  .cov-stats strong{ font-size:17px; }
  .sheet-card .card-body.sheet-body{ padding:13px; }
  .sheet-hd h3{ font-size:16px; letter-spacing:.08em; }
  .sheet-meta{ font-size:11px; }
  .sheet-meta th{ width:62px; padding:5px 6px; }
  .sheet-meta td{ padding:5px 6px; }
  .my-sign{ grid-template-columns:1fr; }
  .ms-box{ min-height:74px; }
  .ms-svg{ height:62px; }
  .st-row{ grid-template-columns:minmax(0,1fr) 100px 78px 28px; font-size:11px; }
  .pp-row{ grid-template-columns:18px 26px minmax(0,1fr) 78px; gap:7px; padding:8px 10px; }
  .pp-row .pp-ship{ display:none; }
  .sign-modal{ max-height:94vh; }
  .pad-ft{ font-size:10px; }
}
@media screen and (max-width:760px){
  .sheet-tbl th:nth-child(3),
  .sheet-tbl td:nth-child(3),
  .sheet-tbl th:nth-child(4),
  .sheet-tbl td:nth-child(4),
  .sheet-tbl th:nth-child(6),
  .sheet-tbl td:nth-child(6){ display:none; }
  .sheet-tbl{ font-size:11px; }
  .sheet-tbl th:nth-child(5){ width:150px; }
  .sheet-tbl td{ height:42px; }
  .sg-cell .sheet-svg{ width:88px; height:30px; }
  .sg-fp{ display:none; }
  .sheet-foot{ gap:9px; }
  .sheet-sign{ min-width:0; flex:1 1 100%; }
  .sheet-note{ font-size:11px; padding:8px 10px; }
}
@media screen and (max-width:980px){
  .ex-cols > .row-chev{ display:none; }
  .ex-cols{ padding-right:13px; }
}

.sheet-tbl th:nth-child(2){ width:112px; }
.sheet-tbl th:nth-child(5){ width:auto; }
.sg-cell{ flex-wrap:nowrap; align-items:center; }
.sg-cell .sheet-svg{ width:126px; height:38px; }
.sg-meta{ display:flex; flex-direction:column; align-items:flex-start; gap:2px; min-width:0; }
.sg-meta .sg-fp{ white-space:nowrap; }
.sg-meta .sg-re{ margin-top:1px; }
.ss-box .sg-btn{ align-self:flex-start; }

@media screen and (max-width:760px){
  .sheet-meta, .sheet-meta tbody, .sheet-meta tr, .sheet-meta th, .sheet-meta td{ display:block; }
  .sheet-meta tr{
    display:grid; grid-template-columns:88px minmax(0,1fr);
    border:1px solid #D9E3E9; border-bottom:none;
  }
  .sheet-meta tr:last-child{ border-bottom:1px solid #D9E3E9; }
  .sheet-meta th, .sheet-meta td{ border:none; border-bottom:1px solid #EDF3F6; padding:5px 8px; width:auto; }
  .sheet-meta tr:last-child th, .sheet-meta tr:last-child td{ border-bottom:none; }
  .sheet-meta td{ border-left:1px solid #D9E3E9; }
  .sg-cell .sheet-svg{ width:96px; height:32px; }
  .ext-head .ph-actions .btn{ flex:1 1 calc(50% - 5px); }
}

.mon-cols{ grid-template-columns:minmax(0,1.15fr) minmax(150px,1.2fr) minmax(150px,1.2fr) 78px 22px; }
.mon-row{
  display:grid; align-items:center; gap:14px; padding:12px 16px;
  border-bottom:1px solid var(--line-2); text-decoration:none; color:inherit;
  transition:background .12s;
}
.mon-row:last-child{ border-bottom:none; }
.mon-row:hover{ background:#FAFDFE; }
.mon-ship{ min-width:0; display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.mon-nm{ font-size:13.5px; font-weight:650; color:var(--text); }
.mon-sub{
  flex:0 0 100%; font-style:normal; font-size:11.5px; color:var(--faint);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.mon-cell{ min-width:0; }
.mon-bar{ height:6px; border-radius:99px; background:#EDF3F6; overflow:hidden; }
.mon-bar i{ display:block; height:100%; border-radius:99px; background:#8FC8D8; transition:width .3s; }
.mon-bar.ok i{ background:var(--ok); }
.mon-bar.bad i{ background:#E0733F; }
.mon-num{ display:flex; align-items:baseline; gap:7px; margin-top:6px; font-size:11.5px; color:var(--muted); }
.mon-num b{ font-size:14px; font-weight:700; color:var(--text); font-variant-numeric:tabular-nums; }
.mon-num em{ font-style:normal; color:#A35F00; }
.mon-num em.bad{ color:var(--danger); }
.mon-chev{ display:flex; justify-content:flex-end; color:#C6D6DE; }

.gap-row{
  display:grid; grid-template-columns:minmax(0,1fr) 190px 168px; gap:14px;
  align-items:center; padding:10px 16px; border-bottom:1px solid var(--line-2);
}
.gap-row:last-child{ border-bottom:none; }
.gap-nm{ font-size:13px; font-weight:600; color:var(--text); }
.gap-sub{ margin-top:2px; font-size:11.5px; color:var(--faint); }
.gap-bar .mon-bar{ max-width:150px; }
.gap-pct{ margin-top:5px; font-size:11px; color:var(--muted); }
.gap-flag{ display:flex; gap:6px; justify-content:flex-end; flex-wrap:wrap; }

.mg-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:9px 16px; background:#FAFCFD; border-bottom:1px solid var(--line-2);
  font-size:11.5px; font-weight:650; color:var(--text-2);
}
.mg-head em{ font-style:normal; font-size:11px; font-weight:500; color:var(--faint); }
.mg-row{
  display:grid; grid-template-columns:minmax(0,1fr) 92px 108px; gap:12px;
  align-items:center; padding:9px 16px; border-bottom:1px solid var(--line-2);
}
.mg-row:last-child{ border-bottom:none; }
.mg-nm{ font-size:13px; color:var(--text); }
.mg-sub{ margin-top:1px; font-size:11px; color:var(--faint); }
.mg-last{ font-size:11.5px; color:var(--muted); font-variant-numeric:tabular-nums; }
.mg-pill{ display:flex; justify-content:flex-end; }
.mg-row .pill{ white-space:nowrap; }

.mt-row{
  display:grid; grid-template-columns:54px minmax(0,1fr) 52px; gap:12px;
  align-items:center; padding:11px 16px; border-bottom:1px solid var(--line-2);
  text-decoration:none; color:inherit; transition:background .12s;
}
.mt-row:last-child{ border-bottom:none; }
.mt-row:hover{ background:#FAFDFE; }
.mt-date{ text-align:center; }
.mt-date strong{ display:block; font-size:13px; font-weight:650; color:var(--text); }
.mt-date span{ font-size:10.5px; color:var(--faint); }
.mt-t{ display:flex; align-items:center; gap:8px; font-size:13px; font-weight:600; color:var(--text); }
.mt-sub{ margin-top:2px; font-size:11.5px; color:var(--muted); }
.mt-uns{ margin-top:3px; font-size:11.5px; color:#B4590C; }
.mt-pct{ text-align:right; font-size:13px; font-weight:650; color:var(--brand); font-variant-numeric:tabular-nums; }

@media screen and (max-width:1180px){
  .mon-cols{ grid-template-columns:minmax(0,1.1fr) minmax(124px,1fr) minmax(124px,1fr) 70px 20px; }
  .gap-row{ grid-template-columns:minmax(0,1fr) 160px 150px; }
}
@media screen and (max-width:980px){
  .list-head.mon-cols{ display:none; }
  .mon-row{
    grid-template-columns:minmax(0,1fr) auto; gap:9px 12px;
    padding:12px 14px; align-items:start;
  }
  .mon-row > .mon-ship{ grid-column:1; grid-row:1; }
  .mon-row > .mon-cell:nth-child(2){ grid-column:1 / -1; grid-row:2; }
  .mon-row > .mon-cell:nth-child(3){ grid-column:1 / -1; grid-row:3; }
  .mon-row > div:nth-child(4){ grid-column:2; grid-row:1; justify-self:end; }
  .mon-row > .mon-chev{ display:none; }
  .mon-sub{ white-space:normal; }
  .gap-row{ grid-template-columns:minmax(0,1fr) auto; gap:8px 12px; }
  .gap-bar{ grid-column:1 / -1; grid-row:2; }
  .gap-bar .mon-bar{ max-width:none; }
  .gap-pct{ margin-top:4px; }
  .gap-flag{ grid-column:2; grid-row:1; justify-content:flex-end; }
  .mg-row{ grid-template-columns:minmax(0,1fr) 104px; }
  .mg-last{ display:none; }
  .mt-row{ grid-template-columns:50px minmax(0,1fr) 46px; gap:10px; padding:10px 14px; }
}
@media screen and (max-width:760px){
  .mg-row{ padding:9px 14px; }
  .mg-head{ padding:8px 14px; }
  .mt-t{ flex-wrap:wrap; gap:4px 8px; }
  .mt-t .pill{ margin-left:0; }
}

.mon-note{
  display:flex; align-items:flex-start; gap:9px;
  padding:11px 14px; margin-bottom:14px; border-radius:var(--r);
  background:var(--warn-soft); border:1px solid #F0DCB8;
  font-size:12.5px; line-height:1.7; color:#7C4E06;
}
.mon-note svg{ width:16px; height:16px; flex:0 0 auto; margin-top:2px; color:#C77700; }
.mon-note b{ font-weight:650; }

.mon-lb{ display:none; font-style:normal; font-size:11px; color:var(--faint); margin-right:2px; }
@media screen and (max-width:980px){
  .mon-lb{ display:inline; }
  .mon-row{ gap:7px 12px; }
  .mon-num{ margin-top:5px; }
}

.di-crew{
  font-style:normal; font-size:9.5px; font-weight:600; color:#2C6E86;
  background:#E8F3F7; border:1px solid #CFE6EE; border-radius:5px; padding:0 5px;
}
.di-dots .dd.more{
  width:auto; min-width:16px; padding:0 3px; border-radius:4px;
  background:#E4EDF1; color:#5B7382; font-size:9px; font-weight:600;
  line-height:12px; text-align:center;
}

.dv-cg{ border-bottom:1px solid var(--line-2); }
.dv-cg:last-child{ border-bottom:0; }
.dv-cg-hd{
  display:grid; grid-template-columns:30px minmax(0,auto) auto auto minmax(60px,1fr) 18px;
  align-items:center; gap:12px; padding:11px 16px; cursor:pointer; list-style:none;
  background:#FAFCFD; transition:background .12s;
}
.dv-cg-hd::-webkit-details-marker{ display:none; }
.dv-cg-hd:hover{ background:#F5FAFC; }
.dv-cg-nm{ font-size:13px; font-weight:640; color:var(--text); white-space:nowrap; }
.dv-cg-num{ font-size:11.5px; color:var(--muted); font-variant-numeric:tabular-nums; white-space:nowrap; }
.dv-cg-bar{ height:5px; border-radius:99px; background:#E9F0F4; overflow:hidden; }
.dv-cg-bar i{ display:block; height:100%; border-radius:99px; background:#8FC8D8; }
.dv-cg-chev{ display:grid; place-items:center; color:var(--faint); transition:transform .16s; }
.dv-cg-chev svg{ width:14px; height:14px; }
.dv-cg[open] > .dv-cg-hd{ background:#F2F9FB; border-bottom:1px solid var(--line-2); }
.dv-cg[open] > .dv-cg-hd .dv-cg-chev{ transform:rotate(90deg); }

.dv-av{
  display:grid; place-items:center; width:30px; height:30px; border-radius:50%;
  background:linear-gradient(140deg,#DDEDF3,#EAF5F8); color:#2F6C82;
  font-size:12.5px; font-weight:650;
}
.dv-row.dv-crew{ grid-template-columns:30px minmax(0,1fr) auto auto; }
.dv-row.dv-crew.is-miss .dv-av{ background:#F5F0E4; color:#9A6B12; }
.dv-row.dv-crew.is-miss .dv-name{ color:var(--text-2); }

.mg-tag{
  margin-left:6px; font-style:normal; font-size:9.5px; font-weight:600; color:#2C6E86;
  background:#E8F3F7; border:1px solid #CFE6EE; border-radius:5px; padding:0 5px;
  vertical-align:1px;
}
.mg-miss{
  margin-top:3px; font-size:11.5px; line-height:1.6; color:#B4590C;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.mg-crew .mg-nm{ display:block; }
.mg-note{
  padding:10px 16px; font-size:11.5px; line-height:1.7; color:var(--muted);
  background:#FAFCFD; border-bottom:1px solid var(--line-2);
}
.mg-note b{ font-weight:650; color:var(--text-2); }

.mon-note.info{
  background:var(--brand-soft); border-color:#CFE6EE; color:#1F5568;
}
.mon-note.info svg{ color:var(--brand-600); }

@media screen and (max-width:980px){
  .dv-cg-hd{ grid-template-columns:26px minmax(0,1fr) auto 16px; gap:8px 10px; padding:10px 13px; }
  .dv-cg-nm{ grid-column:2; }
  .dv-cg-bar{ display:none; }
  .dv-cg-num{ grid-column:2; grid-row:2; font-size:11px; }
  .dv-cg-hd > .pill{ grid-column:3; grid-row:1; }
  .dv-cg-chev{ grid-column:4; grid-row:1 / span 2; align-self:center; }
  .dv-row.dv-crew{ grid-template-columns:26px minmax(0,1fr) auto auto; gap:8px; }
  .dv-row.dv-crew .cert-att,
  .dv-row.dv-crew .att-pair{ grid-column:auto; justify-self:end; }

  .dv-row.dv-crew .cert-att span,
  .dv-row.dv-crew .att-pair .cert-att span{ display:none; }
  .dv-row.dv-crew .cert-att{ padding:0 9px; }
}
@media screen and (max-width:760px){
  .dv-cg-nm{ white-space:normal; }
  .mg-crew .mg-last{ display:none; }
}

.mg-link{ color:inherit; text-decoration:none; border-bottom:1px solid transparent; }
.mg-link:hover{ color:var(--brand-600); border-bottom-color:#BFDDE8; }

.di-crewbar{
  width:112px; height:5px; border-radius:99px; background:#E9F0F4; overflow:hidden;
}
.di-crewbar i{ display:block; height:100%; border-radius:99px; background:var(--ok); transition:width .3s; }
@media (max-width:980px){
  .di-crewbar{ width:88px; height:4px; }
}

.ext-tip.info{
  color:#1F5568; background:var(--brand-soft);
  border:1px solid var(--brand-line); margin-top:0; margin-bottom:14px;
}
.ext-tip.info svg{ color:var(--brand-600); }

.dv-legacy{ background:#FCFDFE; }
.dv-legacy .dv-av{ background:#EEF2F5; color:#6B8290; font-size:11px; }
.dv-legacy .dv-name{ color:var(--text-2); }

.lf-code{ display:flex; gap:8px; }
.lf-code input{ flex:1 1 auto; min-width:0; }
.lf-send{
  flex:0 0 auto; height:44px; padding:0 13px; border-radius:10px;
  border:1px solid var(--brand-line); background:var(--brand-soft); color:var(--brand-600);
  font-size:12.5px; font-weight:620; font-family:inherit; cursor:pointer;
  white-space:nowrap; transition:.15s;
}
.lf-send:hover:not(:disabled){ background:#E2EFF6; }
.lf-send:disabled{ opacity:.6; cursor:default; }

.lf-pwd{ position:relative; }
.lf-pwd input{ width:100%; padding-right:44px; }
.lf-eye{
  position:absolute; right:5px; top:50%; transform:translateY(-50%);
  width:32px; height:32px; padding:0; border:none; border-radius:8px;
  display:grid; place-items:center; background:transparent; color:var(--muted);
  cursor:pointer; transition:color .15s, background .15s;
}
.lf-eye:hover{ color:var(--brand-600); background:var(--brand-soft); }
.lf-eye:focus-visible{ outline:2px solid var(--brand-line); outline-offset:1px; }
.lf-eye svg{
  width:18px; height:18px; fill:none; stroke:currentColor;
  stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round;
}
.lf-eye .eye-off{ display:none; }
.lf-eye.is-on .eye-on{ display:none; }
.lf-eye.is-on .eye-off{ display:block; }

.lf-pwd input::-ms-reveal,
.lf-pwd input::-ms-clear{ display:none; }
.lf-links{ display:flex; justify-content:space-between; gap:10px; margin-top:11px; flex-wrap:wrap; }
.lf-link{
  border:none; background:none; padding:2px 0; cursor:pointer; font:inherit;
  font-size:12.2px; color:var(--muted); text-decoration:underline; text-underline-offset:3px;
}
.lf-link:hover{ color:var(--brand-600); }

.lg-wait{ text-align:center; padding:6px 2px 4px; }
.lg-wait-ico{
  display:inline-grid; place-items:center; width:46px; height:46px; border-radius:50%;
  background:var(--warn-soft); color:#C77700; margin-bottom:11px;
}
.lg-wait-ico svg{ width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; }
.lg-wait strong{ display:block; font-size:15px; font-weight:650; color:var(--text); margin-bottom:7px; }
.lg-wait-txt{ font-size:12.5px; color:var(--text-2); margin-bottom:4px; }
.lg-wait-note{ font-size:11.5px; line-height:1.8; color:var(--muted); }

.lg-guide{ text-align:center; padding:6px 2px 2px; }
.lg-guide-ico{
  display:inline-grid; place-items:center; width:46px; height:46px; border-radius:50%;
  background:var(--warn-soft); color:#C77700; margin-bottom:11px;
}
.lg-guide-ico svg{ width:25px; height:25px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.lg-guide strong{ display:block; font-size:15px; font-weight:650; color:var(--text); margin-bottom:8px; }
.lg-guide-txt{
  font-size:12.5px; line-height:1.75; color:var(--text-2); text-align:left;
  background:#F6F9FA; border:1px solid var(--line-2); border-radius:9px;
  padding:10px 12px; margin-bottom:12px;
}
.lg-guide-steps{
  text-align:left; margin:0 0 15px; padding-left:19px;
  font-size:12.5px; line-height:2; color:var(--text-2);
}
.lg-guide-steps li{ padding-left:2px; }
.lg-guide-steps li::marker{ color:var(--brand, #0F6E8C); font-weight:650; }
.lg-guide-hint{ font-size:11.5px; color:var(--muted); line-height:1.7; margin:-6px 0 10px; text-align:center; }
.lg-guide-hint:empty{ display:none; }
.lg-guide a.login-btn{
  display:flex; align-items:center; text-decoration:none; box-sizing:border-box;
}
.lg-guide button.btn.ghost{ width:100%; height:38px; justify-content:center; margin-top:9px; font-size:13px; }
.lg-guide [hidden]{ display:none !important; }

.acct-val{ height:38px; display:flex; align-items:center; gap:8px; font-size:13px; color:var(--text-2); }
.acct-login{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12.5px;
  padding:2px 7px; border-radius:6px; background:var(--brand-soft); color:var(--brand-600);
}
.acct-warn{ color:#B4590C; font-size:12.5px; }
.acct-note{
  margin-top:12px; padding:10px 12px; border-radius:10px;
  background:#F6FAFC; border:1px solid var(--line-2);
  font-size:11.5px; line-height:1.75; color:var(--muted);
}

.pf-head{ display:flex; align-items:center; gap:8px; margin-bottom:12px; }
.pf-head b{ font-size:12.5px; font-weight:600; color:var(--text); letter-spacing:.02em; }
.pf-head::before{ content:""; width:3px; height:12px; border-radius:2px; background:var(--brand); }
.pf-block{ margin-top:18px; padding-top:16px; border-top:1px dashed var(--line-2); }
.pf-block .pf-head{ margin-bottom:12px; }

.fam-block{ margin-top:14px; padding-top:12px; border-top:1px solid var(--line-2); }
.fam-head{ display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.fam-head b{ font-size:13px; font-weight:600; color:var(--text); }
.fam-block .acct-note{ margin-top:0; }
.fam-tbl th, .fam-tbl td{ padding-top:7px; padding-bottom:7px; }

.logout-btn{
  width:100%; margin-top:16px; padding:12px 16px;
  display:flex; align-items:center; justify-content:center; gap:8px;
  border:none; border-radius:11px; cursor:pointer;
  background:#C93B3B; color:#fff;
  font-size:15px; font-weight:650; letter-spacing:.5px;
  box-shadow:0 2px 8px rgba(201,59,59,.28);
  transition:background .15s, transform .1s;
}
.logout-btn svg{ width:18px; height:18px; }
.logout-btn:hover{ background:#B23333; }
.logout-btn:active{ transform:translateY(1px); }

.invite-box{ padding:2px 0; }
.iv-lead{ font-size:13px; line-height:1.78; color:var(--text-2); margin-bottom:10px; }
.iv-steps{ margin:0 0 12px; padding-left:20px; font-size:12.5px; line-height:1.95; color:var(--text-2); }
.iv-steps li{ margin-bottom:1px; }
.iv-steps b{ font-weight:650; color:var(--text); }
.iv-url{
  display:flex; align-items:center; gap:9px; padding:10px 12px; border-radius:10px;
  background:#F1F7FA; border:1px solid var(--brand-line);
}
.iv-url code{ flex:1 1 auto; min-width:0; font-size:12px; color:var(--brand-600); word-break:break-all; }
.iv-url.warn{
  background:var(--warn-soft); border-color:#F0DCB8;
  font-size:12px; line-height:1.7; color:#7C4E06;
}
.iv-note{ margin-top:10px; font-size:11.5px; color:var(--muted); }

@media screen and (max-width:480px){
  .lf-send{ padding:0 10px; font-size:12px; }
  .iv-steps{ font-size:12px; line-height:1.85; }
}

.lf-tip{
  display:block; text-align:center; font-size:12px; line-height:1.6;
  color:#8695A3; margin-top:4px;
}
.login-pane[data-pane="setup"] .login-sub{ margin-bottom:14px; }

.ob-root{
  position:fixed; inset:0; z-index:96; overflow-y:auto;
  background:linear-gradient(160deg,#0d2c46 0%,#123a5c 55%,#0e3252 100%);
  display:flex; align-items:flex-start; justify-content:center; padding:28px 14px 40px;
}
.ob-card{
  width:100%; max-width:560px; background:#fff; border-radius:16px;
  box-shadow:0 24px 60px rgba(6,26,44,.4); padding:26px 24px 22px;
}
.ob-head strong{ display:block; font-size:19px; font-weight:700; color:var(--text,#16283a); }
.ob-head p{ margin:6px 0 0; font-size:13px; line-height:1.65; color:#5b6b7a; }
.ob-step-t{
  margin:20px 0 10px; font-size:13.5px; font-weight:650; color:var(--text,#16283a);
  padding-left:9px; border-left:3px solid var(--brand,#1a6fb5); line-height:1.4;
}
.ob-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.ob-tile{
  position:relative; border:1.5px dashed #b9c6d2; border-radius:12px;
  padding:12px 10px 10px; text-align:center; cursor:pointer; transition:.15s;
  background:#f8fafc;
}
.ob-tile:hover{ border-color:var(--brand,#1a6fb5); background:#f2f7fb; }
.ob-tile.done{ border-style:solid; border-color:#4caf7d; background:#f4fbf7; }
.ob-tile input[type=file]{ position:absolute; left:-9999px; }
.ob-ico{ display:block; margin:0 auto 4px; color:#8fa2b3; }
.ob-tile.done .ob-ico{ color:#4caf7d; }
.ob-ico svg{ width:26px; height:26px; }
.ob-tile b{ display:block; font-size:13.5px; font-weight:650; color:var(--text,#16283a); }
.ob-st{ display:block; font-size:11.5px; color:#8695a3; margin-top:2px; }
.ob-tile.done .ob-st{ color:#3d9e6e; font-weight:600; }
.ob-thumb-wrap{ display:block; margin:0 0 7px; }
.ob-thumb{
  display:block; width:100%; height:74px; margin:0 auto;
  border-radius:8px; object-fit:cover; border:1px solid #dbe5ee; background:#eef3f8;
}
.ob-thumb[hidden]{ display:none !important; }

.ob-thumb-pdf{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
  height:62px; border:1px solid #d7e2ee; border-radius:8px; background:#f2f7fc;
  text-decoration:none; overflow:hidden; padding:4px;
}
.ob-thumb-pdf b{
  font-size:11px; letter-spacing:.6px; color:#b3402f; background:#fdeceb;
  border:1px solid #f3c9c4; border-radius:4px; padding:0 4px; line-height:1.5;
}
.ob-thumb-pdf em{
  font-style:normal; font-size:10px; color:#5b6b7a; max-width:100%;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.ob-thumb-pdf:hover{ border-color:var(--brand,#1a6fb5); background:#eaf3fc; }
.ob-redo{
  position:absolute; top:6px; right:6px; width:24px; height:24px; border-radius:50%;
  border:none; background:rgba(22,40,58,.55); color:#fff; font-size:13px; line-height:1;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.ob-fam-row{
  display:grid; grid-template-columns:1.1fr 1.3fr 1.2fr 30px; gap:7px; margin-bottom:8px;
}
.ob-fi{
  height:40px; border:1px solid var(--line-2,#d5dde5); border-radius:10px; padding:0 10px;
  font-size:13.5px; font-family:inherit; color:var(--text,#16283a); min-width:0; background:#fff;
}
.ob-fi:focus{ outline:none; border-color:var(--brand,#1a6fb5); }
.ob-fam-del{
  border:none; background:#f1f4f7; color:#8a97a5; border-radius:9px; font-size:17px;
  cursor:pointer; line-height:1;
}
.ob-fam-del:hover{ background:#fdeaea; color:#d64545; }
.ob-add{
  display:block; width:100%; height:38px; margin-top:2px; border:1.5px dashed #b9c6d2;
  border-radius:10px; background:none; color:#5b6b7a; font-size:13px; font-weight:600;
  font-family:inherit; cursor:pointer;
}
.ob-add:hover{ border-color:var(--brand,#1a6fb5); color:var(--brand,#1a6fb5); }
.ob-root .lf-err{ color:#d64545; font-size:12.5px; min-height:16px; margin:10px 0 4px; text-align:center; }
.ob-root .login-btn{ width:100%; height:46px; font-size:15px; }
.ob-foot{
  display:flex; justify-content:space-between; align-items:center; gap:10px;
  margin-top:12px; font-size:11.5px; color:#8695a3;
}
.ob-foot .lf-link{ background:none; border:none; color:var(--brand,#1a6fb5); font-size:12px; cursor:pointer; padding:0; }
@media (max-width:480px){
  .ob-root{ padding:16px 10px 30px; }
  .ob-card{ padding:20px 14px 16px; }
  .ob-grid{ gap:8px; }
  .ob-fam-row{ grid-template-columns:1fr 1fr; }
  .ob-fam-row .ob-fi[data-f=phone]{ grid-column:1 / 2; }
  .ob-fam-row .ob-fam-del{ grid-column:2 / 3; width:100%; height:34px; }
}
.ob-tile.done .ob-ico{ display:none; }
.ob-redo[hidden]{ display:none !important; }

.ob-meta{
  display:flex; align-items:center; flex-wrap:wrap; gap:5px 8px;
  margin:0 0 7px; padding:6px 7px; border-radius:8px;
  background:#eef4fa; border:1px solid #dbe7f2; text-align:left;
}
.ob-meta[hidden]{ display:none !important; }
.ob-tag{
  font-size:10.5px; font-weight:650; line-height:1.6; padding:0 6px; border-radius:20px;
  color:#4a6580; background:#dceaf7; white-space:nowrap;
}
.ob-tag.ok{ color:#1d6a45; background:#dcf1e5; }
.ob-tag.warn{ color:#94601a; background:#fbeed6; }
.ob-tag.manual{ color:#1d4f7a; background:#dbe9f7; }

.ob-save{ font-size:10.5px; color:#7a8b9b; white-space:nowrap; }
.ob-save.ok{ color:#2f8f5b; font-weight:600; }
.ob-save.bad{ color:#d93b3b; font-weight:600; }
.ob-mf{
  display:inline-flex; align-items:center; gap:4px;
  font-size:11px; color:#5b6b7a; white-space:nowrap;
}
.ob-mf input[type=date]{
  height:26px; border:1px solid #cfdce8; border-radius:6px; padding:0 4px;
  font-size:11.5px; font-family:inherit; color:var(--text,#16283a); background:#fff; min-width:0;
}
.ob-mf input[type=date]:focus{ outline:none; border-color:var(--brand,#1a6fb5); }

.ob-mf-no input[type=text]{
  height:26px; width:112px; border:1px solid #cfdce8; border-radius:6px; padding:0 6px;
  font-size:11.5px; font-family:inherit; color:var(--text,#16283a); background:#fff;
  letter-spacing:.2px;
}
.ob-mf-no input[type=text]:focus{ outline:none; border-color:var(--brand,#1a6fb5); }
.ob-mf-no input[type=text]::placeholder{ color:#a9b8c6; letter-spacing:0; }
.ob-mlink{
  margin-left:auto; border:none; background:none; padding:0;
  color:var(--brand,#1a6fb5); font-size:11px; cursor:pointer; text-decoration:underline;
}
.ob-mlink:disabled{ color:#9fb0c0; cursor:default; text-decoration:none; }

.ob-note{ font-size:10.5px; color:#7a8b9b; }

.ob-mf.ob-age{ display:inline-flex; align-items:center; gap:5px; }
.ob-mf.ob-age em{ font-style:normal; font-size:11px; color:#5b6b7a; }
.ob-mf.ob-age b{ font-size:13px; font-weight:600; color:#16283a; min-width:34px; }

.ob-mf.ob-lt{ cursor:pointer; }
.ob-mf.ob-lt b{ color:#1f7a4d; }
.ob-mf.ob-lt:hover b{ text-decoration:underline dotted; }
.ob-mf.ob-lt:focus{ outline:none; }
.ob-mf.ob-lt:focus-visible{ outline:2px solid var(--brand,#1a6fb5); outline-offset:2px; border-radius:4px; }

.ob-tile[data-kind=idcard] .ob-mf-no input[type=text]{ width:154px; letter-spacing:.4px; }
@media (max-width:480px){
  .ob-tile[data-kind=idcard] .ob-mf-no input[type=text]{ width:126px; }
}

.ob-tile-hd b em.ob-tile-hint{
  font-style:normal; font-weight:500; font-size:10px; color:#8695a3; margin-left:4px; white-space:nowrap;
}

.ob-tile[data-kind=idcard]{ grid-column:1 / -1; }
.ob-idinfo{
  flex-basis:100%; display:grid; grid-template-columns:repeat(3,minmax(0,1fr));
  gap:5px 8px; margin-top:5px; padding-top:6px; border-top:1px dashed #dbe7f2;
}
.ob-idinfo label{ display:flex; align-items:center; gap:4px; font-size:11px; color:#5b6b7a; white-space:nowrap; }
.ob-idinfo label.wide{ grid-column:span 3; }
.ob-idinfo input{
  flex:1; min-width:0; height:25px; border:1px solid #cfdce8; border-radius:6px;
  padding:0 6px; font-size:11.5px; font-family:inherit; color:var(--text,#16283a); background:#fff;
}
.ob-idinfo input:focus{ outline:none; border-color:var(--brand,#1a6fb5); }
@media (max-width:480px){
  .ob-meta{ gap:4px 6px; }
  .ob-mf .dt-box{ width:112px; }
  .ob-mf-no input[type=text]{ width:100px; }
  .ob-idinfo{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ob-idinfo label.wide{ grid-column:span 2; }
  .ob-idinfo input{ height:28px; font-size:12px; }
}

.ob-tile{ cursor:default; }
.ob-tile-hd{ display:flex; align-items:baseline; justify-content:space-between; gap:6px; margin-bottom:8px; }
.ob-tile-hd b{ font-size:13px; }
.ob-tile-hd .ob-st{ margin-top:0; }
.ob-thumbs{ display:grid; grid-template-columns:repeat(3,1fr); gap:6px; }
.ob-thumbs.is-empty{ grid-template-columns:1fr; }
.ob-thumb-cell{ position:relative; }
.ob-thumb-cell .ob-thumb{ height:62px; margin:0; }
.ob-page-del{
  position:absolute; top:3px; right:3px; width:20px; height:20px; border-radius:50%;
  border:none; background:rgba(22,40,58,.62); color:#fff; font-size:12px; line-height:1;
  cursor:pointer; display:flex; align-items:center; justify-content:center; padding:0;
}
.ob-page-del:hover{ background:#d64545; }
.ob-addcell{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
  width:100%; height:62px; border:1.5px dashed #b9c6d2; border-radius:8px; background:none;
  color:#8fa2b3; font-size:11.5px; font-weight:600; font-family:inherit; cursor:pointer; padding:0;
}
.ob-addcell:hover{ border-color:var(--brand,#1a6fb5); color:var(--brand,#1a6fb5); }
.ob-addcell svg{ width:20px; height:20px; }
.ob-thumbs.is-empty .ob-addcell{ height:72px; font-size:12.5px; }
@media (max-width:480px){
  .ob-thumbs{ gap:5px; }
}

.mini-btn.warn{ color:#B4761E; border-color:#F0DFC0; background:#FDF8EE; }
.mini-btn.warn:hover{ background:#FBF1DE; border-color:#E7CFA3; color:#9C6316; }
.ob-view-head{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
.ob-view-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.ob-view-cell{ margin:0; border:1px solid #e3eaf1; border-radius:10px; overflow:hidden; background:#f8fafc; }
.ob-view-cell img{ display:block; width:100%; height:112px; object-fit:cover; background:#eef3f8; }
.ob-view-cell.empty{ border-style:dashed; }
.ob-view-ph{ display:flex; align-items:center; justify-content:center; height:112px; color:#a9b6c2; font-size:12px; }
.ob-view-cell figcaption{ padding:6px 8px; font-size:12px; color:#5b6b7a; text-align:center; border-top:1px solid #eef2f6; }
.ob-view-meta{ margin-top:3px; font-size:10.5px; color:#4a6580; }
.ob-view-meta.none{ color:#a9b6c2; }
.ob-view-src{ margin-left:4px; padding:0 4px; border-radius:4px; background:#e6f4ec; color:#3f7a5c; font-size:9.5px; }
.ob-view-src.manual{ background:#e3eefb; color:#2a6ea8; }

.ob-pages{ display:grid; grid-template-columns:repeat(3,1fr); gap:4px; padding:5px; }
.ob-pages a{ display:block; min-width:0; }

.ob-ph{
  display:block; min-width:0; width:100%; padding:0; border:0; background:none;
  cursor:pointer; border-radius:6px; overflow:hidden;
}
.ob-ph:focus-visible{ outline:2px solid var(--brand); outline-offset:1px; }
.ob-pages img{
  display:block; width:100%; height:70px; object-fit:cover;
  border-radius:6px; background:#eef3f8; border:1px solid #e3eaf1;
}

img[data-guard]{
  -webkit-user-drag:none; user-select:none; -webkit-user-select:none;
  -webkit-touch-callout:none; pointer-events:auto;
}

.ob-pdfbox{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
  height:70px; border-radius:6px; background:#f5f9fd; border:1px solid #dbe6f1; overflow:hidden;
}
.ob-pdfbox b{ font-size:10.5px; letter-spacing:.5px; color:#b3402f; background:#fdeceb; border:1px solid #f3c9c4; border-radius:4px; padding:0 4px; line-height:1.5; }
.ob-pdfbox em{ font-style:normal; font-size:9.5px; color:#5b6b7a; max-width:92%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media (max-width:600px){ .ob-pages{ grid-template-columns:repeat(2,1fr); } }
.ob-view-t{ margin:18px 0 8px; font-size:13.5px; font-weight:650; color:var(--text,#16283a); }
@media (max-width:600px){ .ob-view-grid{ grid-template-columns:repeat(2,1fr); } }

.crew-group{ margin-bottom:12px; }
.crew-group:last-child{ margin-bottom:0; }
.crew-g-hd{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  width:100%; text-align:left; font:inherit; cursor:pointer;
  padding:10px 14px;
  background:#fff; border:1px solid var(--line); border-bottom:0;
  border-radius:var(--r-lg) var(--r-lg) 0 0;
  transition:background .16s, border-color .16s;
}
.crew-g-hd:hover{ background:#F7FAFD; }
.crew-g-hd:focus-visible{ outline:2px solid var(--info,#2E7CB8); outline-offset:-2px; }
.crew-g-ico{ display:inline-flex; color:var(--muted,#7b8ca0); }
.crew-g-ico svg{ width:17px; height:17px; }
.crew-g-hd strong{ font-size:14.5px; color:var(--text,#16283a); }
.crew-g-hd .count-chip b{ font-weight:650; }
.crew-g-meta{ font-size:12px; color:var(--muted,#7b8ca0); }
.crew-g-chev{
  margin-left:auto; display:inline-flex; align-items:center;
  color:var(--faint); transition:transform .2s ease;
}
.crew-g-chev svg{ width:16px; height:16px; }
.crew-group.open .crew-g-chev{ transform:rotate(90deg); }
.crew-group .list{ border-radius:0 0 var(--r-lg) var(--r-lg); }
.crew-group:not(.open) .crew-g-hd{
  border-bottom:1px solid var(--line);
  border-radius:var(--r-lg);
}
@media (max-width:600px){
  .crew-g-hd{ padding:9px 12px; gap:8px; }
  .crew-g-meta{ font-size:11.5px; }
}

.pos-sec-t{
  display:flex; align-items:baseline; gap:8px; flex-wrap:wrap;
  margin:18px 0 8px; font-size:13px; font-weight:650; color:var(--text);
}
.pos-sec-t em{ font-style:normal; font-weight:400; font-size:11.5px; color:var(--muted,#7b8ca0); }
.pos-matrix{
  display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:8px;
  padding:10px; background:#F7FAFD; border:1px solid var(--line); border-radius:12px;
}
.pos-cell{
  display:flex; align-items:center; gap:10px;
  padding:8px 10px; background:#fff; border:1px solid var(--line); border-radius:10px;
}
.pos-cell-t{ min-width:0; flex:1; }
.pos-cell-t strong{ display:block; font-size:13px; color:var(--text); font-weight:600; }
.pos-cell-t span{ display:block; font-size:11px; color:var(--muted,#7b8ca0); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pos-cell select{
  flex:0 0 auto; min-width:86px; padding:5px 6px; font-size:12.5px; font-family:inherit;
  color:var(--text); background:#fff; border:1px solid var(--line); border-radius:8px;
}
@media (max-width:640px){
  .pos-matrix{ grid-template-columns:1fr; }
}

.pos-gone{
  margin:14px 16px 4px;
  padding:12px 14px;
  background:var(--bg,#f6f8fb);
  border:1px dashed var(--line,#e2e8f0);
  border-radius:12px;
}
.pos-gone-hd{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:9px; }
.pos-gone-hd svg{ width:15px; height:15px; color:#8b9bb0; flex:none; }
.pos-gone-hd strong{ font-size:13px; color:#4a5b6e; }
.pos-gone-hd span{ font-size:12px; color:#8b9bb0; }
.pos-gone-list{ display:flex; flex-wrap:wrap; gap:8px; }
.pos-gone-chip{
  display:inline-flex; align-items:center; gap:6px;
  padding:4px 6px 4px 11px;
  background:#fff; border:1px solid var(--line,#e2e8f0); border-radius:999px;
  font-size:12.5px; color:#5d6f83;
  text-decoration:line-through;
}
.pos-gone-chip button{ text-decoration:none; }
@media (max-width:600px){
  .pos-gone{ margin:12px 12px 4px; padding:11px 12px; }
}

.obx-list{ display:flex; flex-direction:column; gap:10px; }
.obx-row{
  border:1px solid var(--line); border-radius:11px; padding:11px 12px; background:#fff;
  transition:border-color .15s, background .15s;
}
.obx-row.has{ border-color:var(--brand-line); background:#FBFEFF; }
.obx-rowhead{ display:flex; align-items:center; gap:10px; }
.obx-rowhead b{ font-size:13px; font-weight:650; color:var(--text); flex:none; }
.obx-file{
  font-size:11.5px; color:var(--muted); min-width:0;
  max-width:300px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.obx-pick{ flex:none; }
.obx-picks{ margin-left:auto; flex:none; display:flex; align-items:center; gap:6px; }
.obx-picks .mini-btn{ cursor:pointer; white-space:nowrap; }
.obx-pick-back{ z-index:260; }
.obx-pick-list{ display:flex; flex-direction:column; gap:8px; max-height:52vh; overflow:auto; }
.obx-pick-row{
  display:flex; align-items:center; gap:11px; width:100%; text-align:left;
  padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:#fff;
  cursor:pointer; transition:border-color .15s, background .15s;
}
.obx-pick-row:hover{ border-color:var(--brand-line); background:#FBFEFF; }
.obx-pick-ico{
  width:38px; height:38px; flex:none; border-radius:9px; display:grid; place-items:center;
  font-size:10px; font-weight:700; letter-spacing:.04em; color:var(--brand-600); background:var(--brand-soft);
}
.obx-pick-main{ min-width:0; flex:1; display:flex; flex-direction:column; gap:3px; }
.obx-pick-main b{ font-size:12.5px; font-weight:600; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.obx-pick-main em{ font-style:normal; font-size:11px; color:var(--faint); }
.obx-pick-go{ flex:none; font-size:11.5px; color:var(--brand-600); }
.obx-pick .mini-btn{ cursor:pointer; }
.obx-idle{ margin-top:8px; font-size:11.5px; color:var(--faint); line-height:1.7; }
.obx-idle.busy{ color:var(--brand-600); }
.obx-body{ margin-top:10px; }
.obx-fields{ display:grid; grid-template-columns:repeat(auto-fill,minmax(136px,1fr)); gap:8px 10px; margin-bottom:8px; }
.obx-f{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.obx-f span{ font-size:10.5px; color:var(--muted); letter-spacing:.02em; }
.obx-f input{
  height:30px; padding:0 8px; border:1px solid var(--line); border-radius:7px;
  font-size:12.5px; font-family:inherit; color:var(--text); background:#fff; min-width:0;
}
.obx-f input:focus{ outline:none; border-color:var(--brand); box-shadow:0 0 0 3px rgba(14,116,144,.1); }
.obx-lt{ display:inline-flex; align-items:center; gap:6px; font-size:11.5px; color:var(--text-2); cursor:pointer; }

.cert-ocr-strip{
  display:flex; gap:10px; align-items:center; flex-wrap:wrap;
  padding:10px 12px; margin-bottom:14px;
  border:1px dashed #CFE0E8; border-radius:var(--r); background:#F7FAFB;
}
.cert-ocr-pick{ display:inline-flex; flex:0 0 auto; }
.cert-ocr-pick input[type=file]{ display:none; }
.cert-ocr-hint{ font-size:12px; color:var(--muted); line-height:1.6; flex:1; min-width:180px; }
.cert-ocr-hint.ok{ color:#0A7F58; }
.cert-ocr-hint.bad{ color:var(--danger); }
.cert-ocr-hint.busy{ color:var(--brand-600); }

.cert-ocr-meta{
  display:flex; gap:8px; align-items:center; flex-wrap:wrap;
  margin:-4px 0 12px;
}
.cert-ocr-meta .btn.sm{ padding:4px 9px; }
.ocr-conf{ font-size:11.5px; padding:3px 9px; border-radius:999px; background:#F1F5F8; color:var(--muted); }
.ocr-conf.ok{ background:#E8F6F0; color:#0A7F58; }
.ocr-conf.warn{ background:#FDF3E3; color:#9A6412; }
.ocr-conf.bad{ background:#FDECEC; color:#B92F2F; }
.cert-ocr-text{
  margin:-2px 0 14px; padding:10px 12px; max-height:190px; overflow:auto;
  background:#FBFCFD; border:1px solid var(--line-2); border-radius:10px;
  font-size:11.5px; line-height:1.75; color:var(--text-2); white-space:pre-wrap; word-break:break-all;
  font-family:ui-monospace,Consolas,"Courier New",monospace;
}

.fgrid input.ocr-filled, .fgrid select.ocr-filled{
  border-color:var(--brand-400, #7FB6C8);
  background:#F6FBFD;
  box-shadow:0 0 0 2px rgba(45,120,140,.08) inset;
}

.dt-box{ display:flex; gap:6px; }
.field .dt-box .dt-input{ flex:1; min-width:0; font-variant-numeric:tabular-nums; letter-spacing:.01em; }
.field .dt-box .dt-input.dt-bad{ border-color:var(--danger); box-shadow:0 0 0 3px rgba(217,59,59,.1); }

.dt-input.dt-just{
  border-color:var(--brand) !important;
  box-shadow:0 0 0 3px rgba(26,111,181,.14) !important;
  transition:border-color .12s, box-shadow .12s;
}
.dt-cal{
  flex:0 0 auto; width:38px; height:38px; display:grid; place-items:center;
  border:1px solid var(--line); border-radius:9px; background:#fff; color:var(--brand);
  cursor:pointer; transition:.14s;
}
.dt-cal svg{ width:18px; height:18px; }
.dt-cal:hover{ border-color:var(--brand-line); background:var(--brand-soft); }
.dt-quick{ display:flex; flex-wrap:wrap; gap:5px; margin-top:6px; }

.dt-today{
  flex:0 0 auto; height:38px; padding:0 9px; border:1px solid var(--line); border-radius:9px;
  background:#fff; color:var(--text-2); font-size:12px; font-family:inherit; cursor:pointer;
  transition:.12s;
}
.dt-today:hover{ border-color:var(--brand-line); background:var(--brand-soft); color:var(--brand-600); }
.dt-chip{
  border:1px solid var(--line); background:#fff; color:var(--text-2);
  font-size:11.5px; line-height:1; padding:5px 8px; border-radius:7px;
  cursor:pointer; font-family:inherit; transition:.12s;
}
.dt-chip:hover{ border-color:var(--brand-line); background:var(--brand-soft); color:var(--brand-600); }
.dt-sum{ font-size:11px; color:var(--faint); margin-top:5px; line-height:1.5; min-height:15px; }

.ob-meta .dt-sum.ob-mf-sum{ flex:1 0 100%; font-size:10.5px; margin:1px 0 0; min-height:0; }
.dt-sum.ok{ color:#0A7F58; }
.dt-sum.warn{ color:var(--warn); }
.dt-sum.bad{ color:var(--danger); }

.obx-f .dt-box, .ob-idinfo .dt-box, .ob-mf .dt-box{ gap:4px; flex:1; min-width:0; }
.obx-f .dt-input, .ob-idinfo .dt-input, .ob-mf .dt-input{ flex:1; min-width:0; }
.obx-f .dt-cal{ width:30px; height:30px; border-radius:7px; }
.obx-f .dt-cal svg{ width:14px; height:14px; }
.ob-idinfo .dt-cal, .ob-mf .dt-cal{ width:26px; height:26px; border-radius:6px; border-color:#cfdce8; }
.ob-idinfo .dt-cal svg, .ob-mf .dt-cal svg{ width:13px; height:13px; }
.ob-mf .dt-box{ width:128px; flex:none; }
.ob-mf .dt-input{
  height:26px; padding:0 5px; border:1px solid #cfdce8; border-radius:6px;
  font-size:11.5px; font-family:inherit; color:var(--text,#16283a); background:#fff;
}
.ob-mf .dt-input:focus{ outline:none; border-color:var(--brand,#1a6fb5); }
.ob-mf .dt-input.dt-bad{ border-color:#d93b3b; }

.obx-f select, .ob-idinfo select{
  height:30px; padding:0 6px; border:1px solid var(--line); border-radius:7px;
  font-size:12.5px; font-family:inherit; color:var(--text); background:#fff; min-width:0;
}
.obx-f select:focus, .ob-idinfo select:focus{ outline:none; border-color:var(--brand); box-shadow:0 0 0 3px rgba(14,116,144,.1); }
.ob-idinfo select{ flex:1; height:25px; border-color:#cfdce8; border-radius:6px; font-size:11.5px; }

.dt-pop{
  position:fixed; z-index:320; width:252px; padding:10px;
  background:#fff; border:1px solid var(--line); border-radius:var(--r);
  box-shadow:var(--shadow-3); animation:pop .12s ease; font-size:13px;
}
.dtp-hd{ display:flex; align-items:center; gap:6px; margin-bottom:8px; }
.dtp-nav{
  width:26px; height:26px; padding:0; border:1px solid var(--line); background:#fff;
  border-radius:7px; font-size:15px; line-height:1; color:var(--text-2); cursor:pointer;
}
.dtp-nav:hover{ background:var(--brand-soft); border-color:var(--brand-line); color:var(--brand-600); }
.dtp-sel{ flex:1; display:flex; align-items:center; justify-content:center; gap:3px; font-size:12.5px; color:var(--text-2); }
.dtp-sel select{
  height:26px; border:1px solid var(--line); border-radius:6px; font-size:12.5px;
  font-family:inherit; color:var(--text); background:#fff; padding:0 2px; max-width:76px;
}
.dtp-week{ display:grid; grid-template-columns:repeat(7,1fr); gap:2px; margin-bottom:3px; }
.dtp-week span{ text-align:center; font-size:11px; color:var(--faint); }
.dtp-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:2px; }
.dtp-d{
  height:28px; border:none; background:transparent; border-radius:7px; cursor:pointer;
  font-size:12.5px; color:var(--text); font-family:inherit; font-variant-numeric:tabular-nums;
}
.dtp-d:hover{ background:var(--brand-soft); color:var(--brand-600); }
.dtp-d.td{ color:var(--brand); font-weight:700; }
.dtp-d.on{ background:var(--brand); color:#fff; font-weight:700; }
.dtp-blank{ height:28px; }
.dtp-ft{ display:flex; gap:6px; justify-content:flex-end; margin-top:8px; padding-top:8px; border-top:1px solid var(--line-2); }

.cert-files{ display:flex; flex-direction:column; gap:7px; margin:0 0 14px; }
.cf-item{
  display:flex; align-items:center; gap:10px; width:100%; text-align:left;
  padding:7px 10px; border:1px solid var(--brand-line); background:#F7FCFD;
  border-radius:10px; cursor:pointer; font-family:inherit; transition:.14s;
}
.cf-item:hover{ background:var(--brand-soft); box-shadow:0 1px 6px rgba(14,116,144,.12); }
.cf-thumb{
  flex:0 0 auto; width:46px; height:46px; border-radius:8px; overflow:hidden;
  background:#fff; border:1px solid var(--line); display:grid; place-items:center;
}
.cf-thumb img{ width:100%; height:100%; object-fit:contain; object-position:center top; display:block; background:#fff; }
.cf-ico{ display:grid; place-items:center; width:100%; height:100%; font-size:10px; font-weight:700; letter-spacing:.04em; color:var(--muted); }
.cf-ico.pdf{ color:#C2382F; background:#FDECEC; }
.cf-ico.img{ color:#1B6C96; background:#E9F4FB; }
.cf-main{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.cf-main b{ font-size:12.5px; font-weight:640; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cf-main em{ font-style:normal; font-size:11px; color:var(--muted); }
.cf-go{ flex:0 0 auto; display:inline-flex; align-items:center; color:var(--brand); }
.cf-go svg{ width:16px; height:16px; }
.obx-ok{ font-size:11px; color:#0A7F58; margin-left:10px; }
.obx-bad{ font-size:11px; color:#B92F2F; margin-left:10px; }
@media (max-width:600px){
  .obx-file{ max-width:120px; }
  .obx-fields{ grid-template-columns:1fr 1fr; }
}
.obx-conf{ margin-top:6px; }
.obx-conf .obx-ok, .obx-conf .obx-bad{ margin-left:0; }

.co-scope{ font-size:12.5px; color:var(--text-2); line-height:1.85; }
.co-sub{ display:block; font-size:11px; color:var(--faint); font-weight:400; margin-top:2px; line-height:1.6; }
.co-link{ display:block; font-size:11px; color:var(--brand-600); text-decoration:none; margin-top:3px; word-break:break-all; }
.co-link:hover{ text-decoration:underline; }
.co-pw{ letter-spacing:.06em; }
.co-copy{ margin-left:6px; }
.vault-tbl td{ vertical-align:top; }
.vault-tbl .mini-btn{ white-space:nowrap; }

.wm-opts{ display:flex; flex-wrap:wrap; gap:8px 18px; margin-top:12px; }
.wm-opts label.ck{ display:inline-flex; align-items:center; gap:6px; font-size:12.5px; color:var(--text-2); cursor:pointer; }
.wm-opts label.ck input{ width:14px; height:14px; accent-color:var(--brand); }
.wm-preview{
  position:relative; height:170px; overflow:hidden; margin-top:13px;
  border:1px solid var(--line); border-radius:10px;
  background:linear-gradient(180deg,#ffffff,#f6fafc);
}
.wm-preview span{
  position:absolute; display:flex; flex-direction:column; gap:1px;
  transform:rotate(-26deg); transform-origin:left center;
  white-space:nowrap; opacity:var(--wm-o,.12); color:#1f4a5c;
}
.wm-preview span b{ font-size:13px; font-weight:700; letter-spacing:.4px; }
.wm-preview span i{ font-style:normal; font-size:9.5px; letter-spacing:.2px; }
.log-q{
  height:30px; padding:0 9px; border:1px solid var(--line); border-radius:7px;
  font-size:12px; font-family:inherit; width:168px; color:var(--text); background:#fff; outline:none;
}
.log-q:focus{ border-color:var(--brand); }

[data-log-card] .ch-actions{ flex-wrap:wrap; gap:6px; }
[data-log-card] .tbl th{ white-space:nowrap; }

.role-tbl td{ vertical-align:middle; }
.role-tbl .sub{ display:block; font-size:11.5px; color:var(--muted); margin-top:2px; }
.role-grp td{
  background:#F7FAFC; padding:8px 12px; font-size:12px; font-weight:700;
  color:var(--text-2); letter-spacing:.2px; border-top:1px solid var(--line);
}
.role-grp td span{ margin-left:8px; font-weight:400; color:var(--muted); font-size:11.5px; }
.pos-ta{
  width:100%; padding:9px 10px; border:1px solid var(--line); border-radius:8px;
  font-size:12.5px; font-family:inherit; line-height:1.75; color:var(--text);
  background:#fff; resize:vertical; outline:none;
}
.pos-ta:focus{ border-color:var(--brand); }

.ext-folders{
  display:flex; align-items:center; gap:6px; flex-wrap:wrap;
  padding:10px 14px 2px; color:var(--muted);
}
.ext-folders svg{ width:15px; height:15px; }
.ext-folder-hd{
  display:flex; align-items:center; gap:7px;
  padding:9px 14px; background:#F7FAFC; border-top:1px solid var(--line);
  font-size:12.5px; color:var(--text-2);
}
.ext-folder-hd svg{ width:15px; height:15px; color:var(--brand); }
.ext-folder-hd strong{ font-size:12.5px; }
.ext-folder-hd span{ color:var(--muted); font-size:11.5px; }
.ext-folder-hd .mini-btn{ margin-left:2px; }
.ext-folder-hd .mini-btn.danger{ margin-left:auto; }
.ext-ocr-bar{
  display:flex; align-items:center; gap:9px; flex-wrap:wrap;
  grid-column:1/-1; padding:10px 12px; margin-bottom:4px;
  background:var(--brand-soft); border:1px solid var(--brand-line); border-radius:9px;
}
.ext-ocr-bar .mat-hint{ margin:0; }
.doc-del{ margin-right:6px; }

.ck-field{
  display:inline-flex; align-items:center; gap:8px;
  font-size:13px; color:var(--text); cursor:pointer; padding:1px 0;
}
.ck-field input{ width:15px; height:15px; accent-color:var(--brand); cursor:pointer; }
.dual-tag{ color:var(--brand); font-size:11.5px; }

.pm-chip.off-dept{
  opacity:.4; cursor:not-allowed; background:#fff; color:var(--muted);
}
.pm-chip.off-dept:hover{ border-color:var(--line); color:var(--muted); background:#fff; }

.app-tip{
  position:fixed; z-index:9999; max-width:330px; padding:6px 9px;
  background:rgba(28,32,38,.94); color:#fff;
  font-size:12px; line-height:1.55; border-radius:6px;
  box-shadow:0 6px 20px rgba(0,0,0,.2);
  pointer-events:none; white-space:pre-line; word-break:break-word;
  opacity:0; transform:translateY(-2px);
  transition:opacity .12s ease, transform .12s ease;
}
.app-tip.on{ opacity:1; transform:none; }

a[data-href]{ cursor:pointer; }
a[data-href]:focus-visible{ outline:2px solid var(--brand); outline-offset:2px; }

.crew-stat-hint{
  padding:8px 16px; font-size:11.5px; line-height:1.6; color:var(--muted);
  background:#F7FBFC; border-bottom:1px solid var(--line-2);
}
.stat-pick{
  font:inherit; font-size:11.5px; font-weight:650; line-height:1; cursor:pointer;
  border:1px solid transparent; transition:.14s;
}
.stat-pick:hover{ border-color:var(--line); box-shadow:0 1px 2px rgba(16,42,58,.06); }
.stat-pick.open{ border-color:var(--brand-line); box-shadow:0 0 0 2px var(--brand-soft); }
.stat-pick .stat-ar{ font-style:normal; font-size:9px; opacity:.6; margin-left:-1px; }

.vessel-card .vc-top .stat-pick{
  flex:none; margin-left:auto; appearance:none; -webkit-appearance:none;
  border:1px solid transparent;
}
.vessel-card .vc-top .stat-pick:hover{ border-color:rgba(16,42,58,.16); }
.vessel-card .vc-top .stat-pick.open{ border-color:var(--brand-line); box-shadow:0 0 0 2px var(--brand-soft); }
.vessel-card .vc-top .stat-pick .stat-ar{ margin-left:1px; }

.crew-group .row{ -webkit-touch-callout:none; }
body.crew-dragging, body.crew-dragging *{ cursor:grabbing; }
body.crew-dragging{ user-select:none; -webkit-user-select:none; }
.crew-group .row.lp-hold{ background:#F1F8FB; box-shadow:inset 0 0 0 1px #CFE6EF; }
.crew-group .row.dragging{ opacity:.42; }
.crew-group .row.drop-before{ box-shadow:inset 0 2px 0 var(--brand); }
.crew-group .row.drop-after{ box-shadow:inset 0 -2px 0 var(--brand); }

.sc-list{ display:flex; flex-direction:column; gap:10px; margin-top:12px; }
.sc-row{
  display:flex; align-items:flex-start; gap:12px; padding:12px 14px;
  border:1px solid var(--line); border-radius:10px; background:#fff;
}
.sc-row.empty{ background:#FBFCFD; border-style:dashed; }
.sc-main{ min-width:0; flex:1; }
.sc-nm{ display:flex; align-items:center; gap:8px; font-size:13px; }
.sc-meta{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin-top:5px; font-size:12px; color:var(--text-2); }
.sc-none{ color:var(--faint); }
.sc-tip{ display:block; font-style:normal; font-size:11.5px; color:var(--faint); margin-top:5px; line-height:1.6; }
.sc-acts{ display:flex; align-items:center; gap:6px; white-space:nowrap; flex:none; }
@media (max-width:720px){
  .sc-row{ flex-direction:column; }
  .sc-acts{ width:100%; justify-content:flex-start; }
}

/* ===== 手机 / 平板签名：全屏 + 横屏 =====
   竖屏时整块顺时针转 90°（视觉横屏），已经横屏就不转；只切 class，不改屏幕方向，
   微信、iOS Safari 里同样可用。元素四角转到竖屏画面上的位置（实测确认）：
     元素左上 → 画面右上
     元素右上 → 画面右下
     元素右下 → 画面左下
     元素左下 → 画面左上
   手机横过来后（逆时针转手机）：
     画面右下 → 横屏右上（撤销 / 清空 / 关闭）
     画面左下 → 横屏右下（确认签署）
   所以撤销用 right+top、确认用 right+bottom。 */
.sign-back.is-fs{ padding:0; overflow:hidden; background:#0B202B; backdrop-filter:none; }
.sign-back.is-fs .sign-modal{
  position:absolute; left:50%; top:50%;
  width:100vh; height:100vw;
  max-width:none; max-height:none; margin:0; padding:0;
  border-radius:0; box-shadow:none; animation:none; overflow:hidden;
  display:flex; flex-direction:column;
  transform:translate(-50%,-50%) rotate(90deg);
  transform-origin:center center;
}
@supports (height:100dvh){
  .sign-back.is-fs .sign-modal{ width:100dvh; height:100dvw; }
}
.sign-back.is-fs .sign-modal.is-flat{
  width:100vw; height:100vh; transform:translate(-50%,-50%) rotate(0deg);
}
@supports (height:100dvh){
  .sign-back.is-fs .sign-modal.is-flat{ width:100dvw; height:100dvh; }
}
.sign-back.is-fs .sign-modal > .modal-hd,
.sign-back.is-fs .sign-modal > .modal-ft{ display:none; }
.sign-back.is-fs .sign-modal .modal-bd{
  /* 上下各留 62px：旋转后上下两侧正好是画面的左右两端，给撤销组和确认按钮让位 */
  padding:62px 18px 62px; gap:8px; flex:1; min-height:0;
  display:flex; flex-direction:column; overflow:hidden;
}
.sign-back.is-fs .sign-saved,
.sign-back.is-fs .sign-none{ display:none; }          /* 手机上一律手写，签名档不占版面 */
.sign-back.is-fs .pad-wrap{
  flex:1; min-height:0; padding:0; border:0; border-radius:0; background:transparent;
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.sign-back.is-fs .pad-hd,
.sign-back.is-fs .pad-ft{ display:none; }
.sign-back.is-fs .pad-canvas{
  width:auto; max-width:100%; flex:none;
  border:1px solid var(--line); border-radius:10px;
}
.sign-back.is-fs .sign-who{ padding:0; gap:8px; flex:none; }
.sign-back.is-fs .sign-who .sign-av{ width:26px; height:26px; font-size:11px; }
.sign-back.is-fs .sign-who strong{ font-size:12.5px; }
.sign-back.is-fs .sign-who > div > span{ display:none; }
.sign-back.is-fs .sign-save{ margin-top:0; flex:none; font-size:11.5px; }
.sign-back.is-fs .sign-save input{ width:16px; height:16px; }

.sign-fs-top{
  /* 元素右上角 → 竖屏画面的右下角（横过来就是右上角） */
  position:absolute; right:14px; top:12px; z-index:6;
  display:flex; align-items:center; gap:8px;
}
.sfs-btn{
  height:36px; padding:0 13px; display:inline-flex; align-items:center; gap:5px;
  border:1px solid var(--line); border-radius:10px; background:#fff;
  font-size:12.5px; font-weight:600; color:var(--text-2); cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.sfs-btn svg{ width:14px; height:14px; }
.sfs-btn:active{ background:#EFF5F8; }
.sfs-x{ width:36px; padding:0; justify-content:center; color:var(--muted); }
.sfs-x svg{ width:15px; height:15px; }

.sign-back.is-fs .sfs-ok{
  /* 元素右下角 → 竖屏画面的左下角（手机横过来就是右下角） */
  position:absolute; right:14px; bottom:14px; z-index:6;
  height:40px; padding:0 22px; display:inline-flex; align-items:center; gap:6px;
  border:0; border-radius:10px; background:var(--brand); color:#fff;
  font-size:13px; font-weight:650; cursor:pointer;
  box-shadow:0 6px 16px rgba(14,116,144,.28);
  -webkit-tap-highlight-color:transparent;
}
.sign-back.is-fs .sfs-ok svg{ width:15px; height:15px; }
.sign-back.is-fs .sfs-ok b{ font-weight:650; }
.sign-back.is-fs .sfs-ok:active{ background:var(--brand-600); }
/* 已经横屏（不旋转）时：撤销在真实右上，确认在真实右下 */
.sign-back.is-fs .sign-modal.is-flat .sign-fs-top{ right:14px; top:12px; }
.sign-back.is-fs .sign-modal.is-flat .sfs-ok{ right:14px; bottom:14px; }

/* 一键套用「我的电子签名」：元素左上角 → 竖屏画面右上角（头像旁边，不压画布） */
.sign-back.is-fs .sfs-use{
  /* left 是画面竖直方向：往下让开头像和姓名，落在画布右侧的空白带里 */
  position:absolute; left:170px; top:12px; z-index:6;
  width:96px; height:44px; padding:0 8px;
  display:inline-flex; align-items:center; justify-content:center; gap:4px;
  border:1px solid var(--brand-line); border-radius:10px;
  background:var(--brand-soft); color:var(--brand-600);
  font-size:11.5px; font-weight:650; cursor:pointer; white-space:nowrap;
  -webkit-tap-highlight-color:transparent;
}
.sign-back.is-fs .sfs-use svg{ width:14px; height:14px; }
.sign-back.is-fs .sfs-use b{ font-weight:650; }
.sign-back.is-fs .sfs-use:active{ background:#D8EDF1; }
/* 真横屏时不旋转，放到真实左上角，避开右上角的撤销组 */
.sign-back.is-fs .sign-modal.is-flat .sfs-use{ left:14px; top:12px; width:auto; height:36px; padding:0 12px; }
.sign-fs-tip{
  /* 元素右边缘中间 → 竖屏画面底部正中，避开三个按钮 */
  position:absolute; right:16px; top:50%; transform:translateY(-50%); z-index:5;
  font-size:11px; color:var(--faint); pointer-events:none; white-space:nowrap;
}
.sign-back.is-fs .sign-modal.is-flat .sign-fs-tip{
  right:auto; top:auto; left:50%; bottom:12px; transform:translateX(-50%);
}
