/* =========================================================
   ENTERPRISE — final layer, loaded last on every page.
   Cairo for Arabic and English, thin Phosphor icons (js/icons.js),
   flush light sidebar, 56px white top bar, 8px controls (34px / 28px),
   12px cards with borders instead of shadows, underline tabs,
   classic tables with grey headers, small rectangular badges and
   compact KPI cards with neutral icon tiles.
   The dark welcome banner, the splash screen and the photo art stay as they are.
   ========================================================= */
:root{
  --font-display:"Cairo",system-ui,sans-serif;
  --font-body:"Cairo","Segoe UI",system-ui,sans-serif;
  --r-lg:12px; --r-xl:12px;
}
body{font-family:var(--font-body)}
.ph-i{flex:none}

/* ---------- sidebar: flush, light, one border ---------- */
.sidebar::before{display:none}
@media (min-width:901px){
  .app{grid-template-columns:248px minmax(0,1fr)}
  .sidebar{margin:0;top:0;height:100vh;border:0;border-inline-end:1px solid var(--line);border-radius:0;box-shadow:none;padding:14px 10px 12px;background:var(--surface)}
}
@media (max-width:900px){
  .sidebar{margin:0;top:0;height:100vh;width:264px;border-radius:0;border:0;border-inline-end:1px solid var(--line)}
}
.sb-brand{border-bottom:1px solid var(--line);padding:2px 8px 14px;margin-bottom:6px}
.brand-tile{border-radius:8px}
.nav-group{font-size:10.5px;letter-spacing:.08em;font-weight:700;color:var(--faint);padding:14px 10px 4px}
.nav-item{height:32px;padding:0 10px;gap:10px;border-radius:6px;font-size:13px;font-weight:500;color:var(--ink-2);box-shadow:none}
.nav-item svg{width:16px;height:16px;color:var(--muted)}
.nav-item:hover{background:var(--sunk);color:var(--ink)}
.nav-item.active{background:var(--sunk);color:var(--ink);font-weight:700;box-shadow:none}
.nav-item.active svg{color:var(--ink)}
.nav-item.active::before{display:none}

/* ---------- top bar: 56px, white, hairline ---------- */
.topbar,[dir="rtl"] .topbar{height:56px;padding:0 20px;background:var(--surface);backdrop-filter:none;-webkit-backdrop-filter:none;border-bottom:1px solid var(--line)}
.search,[dir="rtl"] .search{height:34px;border-radius:8px;padding:0 10px;background:var(--bg);border:1px solid var(--line);box-shadow:none}
.search:hover{box-shadow:none;border-color:var(--line-2)}
.search svg{width:16px;height:16px}
.search kbd{border-radius:4px;padding:2px 6px}
.top-actions{gap:4px}
.top-actions .icon-btn{width:34px;height:34px;border-radius:8px;background:transparent;border:0;box-shadow:none}
.top-actions .icon-btn:hover{background:var(--sunk)}
.top-actions .icon-btn svg{width:18px;height:18px}
.top-actions .btn{height:34px;border-radius:8px;padding:0 12px}
@media (max-width:1180px){ .top-actions .btn{width:34px;padding:0} }
@media (max-width:900px){
  .topbar,[dir="rtl"] .topbar{height:56px;padding:0 12px}
  .search,[dir="rtl"] .search{flex:0 0 34px;width:34px;padding:0;justify-content:center}
  .top-actions .btn{width:34px}
}

/* ---------- controls: 8px radius, 34px / 28px ---------- */
.btn{height:34px;padding:0 12px;border-radius:8px;font-size:13px;font-weight:600;box-shadow:none}
.btn-sm{height:28px;padding:0 9px;border-radius:6px;font-size:12px}
.btn svg{width:16px;height:16px}
.btn-sm svg{width:14px;height:14px}
.btn-accent{background:var(--accent);border-color:var(--accent);color:var(--on-accent);box-shadow:none}
.btn-accent:hover{background:var(--accent-ink);border-color:var(--accent-ink)}
.icon-btn{border-radius:8px}
.input{height:34px;border-radius:8px;font-size:13px}
textarea.input{height:auto}
.input:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 18%,transparent)}
.seg{border-radius:8px;padding:2px}
.seg button{height:28px;border-radius:6px}

/* ---------- page ---------- */
.view,[dir="rtl"] .view{padding:18px 24px 56px}
.page-head{margin-bottom:16px}
.page-title{font-size:22px;font-weight:700;letter-spacing:-.01em}
@media (max-width:900px){ .view,[dir="rtl"] .view{padding:14px 14px 48px} .page-title{font-size:20px} }

/* ---------- cards: 12px, border, no heavy shadow ---------- */
.card{border-radius:12px;border:1px solid var(--line);box-shadow:none}
.card-head{padding:14px 16px 0}
.card-head h3{font-size:14px;font-weight:700;letter-spacing:0}
.hero{border-radius:12px}

/* ---------- tabs: underline ---------- */
.tabs{gap:20px;padding:0 16px;border-bottom:1px solid var(--line)}
.tab{height:42px;padding:0;margin:0;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;font-size:13px;font-weight:600;color:var(--muted)}
.tab:hover{background:none;color:var(--ink)}
.tab.on{background:none;color:var(--ink);border-bottom-color:var(--ink)}
.tab .count,.tab.on .count{border-radius:4px;padding:0 6px;background:var(--sunk);color:var(--muted)}

/* ---------- tables: classic rows, grey header ---------- */
.card > .table-wrap,.card-body > .table-wrap{background:transparent;margin:0;border-radius:0;padding:0}
.tbl{border-collapse:collapse;border-spacing:0;font-size:13px}
.tbl thead th,.tbl th{background:var(--surface-2)!important;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0!important;padding:9px 14px;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:none;color:var(--muted)}
.tbl tbody td{background:transparent;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;padding:10px 14px}
.tbl tbody tr{transform:none;filter:none}
.tbl tbody tr:hover{transform:none;filter:none;background:var(--surface-2)}
.tbl tbody tr:hover td{background:transparent;border-color:var(--line)!important}
.tbl tbody tr:last-child td{border-bottom:0!important}

/* ---------- badges: small and rectangular ---------- */
.pill{height:20px;padding:0 7px;border-radius:4px;font-size:11px;font-weight:600}
.pill::before{width:5px;height:5px}
.delta{border-radius:4px;padding:1px 6px;font-size:11px}
.delta svg{width:12px;height:12px}

/* ---------- KPI cards: compact, neutral icon tile, divider then footer ---------- */
.kpi{padding:14px 16px;box-shadow:none}
.kpi:hover{transform:none;box-shadow:none;border-color:var(--line-2)}
.kpi-ico{width:32px;height:32px;border-radius:8px;background:var(--sunk)!important;color:var(--muted)!important}
.kpi-ico svg{width:16px;height:16px}
.kpi-value{font-size:22px;font-weight:700}
.kpi-foot{margin-top:10px;padding-top:8px;border-top:1px solid var(--line)}

/* ---------- small icon tiles and lists ---------- */
.ico-tile{border-radius:8px}
.ico-tile svg{width:16px;height:16px}
.view-switch svg{width:15px;height:15px}

/* ---------- popups (centred) and dialogs: clean header, hairlines, quiet footer ---------- */
.modal-wrap{background:rgba(16,14,12,.42);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.drawer{border-radius:14px;max-height:min(86vh,860px);box-shadow:0 28px 70px -24px rgba(16,24,40,.38),0 0 0 1px var(--line)}
.drawer::before{display:none}
.modal{border-radius:14px;border:1px solid var(--line);box-shadow:0 28px 70px -24px rgba(16,24,40,.38)}

/* booking photo band: a short strip above the header, never over the text */
.pop-cover{height:72px;border-bottom:1px solid var(--line)}
.pop-cover::after{background:linear-gradient(180deg,rgba(12,9,6,.5),rgba(12,9,6,.18))}
.pop-cover .vf-c{width:12px;height:12px}
.pop-cover .vf-c.tl{top:12px;left:14px}
.pop-cover .vf-c.bl{bottom:12px;left:14px}
.pop-cover .rec{top:14px;left:34px;font-size:10px;opacity:.9}
.pop-close{top:12px!important;width:32px;height:32px;border-radius:8px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.3)}
.pop-close:hover{background:rgba(255,255,255,.28)}
.pop-close svg{width:16px;height:16px}
.drawer .pop-cover + .drawer-head{margin-top:0;padding-top:16px;border-bottom:1px solid var(--line)}

/* header */
.drawer-head{padding:16px 24px;gap:14px;align-items:center;border-bottom:1px solid var(--line)}
.drawer-head h2,.profile-hero h2,.pop-head h2{font-family:var(--font-display);font-size:20px!important;font-weight:700;letter-spacing:-.01em;line-height:1.3;margin:4px 0 0}
.drawer-head > .icon-btn,.modal-head > .icon-btn{width:32px;height:32px;border-radius:8px;background:var(--sunk);flex:none;align-self:flex-start}
.drawer-head > .icon-btn:hover,.modal-head > .icon-btn:hover{background:var(--line)}
.drawer-head > .icon-btn svg,.modal-head > .icon-btn svg{width:16px;height:16px}
.profile-hero{gap:14px}
.profile-hero .avatar.xl{width:56px;height:56px;font-size:18px}
.profile-hero small{font-size:12px}
.pop-head{align-items:flex-start}
.pop-title{flex:1;min-width:0}
.pop-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.pop-meta .tag,.pop-meta .cal-ev{height:20px;font-size:11px}
.pop-sub{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:6px 0 0;font-size:12.5px;color:var(--muted)}
.pop-sub svg{width:14px;height:14px}
.pop-sep{width:3px;height:3px;border-radius:50%;background:var(--faint);margin:0 4px}
.pop-amt{flex:none;display:grid;gap:1px;text-align:end;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2)}
.pop-amt small{font-size:11px;color:var(--muted)}
.pop-amt b{font-size:16px;line-height:1.3}
.pop-amt span{font-size:11px;font-weight:600;color:var(--warn)}
.pop-amt span.ok{color:var(--good)}

/* body */
.drawer-body{padding:20px 24px 24px}
.section-t{font-size:11px;letter-spacing:.06em;margin:24px 0 10px}
.drawer-body > .section-t:first-child,.drawer-body > .stat-trio:first-child{margin-top:0}
.dl{grid-template-columns:120px minmax(0,1fr);gap:0 14px;font-size:13px}
.dl dt,.dl dd{padding:9px 0;border-bottom:1px solid var(--line)}
.dl dt:last-of-type,.dl dd:last-of-type{border-bottom:0}
.dl dd{font-weight:600;min-width:0}
.summary-box{border-radius:10px;border:1px solid var(--line);background:var(--surface-2)}
.stat-trio div{border-radius:10px;border:1px solid var(--line);background:var(--surface-2)}

/* footer */
.drawer-foot{padding:12px 24px;background:var(--surface-2);flex-wrap:wrap}

/* dialogs */
.modal-head{padding:16px 24px;border-bottom:1px solid var(--line);align-items:center;gap:12px}
.modal-head h2{font-size:18px!important;font-weight:700;letter-spacing:-.01em;line-height:1.3}
.modal-head .eyebrow{background:none;border:0;padding:0;margin:0 0 2px;font-size:11px;color:var(--muted);letter-spacing:.04em}
.modal-head .eyebrow::before{display:none}
.modal-body{padding:20px 24px}
.modal-foot{padding:12px 24px;border-top:1px solid var(--line);background:var(--surface-2);flex-wrap:wrap}

@media (max-width:640px){
  .drawer-head,.drawer-body,.drawer-foot,.modal-head,.modal-body,.modal-foot{padding-inline:16px}
  .pop-head{flex-wrap:wrap}
  .pop-amt{width:100%;text-align:start;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
  .dl{grid-template-columns:100px minmax(0,1fr)}
}
.pop-meta .cal-ev{display:inline-flex;align-items:center;padding:0 7px;border-radius:4px;margin:0}

/* =========================================================
   PAGES — one consistent, quieter look across every module
   ========================================================= */
/* page header: section name as plain text, not a pill */
.page-head .eyebrow{background:none;border:0;padding:0;margin:0 0 4px;font-size:11px;font-weight:600;color:var(--muted);letter-spacing:.06em}
.page-head .eyebrow::before{display:none}
.page-sub{font-size:13px;margin-top:4px;color:var(--muted);max-width:720px}

/* search fields, chips and small toggles: 8px, no pills */
.input-ico .input{border-radius:8px}
.chip-btn,.wa-chip{border-radius:6px}
.btn-primary,.btn-primary:hover{box-shadow:none}
.set-nav button{border-radius:6px}
.set-nav button.on{border-radius:6px;background:var(--sunk);box-shadow:none;color:var(--ink);font-weight:700}

/* board columns and cards (production, albums) */
.k-col{border-radius:10px;padding:8px;gap:8px;background:var(--sunk);border:1px solid var(--line)}
.k-col-head{padding:4px 4px 6px}
.k-card{border-radius:8px;padding:10px;box-shadow:none;border:1px solid var(--line)}
.k-card:hover{border-color:var(--line-2);box-shadow:0 1px 2px rgba(16,24,40,.06);transform:none}
.k-thumb{height:56px;border-radius:6px;margin:-2px -2px 8px}
.k-card b{font-size:13px}
.k-card small{font-size:11.5px}

/* list rows and cards used across modules */
.card-body > .rows > .row.clickable,.drawer-body .rows > .row.clickable{border-radius:8px}
.card-body > .rows > .row.clickable:hover,.drawer-body .rows > .row.clickable:hover{transform:none}
.oc-card,.rv-item,.sub-row,.md-card,.md-shots,.qr-box,.wa-detect,.tl-card,.cl-card,.staff-card,.fam-card,.tpl{border-radius:10px;box-shadow:none}
.wa-item{border-radius:8px}
.wa-msg.in{box-shadow:none;border:1px solid var(--line)}
.hero-stat{border-radius:10px}
.avatar.lg{box-shadow:none}
.brand-tile.lg{border-radius:12px}
.empty .ico-tile{border-radius:8px}
/* team cards: plain white, no coloured band; cards don't jump on hover */
.staff-card{background:var(--surface);padding:16px}
.staff-card .avatar.lg{box-shadow:none}
.staff-card:hover,.cl-card:hover,.oc-card:hover,.fam-card:hover,.tpl:hover,.rv-item:hover,.sub-row:hover{transform:none;box-shadow:none;border-color:var(--line-2)}
/* dashboard and two-column pages: a short card does not stretch to its neighbour's height */
.g-main{align-items:start}
/* page actions stay on the end side when the header wraps */
.page-head > div:last-child:not(:first-child){margin-inline-start:auto}

/* =========================================================
   CLIENT PAGES (form.html · client.html · book.html)
   Same calm language as Studio OS: 12–14px corners, hairlines,
   12px rhythm between blocks, rectangular tags.
   ========================================================= */
#fpBody,#cpBody,#bkBody{display:grid;gap:12px;min-width:0}
.fp{gap:12px;padding-block:16px 116px}
.fp-head{padding:2px 0 4px}
.fp-logo{border-radius:10px}
.fp-head .chip-btn{height:32px;padding:0 12px;border-radius:8px;font-size:12.5px}

/* dark header card */
.fp-hero,.bk-hero{border-radius:14px}
.fp-hero{padding:22px 20px}
.fp-hero h1{font-size:24px;font-weight:700;letter-spacing:-.01em}
.fp-hero .fp-perks{gap:6px}
.fp-hero .fp-perks span{border-radius:6px;padding:4px 9px;font-weight:600}
.cp-secure{font-weight:600}

/* section cards */
.fp-sec,.fp-done{border-radius:12px;padding:18px}
.fp-sec-head{padding-bottom:12px;margin-bottom:2px;border-bottom:1px solid var(--line)}
.fp-sec-head h2,.cp-h,.bk-h{font-size:15px;font-weight:700}
.fp-step{width:24px;height:24px;font-size:11.5px;font-weight:700}

/* fields and choices */
.fp-field label,.fp-label{font-weight:600}
.fp-field .input{height:42px;border-radius:8px}
.fp-choices{border-radius:10px}
.fp-choice span{border-radius:10px;font-weight:600}
.fp-choice input:checked + span{box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 22%,transparent)}
.fp-pkgs .price{font-weight:700}

/* sticky bottom bar */
.fp-bar{background:color-mix(in srgb,var(--surface) 92%,transparent);border-top:1px solid var(--line);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.fp-submit{height:46px;border-radius:10px;font-weight:700}

/* confirmation */
.fp-ref{border-radius:6px}
.fp-sum dl,.cp-pay{border-radius:10px;border:1px solid var(--line);background:var(--surface-2)}

/* client link */
.cp-bar{height:6px}
.cp-dot{width:24px;height:24px}
.cp-design{border-radius:10px}
.cp-mode{border-radius:8px}
.ph{border-radius:8px}
.ph-tag{border-radius:4px}

/* booking page */
.bk-hero-in h1{font-weight:700;letter-spacing:-.01em}
.bk-pkg{border-radius:12px}
.bk-pkg:hover{transform:none;box-shadow:none;border-color:var(--line-2)}
.bk-pkg-art{height:96px}
.bk-day{border-radius:8px}
.bk-types{border-radius:8px}

/* =========================================================
   MOTION — calm, quick and purposeful.
   A page eases in when you arrive (blocks rise, lists flow in one by one,
   bars fill, sparklines draw, numbers count up). Filters, typing and
   saves re-render without moving anything. Reduced motion turns it all off.
   ========================================================= */
:root{--ease-out:cubic-bezier(.16,1,.3,1);--ease-soft:cubic-bezier(.33,1,.68,1)}
@keyframes moUp{from{opacity:0;transform:translateY(10px)}}
@keyframes moRow{from{opacity:0;transform:translateY(4px)}}
@keyframes moFill{from{transform:scaleX(0)}}
@keyframes moDraw{from{stroke-dashoffset:220}to{stroke-dashoffset:0}}
@keyframes moLand{0%{transform:scale(.97);box-shadow:0 0 0 0 color-mix(in srgb,var(--accent) 45%,transparent)}60%{transform:scale(1.01)}100%{transform:none;box-shadow:0 0 0 10px transparent}}

/* page blocks: no replay on every re-render, only on arrival */
.view > *{animation:none}
.view.is-entering > *:not(.mo-host){animation:moUp .55s var(--ease-out) both}
.view.is-entering > :nth-child(2){animation-delay:.04s}
.view.is-entering > :nth-child(3){animation-delay:.08s}
.view.is-entering > :nth-child(4){animation-delay:.12s}
.view.is-entering > :nth-child(n+5){animation-delay:.16s}
.bk-card,.cl-card{animation:none}

/* lists flow in, one after another */
.mo-i{animation:moUp .5s var(--ease-out) both;animation-delay:calc(70ms + var(--i,0) * 32ms)}
.tbl tbody tr.mo-i,.rows > .row.mo-i,.tl-row.mo-i{animation-name:moRow;animation-duration:.42s;animation-delay:calc(90ms + var(--i,0) * 24ms)}
.k-col.mo-i{animation-delay:calc(40ms + var(--i,0) * 50ms)}
.k-card.mo-i{animation-delay:calc(160ms + var(--i,0) * 45ms)}

/* bars fill and sparklines draw on arrival */
.view.is-entering .bar > i,.view.is-entering .cp-bar > i{transform-origin:left;animation:moFill .9s var(--ease-out) .25s both}
[dir="rtl"] .view.is-entering .bar > i{transform-origin:right}
.view.is-entering .spark path:last-child{stroke-dasharray:220;animation:moDraw 1.1s var(--ease-soft) .3s both}
.view.is-entering .spark path:first-child{animation:moRow .8s ease .6s both}

/* popups: header, sections and footer follow the panel in */
.drawer .mo-i,.modal .mo-i{animation-duration:.45s;animation-delay:calc(90ms + var(--i,0) * 40ms)}
.modal-wrap:not([hidden]) .modal{animation:moPop .32s var(--ease-out) both}
@keyframes moPop{from{opacity:0;transform:translateY(10px) scale(.985)}}
.drawer{transition:transform .42s var(--ease-out),opacity .22s ease}

/* a card that was just moved on a board lands with a short glow */
.k-card.mo-landed{animation:moLand .8s var(--ease-out)}

/* small, quiet feedback */
.tab{transition:color .18s ease,border-color .18s ease}
.nav-item svg{transition:color .18s ease,transform .18s ease}
.nav-item:hover svg{transform:translateX(1px)}
[dir="rtl"] .nav-item:hover svg{transform:translateX(-1px)}
.btn{transition:background-color .18s ease,border-color .18s ease,color .18s ease,transform .12s ease}
.btn:active{transform:translateY(1px) scale(.99)}
.card,.k-card,.tbl tbody tr,.row.clickable,.cl-card,.staff-card,.fam-card,.tpl,.wa-item{transition:border-color .2s ease,background-color .2s ease}

/* theme switch: colours cross-fade instead of snapping */
html.theme-fade *,html.theme-fade *::before,html.theme-fade *::after{transition:background-color .4s ease,border-color .4s ease,color .4s ease,fill .4s ease!important}

@media (prefers-reduced-motion:reduce){
  .view.is-entering > *,.mo-i,.k-card.mo-landed,.modal-wrap:not([hidden]) .modal{animation:none!important}
}

/* client pages: a new screen rises in block by block, its lists flow in */
.fp-head{animation:moRow .5s var(--ease-out) both}
.mo-b{animation:moUp .6s var(--ease-out) both;animation-delay:calc(var(--b,0) * 70ms)}
.mo-b .mo-i{animation:moUp .5s var(--ease-out) both;animation-delay:calc(var(--b,0) * 70ms + 160ms + var(--i,0) * 35ms)}
.mo-b .cp-bar > i,.mo-b .cp-meter > i{transform-origin:left;animation:moFill 1s var(--ease-out) .35s both}
[dir="rtl"] .mo-b .cp-bar > i,[dir="rtl"] .mo-b .cp-meter > i{transform-origin:right}
.mo-b .success-ring{animation:moRing .65s var(--ease-out) .15s both}
@keyframes moRing{from{opacity:0;transform:scale(.6)}}
.fp-choice span,.cp-mode,.ph{transition:border-color .18s ease,background-color .18s ease,box-shadow .18s ease,transform .12s ease}
@media (prefers-reduced-motion:reduce){ .fp-head,.mo-b,.mo-b .mo-i,.mo-b .success-ring{animation:none!important} }
.mo-b .fp-sec.mo-i{animation-delay:calc(80ms + var(--i,0) * 90ms)}

/* booking popup: contract warnings, delivery, editing & print requests */
.bk-warn{margin-bottom:12px}
.bk-dlv{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.bk-dlv > div{display:grid;gap:2px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2)}
.bk-dlv span{font-size:11.5px}.bk-dlv b{font-size:14px}.bk-dlv small{font-size:11px}
.bk-method{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px;font-size:12.5px}
.bk-method .seg{flex-wrap:wrap}
.rq-list{display:grid;gap:6px}
.rq{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.rq .ico-tile{width:28px;height:28px}
.rq-main{flex:1;min-width:0;display:grid}
.rq-main b{font-size:13px;font-weight:600}
.rq-main small{font-size:11.5px}
.rq.done .rq-main b{color:var(--muted);text-decoration:line-through}
.rq.done .btn{color:var(--good)}
.rq-add{display:flex;gap:6px;margin-top:8px}
.rq-add select.input{flex:0 0 auto;width:auto}
.rq-add input.input{flex:1;min-width:0}
.k-req{display:inline-flex;align-items:center;gap:3px;margin-top:8px;margin-inline-start:4px;font-size:10.5px;font-weight:700;padding:2px 7px;border-radius:4px;background:var(--info-soft);color:var(--info)}
.k-req svg{width:11px;height:11px}
.bk-cancel{color:var(--bad)}
.bk-cancel[disabled]{color:var(--faint);cursor:not-allowed}
.perm-del td{border-top:1px solid var(--line-2)!important}
@media (max-width:640px){ .bk-dlv{grid-template-columns:1fr} .rq-add{flex-wrap:wrap} .rq-add input.input{flex-basis:100%;order:-1} }

/* ---------- developer brand: RASIEN ONE ---------- */
.made-by{display:flex;align-items:center;gap:10px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line-2,rgba(0,0,0,.08))}
.mb-mark{width:26px;height:26px;flex:none;border-radius:50%;background:radial-gradient(circle,#c99a5b 0 6px,transparent 6.5px),radial-gradient(circle,transparent 0 8.5px,rgba(201,154,91,.6) 9px 10px,transparent 10.5px),radial-gradient(circle,transparent 0 11.5px,rgba(201,154,91,.3) 12px 12.6px,transparent 13px)}
.mb-txt{display:grid;line-height:1.25;min-width:0}
.mb-txt small{font-size:9.5px;letter-spacing:.14em;text-transform:uppercase;opacity:.6}
.mb-txt b{font-size:12px;letter-spacing:.18em;font-weight:700}
.mb-txt em{font-style:normal;font-size:11px;opacity:.75}
.sp-made{margin:18px 0 0;text-align:center;font-size:11.5px;line-height:1.7;color:rgba(255,255,255,.62);letter-spacing:.02em}
.sp-made b{color:#d9b07a;letter-spacing:.16em;font-weight:700}
.sp-made small{font-size:10.5px;opacity:.85}

/* ---------- access gate (first screen) ---------- */
.gate{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:24px 16px;overflow-y:auto;color:#f3ebe0;color-scheme:dark;
  background:radial-gradient(120% 80% at 80% 0%,rgba(196,146,95,.22),transparent 60%),radial-gradient(90% 70% at 0% 100%,rgba(122,84,38,.25),transparent 60%),#0f0b08;
  transition:opacity .6s ease,visibility .6s}
.gate.open{opacity:0;visibility:hidden}
html.gated,html.gated body{overflow:hidden}
.gate-card{width:min(420px,100%);display:grid;gap:14px;padding:34px 32px 26px;border-radius:28px;
  background:linear-gradient(160deg,rgba(255,246,234,.1),rgba(255,246,234,.03));border:1px solid rgba(255,236,214,.14);
  box-shadow:0 50px 120px -30px rgba(0,0,0,.85),inset 0 1px 0 rgba(255,255,255,.08);animation:cardIn .9s cubic-bezier(.2,.8,.2,1) both}
.gate-brand{display:flex;align-items:center;gap:14px;margin-bottom:6px}
.gate .wm-top{color:#f6ede1;font-size:18px}
.gate .wm-bot{color:#d9b38b;font-size:10px}
.gate-mark{width:44px;height:44px;flex:none;border-radius:50%;background:radial-gradient(circle,#d9b07a 0 9px,transparent 9.5px),radial-gradient(circle,transparent 0 13px,rgba(217,176,122,.6) 13.5px 15px,transparent 15.5px),radial-gradient(circle,transparent 0 19px,rgba(217,176,122,.3) 19.5px 20.5px,transparent 21px)}
.gate-title{margin:0;font-size:28px;font-weight:800;line-height:1.2;color:#fbf5ec;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
.gate-title bdi{font-size:18px;font-weight:600;color:#d9b38b}
.gate-lead{margin:-6px 0 4px;font-size:13px;line-height:1.6;color:rgba(243,235,224,.6)}
.gate-field{display:grid;gap:6px;font-size:12.5px;font-weight:600;color:rgba(243,235,224,.78)}
.gate-field bdi{font-weight:500;color:rgba(243,235,224,.5);margin-inline-start:6px}
.gate-field input{width:100%;height:48px;border-radius:14px;border:1px solid rgba(255,236,214,.18);background:rgba(0,0,0,.28);color:#fbf5ec;
  padding:0 14px;font:inherit;font-size:15px;font-weight:500;outline:none;transition:border-color .2s,box-shadow .2s}
.gate-field input:focus{border-color:#d9b07a;box-shadow:0 0 0 3px rgba(217,176,122,.22)}
.gate-pass{position:relative;display:block}
.gate-pass input{padding-inline-end:70px}
.gate-eye{position:absolute;inset-block:6px;inset-inline-end:6px;padding:0 12px;border-radius:10px;border:0;background:rgba(255,255,255,.08);color:#f3ebe0;font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.gate-eye:hover{background:rgba(255,255,255,.14)}
.gate-eye:focus-visible,.gate-btn:focus-visible{outline:2px solid #d9b07a;outline-offset:2px}
.gate-err{margin:0;padding:10px 12px;border-radius:12px;background:rgba(220,80,60,.14);border:1px solid rgba(240,120,100,.35);color:#ffc9bd;font-size:12.5px;line-height:1.6}
.gate-err bdi{display:block}
.gate-btn{height:52px;margin-top:4px;border:0;border-radius:16px;cursor:pointer;font:inherit;font-size:15px;font-weight:800;color:#1a120b;
  background:linear-gradient(135deg,#f0cfa2,#c4925f);box-shadow:0 18px 40px -16px rgba(196,146,95,.9),inset 0 1px 0 rgba(255,255,255,.5);transition:transform .2s}
.gate-btn:hover{transform:translateY(-1px)}
.gate-btn bdi{margin-inline-start:6px;font-weight:700}
.gate .sp-made{margin-top:6px}
.gate-card.bad{animation:gateShake .4s ease}
@keyframes gateShake{20%,60%{transform:translateX(-8px)}40%,80%{transform:translateX(8px)}}
@media (prefers-reduced-motion:reduce){.gate-card,.gate-card.bad{animation:none}.gate{transition:none}}
@media (max-width:480px){.gate-card{padding:26px 20px 22px;border-radius:22px}.gate-title{font-size:24px}}
.gate-lead bdi{display:block}
