:root{
 --bg:#f6f7fb;--surface:#fff;--text:#172033;--muted:#7d8798;--line:#e8ebf1;
 --primary:#5b67f1;--primary-soft:#eef0ff;--green:#1d9b68;--green-soft:#eaf8f2;
 --red:#d4515b;--red-soft:#fff0f1;--orange:#c47a13;--orange-soft:#fff6e8;--dark:#111827;
 --sidebar-text:#c7cedd;--settings-icon-color:#c7cedd;--sidebar-active-bg:#1d2939;--sidebar-active-text:#fff;--identity-primary-text:#fff;--identity-secondary-text:#98a2b3;--sidebar-bg:#111827;
 --radius:16px;--shadow:0 10px 28px rgba(15,23,42,.055)
}
*{box-sizing:border-box}html{font-family:"Segoe UI",Tahoma,Arial,sans-serif;background:var(--bg);color:var(--text)}
body{margin:0;background:var(--bg)}a{text-decoration:none;color:inherit}button,input,select,textarea{font:inherit}button{cursor:pointer}
.shell{min-height:100vh}.sidebar{position:fixed;right:0;top:0;width:248px;height:100vh;background:var(--sidebar-bg);color:#fff;padding:18px 14px;display:flex;flex-direction:column;z-index:40;overflow:hidden}
.brand,.brandline{display:flex;align-items:center;gap:11px}.brand{padding:4px 8px 22px}.brand-mark,.brandline>span{width:38px;height:38px;border-radius:12px;background:var(--primary);display:grid;place-items:center;font-weight:800;overflow:hidden;flex:0 0 38px}.brand-mark.has-logo{background:#fff;border:1px solid rgba(255,255,255,.14);padding:3px}.brand-mark img{width:100%;height:100%;object-fit:contain;display:block;border-radius:8px}
.brand-info{min-width:0;flex:1}.brand b,.brand small,.userbox b,.userbox small{display:block}.brand b,.userbox b{color:var(--identity-primary-text)}.brand small,.userbox small{color:var(--identity-secondary-text);font-size:11px;margin-top:3px}
.brand-settings{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;color:var(--settings-icon-color);border:1px solid #2a3445;background:rgba(255,255,255,.03);transition:.2s ease;flex:0 0 auto}
.brand-settings svg{width:18px;height:18px;display:block}.brand-settings:hover,.brand-settings.active{background:var(--sidebar-active-bg);color:var(--settings-icon-color);border-color:#394559}
.sidebar nav{display:flex;flex-direction:column;gap:4px;overflow:visible;flex-shrink:0}.sidebar nav a{padding:9px 12px;border-radius:10px;color:var(--sidebar-text);font-size:14px}
.sidebar nav a:hover{background:var(--sidebar-active-bg);color:var(--sidebar-text)}.sidebar nav a.active{background:var(--sidebar-active-bg);color:var(--sidebar-active-text);box-shadow:none}
.sidebar nav hr{width:100%;border:0;border-top:1px solid #2a3445;margin:10px 0}.userbox{margin-top:auto;border-top:1px solid #2a3445;padding:15px 8px 0;display:flex;align-items:center;justify-content:space-between;gap:10px}
.userbox>a{color:#f6a9ae;font-size:12px}.main{margin-right:248px;min-height:100vh}.topbar{min-height:86px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 28px;border-bottom:1px solid var(--line);background:var(--bg);backdrop-filter:blur(10px);position:sticky;top:0;z-index:20}
.topbar-heading-group{display:flex;align-items:center;min-width:0}.topbar-heading{min-width:0}.topbar h1{margin:0;font-size:24px}.topbar p{margin:4px 0 0;font-size:12px;color:var(--muted)}.menu{display:none;border:0;background:#fff;border-radius:10px;padding:9px 11px;margin-left:10px}
.topbar-system-brand{direction:ltr;display:flex;align-items:center;gap:11px;flex:0 0 auto;min-width:0}.topbar-ihata-logo{width:42px;height:42px;border-radius:12px;background:#111827;color:#fff;display:grid;place-items:center;font-size:18px;font-weight:900;overflow:hidden;flex:0 0 42px}.topbar-ihata-logo.has-logo{background:#fff;border:1px solid var(--line);padding:3px}.topbar-ihata-logo img{display:block;width:100%;height:100%;object-fit:contain;border-radius:8px}.topbar-system-name{direction:rtl;text-align:right;display:flex;flex-direction:column;justify-content:center;gap:3px;line-height:1.2;white-space:nowrap}.topbar-system-name strong{display:block;color:var(--text);font-size:14px;font-weight:850}.topbar-system-name small{display:block;color:var(--muted);font-size:11px;font-weight:600}
.page{padding:25px 28px 50px;max-width:1500px;margin:auto}.flash{padding:12px 14px;border-radius:11px;margin:16px 28px 0;font-size:13px}.flash.success{background:var(--green-soft);color:#146d4a}.flash.error{background:var(--red-soft);color:#a33c44}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:18px}.metric{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:17px;box-shadow:var(--shadow);transition:.18s}
.metric:hover{transform:translateY(-2px)}.metric small{display:block;color:var(--muted);font-size:12px}.metric b{display:block;font-size:29px;margin-top:8px}.metric.danger b{color:var(--red)}
.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:19px;box-shadow:var(--shadow);margin-bottom:17px}.panel.narrow{max-width:900px}.panel h2,.panel h3{margin:0}.panel h2{font-size:18px}.panel h3{font-size:16px}.panel p{color:var(--muted);font-size:12px;line-height:1.75}
.panelhead{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:15px}.panelhead p{margin:4px 0 0}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:15px}.filters{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
input,select,textarea{width:100%;border:1px solid #dfe3eb;background:#fff;color:var(--text);border-radius:11px;padding:10px 11px;outline:none}
input:focus,select:focus,textarea:focus{border-color:#aeb5ff;box-shadow:0 0 0 3px var(--primary-soft)}textarea{resize:vertical}input[readonly],textarea[readonly],select:disabled{background:#f7f8fa;color:#667085}
label{font-size:12px;font-weight:650;color:#344054;display:flex;flex-direction:column;gap:7px}.stack{display:flex;flex-direction:column;gap:13px}.stack.compact{gap:9px}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.grid .full{grid-column:1/-1}.actions{display:flex;gap:9px}
.btn{border:0;border-radius:10px;padding:10px 14px;font-weight:700;font-size:12px;display:inline-flex;align-items:center;justify-content:center}.btn.primary{background:var(--primary);color:#fff}.btn.secondary{background:#eef1f6;color:#344054}.btn.ghost{background:#fff;color:#475467;border:1px solid var(--line)}
.btn.success{background:var(--green);color:#fff}.btn.dangerSoft{background:var(--red-soft);color:var(--red)}.fullbtn{width:100%}.link{color:var(--primary);font-weight:700;font-size:12px}
.tablewrap{overflow:auto}table{width:100%;border-collapse:separate;border-spacing:0}th{font-size:11px;color:var(--muted);font-weight:700;text-align:right;padding:11px;border-bottom:1px solid var(--line);white-space:nowrap}
td{font-size:12px;padding:13px 11px;border-bottom:1px solid #f0f2f5;vertical-align:middle}tbody tr:hover{background:#fafbff}td b,td small{display:block}td small{font-size:10px;color:var(--muted);margin-top:3px}
.badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:700;white-space:nowrap}.badge.stage{background:var(--primary-soft);color:var(--primary)}.badge.in_progress{background:#edf3ff;color:#3c68bb}.badge.stopped,.badge.danger{background:var(--red-soft);color:var(--red)}.badge.postponed{background:var(--orange-soft);color:var(--orange)}.badge.danger{margin-right:5px}
.empty{padding:42px 16px;text-align:center;color:var(--muted);font-size:13px}.empty.small{padding:16px}.meta{display:flex;flex-wrap:wrap;gap:8px 13px;align-items:center;color:var(--muted);font-size:12px;margin-bottom:14px}
.progress{display:flex;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:15px;margin-bottom:17px}.step{min-width:108px;text-align:center;position:relative;color:#9ba4b4}.step i{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;margin:auto;background:#f2f4f7;border:2px solid #e4e7ec;font-style:normal;font-size:11px;font-weight:800;position:relative;z-index:2}.step small{display:block;margin-top:6px;font-size:10px;white-space:nowrap}.step:not(:last-child)::after{content:"";position:absolute;top:15px;right:calc(50% + 15px);width:calc(100% - 30px);height:2px;background:#e5e7eb;transform:translateX(100%)}.step.done{color:var(--green)}.step.done i{background:var(--green-soft);border-color:#b9e5d2}.step.current{color:var(--primary)}.step.current i{background:var(--primary);border-color:var(--primary);color:#fff}
.contentgrid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:17px;align-items:start}.sticky{position:sticky;top:103px}.readonly{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.readonly>div,.assignee{background:#f8f9fb;border-radius:11px;padding:12px}
.readonly small,.readonly b,.assignee small,.assignee b{display:block}.readonly small,.assignee small{font-size:10px;color:var(--muted);margin-bottom:5px}.links{display:flex;flex-direction:column;gap:7px;margin-top:12px}.links a{background:#fafbff;border:1px solid var(--line);border-radius:10px;padding:10px;color:var(--primary);font-size:12px;word-break:break-all}.script{background:#f8f9fb;border-radius:11px;padding:14px;line-height:2;white-space:normal}
.inline{display:grid;grid-template-columns:170px minmax(0,1fr) auto;gap:9px}.timeline{display:flex;flex-direction:column}.event{display:grid;grid-template-columns:11px 1fr;gap:9px;padding:9px 0;border-bottom:1px solid #f0f2f4}.event>i{width:7px;height:7px;background:#cbd2df;border-radius:50%;margin-top:6px}.event b,.event small{display:block}.event b{font-size:11px;line-height:1.5}.event small{font-size:9px;color:var(--muted);margin-top:3px}
.check{display:flex;flex-direction:row;align-items:center;gap:9px}.check input{width:auto}.roles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:9px}.roles label{display:flex;flex-direction:row;align-items:center;gap:8px;border:1px solid var(--line);border-radius:11px;padding:11px;background:#fff}.roles input{width:auto}.sectionlabel{font-size:12px}
.auth{min-height:100vh;display:grid;place-items:center;padding:22px;background:radial-gradient(circle at top,var(--primary-soft) 0,#f7f8fb 43%,#f7f8fb 100%)}.auth-card{width:min(430px,100%);background:#fff;border:1px solid var(--line);border-radius:22px;padding:27px;box-shadow:0 22px 55px rgba(15,23,42,.09)}.auth-card>p{color:var(--muted);font-size:12px;margin:8px 0 20px}.brandline h1{font-size:21px;margin:0}.centerlink{display:block;text-align:center;color:var(--primary);font-size:12px;margin-top:17px}
@media(max-width:1100px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.contentgrid{grid-template-columns:1fr}.sticky{position:static}}
@media(max-width:900px){.sidebar{transform:translateX(110%);transition:.2s;box-shadow:-15px 0 40px rgba(15,23,42,.2)}.sidebar.open{transform:translateX(0)}.main{margin-right:0}.menu{display:inline-flex}.topbar{padding:15px 18px}.page{padding:18px}.flash{margin:14px 18px 0}}
@media(max-width:650px){.metrics{grid-template-columns:1fr 1fr;gap:9px}.metric{padding:14px}.metric b{font-size:24px}.grid,.readonly,.roles{grid-template-columns:1fr}.inline{grid-template-columns:1fr}.toolbar{align-items:stretch;flex-direction:column}.filters{display:grid;grid-template-columns:1fr}.panel{padding:14px}.topbar{gap:10px}.topbar h1{font-size:20px}.topbar-system-brand{gap:7px}.topbar-ihata-logo{width:34px;height:34px;flex-basis:34px;border-radius:10px}.topbar-system-name{max-width:165px;white-space:normal}.topbar-system-name strong{font-size:12px}.topbar-system-name small{font-size:9.5px;line-height:1.3}}
@media(max-width:440px){.topbar-system-name{display:none}.topbar{padding-left:14px;padding-right:14px}.topbar-ihata-logo{width:32px;height:32px;flex-basis:32px}}


/* V1.2 — table-first workflow */
.workspace-panel{padding:0;overflow:visible}.workflow-tablewrap{border-radius:var(--radius);overflow:auto}.workflow-table{min-width:980px}.workflow-table th{background:#fbfcfe;position:sticky;top:0;z-index:2;padding:13px 12px}.workflow-table td{padding:11px 12px}.workflow-table tbody tr:last-child td{border-bottom:0}.workflow-table .row-focus{background:#f2f4ff;box-shadow:inset -3px 0 0 var(--primary)}
.hidden-form{display:none}.cell-input,.cell-select{min-width:120px;padding:8px 9px;border-radius:9px;font-size:12px;background:#fff}.title-input{min-width:220px}.date-input{min-width:135px}.url-input{min-width:200px}.number-input{min-width:100px}.status-select{min-width:125px}
.mini-btn{border:1px solid var(--line);background:#f8f9fc;color:#4b5565;border-radius:9px;padding:7px 10px;font-size:11px;font-weight:700;white-space:nowrap}.mini-btn:hover{background:#f1f3f8}.mini-btn.has-data{background:var(--primary-soft);border-color:#dfe2ff;color:var(--primary)}
.row-actions{display:flex;align-items:center;gap:6px;white-space:nowrap}.row-actions form{margin:0}.btn.tiny{padding:7px 10px;border-radius:9px;font-size:11px}.inline-check{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:700}.inline-check input{width:auto}
.row-menu{position:relative}.row-menu>summary{list-style:none;width:30px;height:30px;border-radius:8px;border:1px solid var(--line);display:grid;place-items:center;background:#fff;color:#667085;font-size:17px;cursor:pointer}.row-menu>summary::-webkit-details-marker{display:none}.row-menu[open]>.row-menu-popover{position:fixed;left:0;top:0;min-width:155px;max-width:min(240px,calc(100vw - 24px));background:#fff;border:1px solid var(--line);border-radius:10px;padding:5px;box-shadow:0 14px 35px rgba(15,23,42,.16);z-index:9998}.row-menu button{width:100%;text-align:right;border:0;background:transparent;padding:9px 10px;border-radius:7px;font-size:11px;color:#475467;white-space:nowrap}.row-menu button:hover{background:#f6f7fa}
.modal{width:min(680px,calc(100vw - 34px));max-height:82vh;border:0;border-radius:18px;padding:20px;background:#fff;color:var(--text);box-shadow:0 25px 80px rgba(15,23,42,.22)}.modal.small-modal{width:min(500px,calc(100vw - 34px))}.modal::backdrop{background:rgba(15,23,42,.38);backdrop-filter:blur(2px)}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding-bottom:14px;border-bottom:1px solid var(--line);margin-bottom:15px}.modal-head h3{margin:0;font-size:18px}.modal-head small{display:block;color:var(--muted);margin-top:4px}.modal-head>button{width:34px;height:34px;border:0;border-radius:9px;background:#f2f4f7;color:#667085;font-size:22px;line-height:1}.modal-text{background:#f8f9fb;border-radius:12px;padding:15px;line-height:2;max-height:55vh;overflow:auto;white-space:normal}.modal-actions{display:flex;justify-content:flex-start;gap:9px;margin-top:15px}.modal-links{display:flex;flex-direction:column;gap:8px;max-height:45vh;overflow:auto}.modal-links a{display:block;border:1px solid var(--line);background:#fafbff;border-radius:10px;padding:10px 12px;color:var(--primary);word-break:break-all;font-size:12px}.topgap{margin-top:14px}.modal-readonly .full{grid-column:1/-1}
@media(max-width:900px){.workflow-table{min-width:920px}.modal{padding:16px}}
.dialog-host,.dialog-host:hover{height:0;background:transparent!important}.dialog-host>td{height:0!important;padding:0!important;border:0!important}

/* V1.3 — autosave + completion from status */
.status-wrap{display:flex;flex-direction:column;gap:4px;align-items:stretch;min-width:125px}
.save-dot{min-height:13px;font-size:9px;color:var(--muted);font-weight:600;white-space:nowrap}
.save-dot.saving{color:#64748b}.save-dot.saved{color:var(--green)}.save-dot.error{color:var(--red)}
.autosave-note{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:10px;margin-top:7px}
.js-autosave.autosave-saving{border-color:#aeb5ff;box-shadow:0 0 0 2px var(--primary-soft)}
.js-autosave.autosave-saved{border-color:#b8dfce}
.js-autosave.autosave-error{border-color:#efadb2;box-shadow:0 0 0 2px var(--red-soft)}
.form-feedback{min-height:16px;font-size:10px;color:var(--muted)}
.app-toast{position:fixed;left:22px;bottom:22px;z-index:9999;max-width:min(360px,calc(100vw - 44px));padding:11px 14px;border-radius:11px;background:#172033;color:#fff;font-size:12px;font-weight:650;box-shadow:0 14px 40px rgba(15,23,42,.2);opacity:0;transform:translateY(10px);pointer-events:none;transition:.18s ease}
.app-toast.show{opacity:1;transform:translateY(0)}.app-toast.error{background:#a93e47}.app-toast.success{background:#172033}
.workflow-table tr.row-leaving{opacity:0;transform:translateX(-12px);transition:.22s ease}
dialog.modal{z-index:1000}
.workflow-modals{position:relative;z-index:50}


/* V1.5 — inline idea creation inside the workflow table */
.new-idea-row td{background:#f8f9ff;border-bottom:1px solid #dfe3ff!important}
.new-idea-row{box-shadow:inset -3px 0 0 var(--primary)}
.new-idea-row .cell-input,.new-idea-row .cell-select{border-color:#d7dcff;background:#fff}
.new-link-input{min-width:185px}
.new-idea-row .row-actions{min-width:118px}
@media(max-width:900px){.new-link-input{min-width:170px}}

/* V1.6 — compact Ideas table + new item at the last row */
@media(min-width:1151px){
  .workflow-tablewrap.ideas-fit{overflow-x:hidden}
  .workflow-table.stage-ideas{width:100%;min-width:0;table-layout:fixed}
  .workflow-table.stage-ideas th,.workflow-table.stage-ideas td{padding-left:8px;padding-right:8px}
  .workflow-table.stage-ideas th:nth-child(1){width:25%}
  .workflow-table.stage-ideas th:nth-child(2){width:11%}
  .workflow-table.stage-ideas th:nth-child(3){width:12%}
  .workflow-table.stage-ideas th:nth-child(4){width:13%}
  .workflow-table.stage-ideas th:nth-child(5){width:15%}
  .workflow-table.stage-ideas th:nth-child(6){width:14%}
  .workflow-table.stage-ideas th:nth-child(7){width:10%}
  .workflow-table.stage-ideas .cell-input,
  .workflow-table.stage-ideas .cell-select,
  .workflow-table.stage-ideas .title-input,
  .workflow-table.stage-ideas .date-input,
  .workflow-table.stage-ideas .new-link-input,
  .workflow-table.stage-ideas .status-select{width:100%;min-width:0;max-width:100%}
  .workflow-table.stage-ideas .mini-btn{max-width:100%;overflow:hidden;text-overflow:ellipsis}
  .workflow-table.stage-ideas .row-actions{min-width:0;gap:4px;flex-wrap:wrap}
  .workflow-table.stage-ideas .new-row-actions .btn{padding:7px 8px}
}
@media(min-width:901px) and (max-width:1150px){
  .workflow-table.stage-ideas{min-width:900px}
  .workflow-table.stage-ideas .cell-input,
  .workflow-table.stage-ideas .cell-select{min-width:90px}
  .workflow-table.stage-ideas .title-input{min-width:170px}
  .workflow-table.stage-ideas .new-link-input{min-width:130px}
}

.stage-actions-only{justify-content:flex-start;margin-bottom:14px}


/* V1.9 — clear status colors inside editable dropdowns */
.status-select{
  font-weight:700;
  transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease;
}
.status-select.status-in-progress{
  background:#eaf2ff;
  border-color:#c9dcff;
  color:#245fc7;
}
.status-select.status-stopped{
  background:#fff0f1;
  border-color:#f5c2c7;
  color:#c83d48;
}
.status-select.status-postponed{
  background:#fff5e6;
  border-color:#f6d69b;
  color:#b96a08;
}
.status-select.status-completed{
  background:#eaf8f1;
  border-color:#b8dfce;
  color:#168355;
}
.status-select option[value="in_progress"]{background:#eaf2ff;color:#245fc7}
.status-select option[value="stopped"]{background:#fff0f1;color:#c83d48}
.status-select option[value="postponed"]{background:#fff5e6;color:#b96a08}
.status-select option[value="__complete__"]{background:#eaf8f1;color:#168355}

/* V1.10 — keep the opened status menu neutral/white.
   The closed select itself still carries the current status color. */
.status-select option{
  background:#fff !important;
  color:#172033 !important;
}

/* V1.11 — action menu is a viewport popover, so opening it never creates table scrollbars. */
.workflow-tablewrap{overflow-y:hidden}
.row-menu[open]{z-index:9998}


/* V1.12 — shared reference links only; no production/editing work-link columns */
@media(min-width:901px){
  .workflow-table.stage-writing{min-width:820px}
  .workflow-table.stage-design,
  .workflow-table.stage-photography{min-width:800px}
  .workflow-table.stage-editing{min-width:720px}
  .workflow-table.stage-publishing{min-width:780px}
}


/* V1.15 — clean row layout across every workflow stage */
.workflow-table{
  width:100%;
}
.workflow-table th,
.workflow-table td{
  vertical-align:middle;
}
.workflow-table tbody tr{
  min-height:64px;
}
.workflow-table th:last-child,
.workflow-table td:last-child{
  width:58px;
  min-width:58px;
  max-width:58px;
  text-align:center;
  padding-left:7px;
  padding-right:7px;
  overflow:visible;
}
.workflow-table th:nth-last-child(2),
.workflow-table td:nth-last-child(2){
  width:150px;
  min-width:150px;
}
.workflow-table td:last-child .row-actions{
  width:100%;
  justify-content:center;
  gap:0;
}
.workflow-table td:last-child .row-menu{
  margin-inline:auto;
}
.workflow-table .status-wrap{
  width:100%;
  min-width:0;
}
.workflow-table .status-select{
  width:100%;
  min-width:0;
  max-width:100%;
}
.row-menu button.danger-action{
  color:var(--red);
  font-weight:700;
}
.row-menu button.danger-action:hover{
  background:var(--red-soft);
}

@media(min-width:1151px){
  .workflow-table.stage-writing,
  .workflow-table.stage-design,
  .workflow-table.stage-photography,
  .workflow-table.stage-editing,
  .workflow-table.stage-publishing,
  .workflow-table.stage-promotion{
    width:100%;
    min-width:0;
    table-layout:fixed;
  }
  .workflow-table:not(.stage-ideas) .cell-input,
  .workflow-table:not(.stage-ideas) .cell-select,
  .workflow-table:not(.stage-ideas) .date-input,
  .workflow-table:not(.stage-ideas) .url-input,
  .workflow-table:not(.stage-ideas) .number-input{
    width:100%;
    min-width:0;
    max-width:100%;
  }
  .workflow-table:not(.stage-ideas) .mini-btn{
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .workflow-table.stage-writing th:nth-child(1),
  .workflow-table.stage-design th:nth-child(1),
  .workflow-table.stage-photography th:nth-child(1){width:22%}
  .workflow-table.stage-writing th:nth-child(2),
  .workflow-table.stage-design th:nth-child(2),
  .workflow-table.stage-photography th:nth-child(2){width:9%}
  .workflow-table.stage-writing th:nth-child(3),
  .workflow-table.stage-design th:nth-child(3),
  .workflow-table.stage-photography th:nth-child(3){width:10%}
  .workflow-table.stage-writing th:nth-child(4),
  .workflow-table.stage-design th:nth-child(4),
  .workflow-table.stage-photography th:nth-child(4){width:10%}
  .workflow-table.stage-writing th:nth-child(5),
  .workflow-table.stage-design th:nth-child(5),
  .workflow-table.stage-photography th:nth-child(5){width:13%}
  .workflow-table.stage-writing th:nth-child(6),
  .workflow-table.stage-design th:nth-child(6),
  .workflow-table.stage-photography th:nth-child(6){width:13%}
  .workflow-table.stage-writing th:nth-child(7),
  .workflow-table.stage-design th:nth-child(7),
  .workflow-table.stage-photography th:nth-child(7){width:16%}
  .workflow-table.stage-writing th:nth-child(8),
  .workflow-table.stage-design th:nth-child(8),
  .workflow-table.stage-photography th:nth-child(8){width:7%}

  .workflow-table.stage-editing th:nth-child(1){width:27%}
  .workflow-table.stage-editing th:nth-child(2){width:11%}
  .workflow-table.stage-editing th:nth-child(3){width:12%}
  .workflow-table.stage-editing th:nth-child(4){width:14%}
  .workflow-table.stage-editing th:nth-child(5){width:14%}
  .workflow-table.stage-editing th:nth-child(6){width:16%}
  .workflow-table.stage-editing th:nth-child(7){width:6%}
  .workflow-table.stage-editing td:nth-child(6) .status-select{white-space:nowrap;text-overflow:clip;overflow:visible}

  .workflow-table.stage-publishing th:nth-child(1){width:23%}
  .workflow-table.stage-publishing th:nth-child(2){width:14%}
  .workflow-table.stage-publishing th:nth-child(3){width:15%}
  .workflow-table.stage-publishing th:nth-child(4){width:21%}
  .workflow-table.stage-publishing th:nth-child(5){width:10%}
  .workflow-table.stage-publishing th:nth-child(6){width:11%}
  .workflow-table.stage-publishing th:nth-child(7){width:6%}

  .workflow-table.stage-promotion th:nth-child(1){width:20%}
  .workflow-table.stage-promotion th:nth-child(2){width:15%}
  .workflow-table.stage-promotion th:nth-child(3){width:14%}
  .workflow-table.stage-promotion th:nth-child(4){width:10%}
  .workflow-table.stage-promotion th:nth-child(5){width:11%}
  .workflow-table.stage-promotion th:nth-child(6){width:11%}
  .workflow-table.stage-promotion th:nth-child(7){width:13%}
  .workflow-table.stage-promotion th:nth-child(8){width:6%}
}


/* V1.45 — compact expandable dashboard cards */
.metrics{align-items:start}
.metrics>.metric{height:126px}
.dashboard-detail-metric{position:relative;overflow:visible;padding-bottom:34px;transition:box-shadow .18s ease,height .18s ease,min-height .18s ease}
.dashboard-detail-metric:hover{transform:none}
.dashboard-detail-metric.is-open{height:auto;min-height:126px;z-index:3}
.success-metric>b{color:var(--green)}
.deleted-metric>b{color:var(--red)}
.dashboard-card-toggle{position:absolute;left:17px;bottom:13px;display:inline-flex;padding:0;border:0;background:transparent;color:var(--primary);font-size:10px;font-weight:800;cursor:pointer}
.dashboard-card-toggle:hover{text-decoration:underline}
.dashboard-card-details{margin-top:10px;padding-top:9px;padding-bottom:18px;border-top:1px solid #edf0f5;animation:dashboardCardReveal .16s ease}
.dashboard-card-list{display:flex;flex-direction:column;gap:6px;max-height:205px;overflow:auto;padding:1px 0 1px 2px}
.dashboard-card-item{padding:8px 9px;border:1px solid #edf0f5;border-radius:9px;background:#fafbfc;text-align:right}
.dashboard-card-item strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10.5px;line-height:1.45;font-weight:750;color:var(--text)}
.dashboard-card-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:5px;color:#7a8499;font-size:9px}
.dashboard-card-meta span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-card-meta time{direction:ltr;white-space:nowrap;font-variant-numeric:tabular-nums}
.dashboard-card-extra{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px;padding-top:6px;border-top:1px dashed #e7eaf0;color:#7a8499;font-size:9px}
.dashboard-card-extra b{font-size:9.5px;margin:0;color:var(--text);font-weight:750;direction:ltr}
@keyframes dashboardCardReveal{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:650px){
  .metrics>.metric{height:116px}
  .dashboard-detail-metric.is-open{height:auto;min-height:116px}
  .dashboard-card-toggle{left:14px;bottom:11px}
}

/* V1.22 — align the status control with the rest of the row.
   Autosave feedback is positioned without reserving vertical space. */
.workflow-table .status-wrap{
  position:relative;
  display:block;
  min-width:0;
}
.workflow-table .status-wrap .status-select{
  display:block;
  margin:0;
}
.workflow-table .status-wrap .save-dot{
  position:absolute;
  top:calc(100% + 2px);
  right:2px;
  min-height:0;
  line-height:1;
  pointer-events:none;
}


/* V1.34 — clean similar-idea add flow + drag & drop image */
.similar-links-modal{width:min(650px,calc(100vw - 34px))}
.similar-links-list{max-height:310px;padding:1px}
.similar-links-list .empty{padding:26px 12px}
.similar-links-addbar{display:flex;justify-content:flex-start;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.similar-links-addbar[hidden]{display:none!important}
.add-link-toggle{display:inline-flex;align-items:center;gap:7px;border:0;background:transparent;color:var(--primary);font-size:12px;font-weight:800;padding:7px 3px;cursor:pointer}
.add-link-toggle span{width:22px;height:22px;border-radius:7px;display:grid;place-items:center;background:var(--primary-soft);font-size:17px;line-height:1}
.add-link-toggle:hover{opacity:.78}
.add-link-panel{margin-top:10px;padding:16px;border:1px solid var(--line);border-radius:14px;background:#fafbfc;display:flex;flex-direction:column;gap:14px}
.add-link-panel[hidden]{display:none!important}
.similar-add-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.similar-add-head strong{font-size:14px}.similar-add-head small{font-size:11px;color:var(--muted)}
.similar-add-field{display:flex;flex-direction:column;gap:7px}.similar-add-field>span{font-size:12px;font-weight:800;color:var(--text)}
.similar-add-field em{font-style:normal;font-weight:500;color:var(--muted);font-size:10px;margin-right:4px}

.similar-add-field input::placeholder{color:#c2c8d2;opacity:1;font-weight:400}
.add-link-panel input:not([type=file]){background:#fff;height:46px}
.similar-source-box{display:flex;flex-direction:column;gap:10px}
.similar-source-divider{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:10px}
.similar-source-divider::before,.similar-source-divider::after{content:"";height:1px;background:var(--line);flex:1}
.similar-source-divider span{white-space:nowrap}
.similar-dropzone{position:relative;border:1.5px dashed #cfd6e4;border-radius:13px;background:#fff;min-height:118px;display:flex;align-items:center;justify-content:center;padding:12px;cursor:pointer;transition:.16s ease;overflow:hidden}
.similar-dropzone:hover,.similar-dropzone.dragging{border-color:var(--primary);background:#f7f8ff;box-shadow:0 0 0 3px rgba(99,102,241,.06)}
.similar-dropzone.has-file{border-style:solid;min-height:86px}
.similar-file-input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;padding:0!important;border:0!important}
.similar-dropzone-empty{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;text-align:right;color:var(--text)}
.similar-drop-icon{width:38px;height:38px;border-radius:11px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center;font-size:24px;line-height:1;flex:0 0 auto}
.similar-dropzone-empty div{display:flex;flex-direction:column;gap:2px}.similar-dropzone-empty strong{font-size:12px}.similar-dropzone-empty small{font-size:10px;color:var(--muted)}
.similar-drop-hint{width:100%;text-align:center!important;color:var(--muted)!important;font-size:10px!important;margin-top:2px}
.similar-dropzone-preview{width:100%;display:grid;grid-template-columns:66px minmax(0,1fr) 32px;gap:11px;align-items:center}
.similar-dropzone-preview[hidden]{display:none!important}
.similar-dropzone-preview img{width:66px;height:58px;border-radius:9px;object-fit:cover;background:#eef1f6;border:1px solid var(--line)}
.similar-dropzone-fileinfo{min-width:0;display:flex;flex-direction:column;gap:4px}.similar-dropzone-fileinfo strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;direction:ltr;text-align:right}.similar-dropzone-fileinfo small{font-size:10px;color:var(--muted)}
.similar-file-remove{width:30px;height:30px;border:0;border-radius:9px;background:#f2f4f7;color:#667085;font-size:18px;line-height:1;cursor:pointer}.similar-file-remove:hover{background:#feecee;color:var(--red)}
.add-link-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:2px}
.add-link-actions{display:flex;align-items:center;gap:8px;margin-right:auto}.add-link-actions .btn{padding:8px 12px;font-size:11px}
.add-link-panel .form-feedback{min-height:0;font-size:10px;color:var(--muted)}
@media(max-width:650px){.similar-add-head,.add-link-footer{align-items:stretch;flex-direction:column}.add-link-actions{margin-right:0}.add-link-actions .btn{flex:1}.similar-dropzone-preview{grid-template-columns:56px minmax(0,1fr) 32px}.similar-dropzone-preview img{width:56px;height:50px}}

/* V1.28 — writer chooses next department through a clean dropdown */
.route-choice-dialog{max-width:470px}
.route-choice-body{display:flex;flex-direction:column;gap:10px;margin-top:6px}
.route-choice-label{font-size:13px;color:var(--muted);font-weight:700}
.route-choice-select{width:100%;height:52px;border:1px solid var(--line);border-radius:14px;background:#fff;padding:0 16px;font-size:15px;font-weight:700;color:var(--text);outline:none}
.route-choice-select:focus{border-color:#b9c2ff;box-shadow:0 0 0 3px rgba(99,102,241,.08)}
.route-choice-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}
.route-choice-note{margin-top:12px;color:var(--muted);font-size:12px;text-align:center}
@media(max-width:560px){.route-choice-actions{flex-direction:column}.route-choice-actions .btn{width:100%}}



/* V1.29 — compact script modal with manual save */
.script-modal{width:min(680px,calc(100vw - 34px));max-height:none;overflow:visible}
.script-editor{gap:10px}
.script-textarea{min-height:220px;height:240px;max-height:52vh;resize:vertical;overflow:auto;line-height:1.9}
.script-actions{margin-top:4px}
.script-save-status{min-height:16px;font-size:11px;color:var(--muted);text-align:right}
.script-save-status.saving{color:#64748b}.script-save-status.saved{color:var(--green)}.script-save-status.error{color:var(--red)}
.script-readonly{max-height:52vh}
@media(max-width:650px){.script-textarea{height:210px;min-height:190px}.script-modal{max-height:88vh;overflow:auto}}


/* V1.32+ — compact cards for saved similar ideas */
.similar-links-list{display:flex;flex-direction:column;gap:8px;overflow:auto}
.similar-idea-item{display:flex;align-items:center;gap:11px;border:1px solid var(--line);background:#fafbff;border-radius:12px;padding:9px 10px;min-height:58px}
.similar-idea-thumb{width:70px;height:54px;border-radius:9px;overflow:hidden;flex:0 0 70px;background:#eef1f6;border:1px solid var(--line)}
.similar-idea-thumb img{width:100%;height:100%;display:block;object-fit:cover}
.similar-idea-info{min-width:0;display:flex;flex-direction:column;gap:3px;flex:1}
.similar-idea-delete{width:32px;height:32px;border:0;border-radius:9px;background:transparent;color:#98a2b3;display:grid;place-items:center;cursor:pointer;flex:0 0 32px;transition:.16s ease}
.similar-idea-delete svg{width:17px;height:17px;display:block}
.similar-idea-delete:hover{background:#feecee;color:var(--red)}
.similar-idea-delete:disabled{opacity:.45;cursor:wait}
.similar-idea-title{font-size:13px;font-weight:750;color:var(--primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.similar-idea-info>span.similar-idea-title{color:var(--text)}
.similar-idea-info small{color:var(--muted);font-size:11px;direction:ltr;text-align:right}
@media(max-width:560px){.similar-idea-thumb{width:60px;height:48px;flex-basis:60px}}

/* V1.38 — each similar idea is either a link OR an image */
.similar-source-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:4px;background:#f4f6fa;border-radius:12px;margin-top:2px}
.similar-source-tab{border:0;background:transparent;color:#667085;border-radius:9px;padding:9px 12px;font:inherit;font-size:12px;font-weight:700;cursor:pointer;transition:.15s ease}
.similar-source-tab.active{background:#fff;color:var(--primary);box-shadow:0 1px 4px rgba(15,23,42,.08)}
.similar-source-panel[hidden]{display:none!important}
.similar-source-panel{margin-top:10px}

/* V1.39 — stage similar ideas while creating a new idea */
.new-similar-btn{white-space:nowrap;min-width:82px}
.new-similar-btn.has-data{color:var(--primary);background:var(--primary-soft);border-color:#d9ddff;font-weight:800}
.new-similar-stage-list{max-height:270px}
.new-similar-staged-item{display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:#fafbff;border-radius:12px;padding:9px 10px;min-height:54px}
.new-similar-staged-thumb{width:64px;height:48px;border-radius:9px;object-fit:cover;background:#eef1f6;border:1px solid var(--line);flex:0 0 64px}
.new-similar-staged-info{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}
.new-similar-staged-info strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.new-similar-staged-info small{font-size:10px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;direction:ltr;text-align:right}
.new-similar-staged-remove{width:30px;height:30px;border:0;border-radius:9px;background:#f2f4f7;color:#667085;font-size:17px;cursor:pointer;flex:0 0 auto}
.new-similar-staged-remove:hover{background:#feecee;color:var(--red)}


/* V1.49 — compact centered company identity settings */
.settings-company-card{max-width:340px;padding:24px 24px;margin-inline:auto}
.company-settings-form{display:flex;flex-direction:column;align-items:center;gap:16px}
.settings-logo-block{display:flex;justify-content:center;width:100%}
.company-logo-editor{position:relative;width:150px;height:150px;border-radius:24px;border:1px solid var(--line);background:#f8f9fc;overflow:hidden;display:grid;place-items:center;transition:.18s ease;flex:0 0 auto}
.company-logo-editor img{width:100%;height:100%;object-fit:contain;display:block;background:#fff;padding:6px}
.company-logo-editor.is-empty{border:1.5px dashed #d9deea;background:#fafbfe}
.company-logo-empty-action{width:100%;height:100%;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:8px;cursor:pointer;color:var(--muted);transition:.18s ease}
.company-logo-empty-action:hover{background:#f6f7ff;color:var(--primary)}
.company-logo-plus{width:46px;height:46px;border-radius:14px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center;font-size:29px;line-height:1}
.company-logo-empty-action b{font-size:12px}
.company-logo-hover-actions{position:absolute;inset:0;background:rgba(15,23,42,.58);opacity:0;visibility:hidden;transition:.18s ease;display:flex;align-items:center;justify-content:center}
.company-logo-editor.has-logo:hover .company-logo-hover-actions{opacity:1;visibility:visible}
.company-logo-change{color:#fff;font-size:12px;font-weight:800;padding:9px 13px;border-radius:10px;background:rgba(255,255,255,.15);backdrop-filter:blur(3px);cursor:pointer;border:1px solid rgba(255,255,255,.22)}
.company-logo-change:hover{background:rgba(255,255,255,.23)}
.company-logo-delete{position:absolute;top:9px;left:9px;width:30px;height:30px;border-radius:9px;border:1px solid rgba(255,255,255,.3);background:rgba(15,23,42,.42);color:#fff;font-size:20px;display:grid;place-items:center;line-height:1;padding:0}
.company-logo-delete:hover{background:rgba(212,81,91,.92);border-color:transparent}
.settings-company-field{width:210px;display:block}
.settings-company-field input{width:100%;height:46px;padding:0 14px;text-align:right}
.settings-company-field input::placeholder{color:#b6becd}
.settings-save-row{width:210px;display:flex;justify-content:center;margin-top:0}
.settings-save-btn{width:210px;height:44px;padding-inline:24px}
@media(max-width:650px){.settings-company-card{max-width:320px;padding:20px 16px}.company-logo-editor{width:136px;height:136px}.settings-company-field,.settings-save-row,.settings-save-btn{width:200px}}



/* V1.51 — make the settings card fit its compact contents */
.panel.narrow.settings-company-card{
  width:300px;
  max-width:300px;
  padding:22px 24px;
  margin-inline:auto;
}
@media(max-width:650px){
  .panel.narrow.settings-company-card{
    width:min(300px,calc(100% - 12px));
    max-width:min(300px,calc(100% - 12px));
    padding:20px 18px;
  }
}


/* V1.52 — public landing page */
.landing-body{margin:0;min-height:100vh;background:#f7f8fb;color:#101828;font-family:inherit;overflow-x:hidden}
.landing-header{position:sticky;top:0;z-index:30;background:rgba(247,248,251,.88);backdrop-filter:blur(16px);border-bottom:1px solid #e7eaf0}
.landing-nav{width:min(1180px,calc(100% - 48px));margin:auto;height:78px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.ihata-brand{display:flex;align-items:center;gap:10px;color:#101828;text-decoration:none}.ihata-brand>span:last-child{display:flex;flex-direction:column;line-height:1}.ihata-brand strong{font-size:21px}.ihata-brand small{font-size:9px;letter-spacing:2.2px;color:#98a2b3;margin-top:6px}.ihata-mark{width:40px;height:40px;border-radius:13px;background:#101828;color:#fff;display:grid;place-items:center;font-size:22px;font-weight:800}
.landing-nav-actions{display:flex;align-items:center;gap:10px}.landing-nav-login,.landing-nav-subscribe{height:42px;padding:0 18px;border-radius:12px;font:inherit;font-size:13px;font-weight:800;display:inline-flex;align-items:center;justify-content:center}.landing-nav-login{background:var(--primary);color:#fff}.landing-nav-subscribe{border:1px solid #d9deea;background:#fff;color:#344054;cursor:pointer}
.landing-main{width:min(1180px,calc(100% - 48px));margin:auto}.landing-hero{min-height:610px;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr);gap:74px;align-items:center;padding:76px 0 64px}.landing-hero-copy{max-width:650px}.landing-eyebrow{display:inline-flex;padding:8px 12px;border-radius:999px;background:var(--primary-soft);color:var(--primary);font-size:12px;font-weight:800;margin-bottom:20px}.landing-hero h1{font-size:55px;line-height:1.19;letter-spacing:-1.6px;margin:0 0 22px;font-weight:900}.landing-hero h1 span{color:var(--primary)}.landing-hero p{font-size:17px;line-height:2;color:#667085;max-width:620px;margin:0}.landing-hero-actions{display:flex;gap:10px;margin-top:30px}.landing-btn{min-width:132px;height:48px;border-radius:13px;padding:0 22px;border:0;font:inherit;font-weight:800;font-size:13px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.landing-btn.primary{background:var(--primary);color:#fff;box-shadow:0 12px 30px rgba(15,23,42,.12)}.landing-btn.secondary{background:#fff;color:#344054;border:1px solid #dde2ec}.landing-trust-row{display:flex;align-items:center;gap:10px;margin-top:28px;color:#98a2b3;font-size:11px;font-weight:700}.landing-trust-row i{width:4px;height:4px;background:#c9ced9;border-radius:50%}
.landing-hero-visual{position:relative;min-height:430px;display:grid;place-items:center}.flow-card{background:#fff;border:1px solid #e5e8ef;border-radius:26px;box-shadow:0 26px 60px rgba(16,24,40,.09)}.flow-main{width:min(100%,500px);padding:22px}.flow-card-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:17px;border-bottom:1px solid #eef0f4}.flow-card-head b{font-size:16px}.flow-card-head span{font-size:10px;font-weight:800;background:#e8f8f0;color:#20966b;padding:6px 9px;border-radius:999px}.flow-steps{display:flex;flex-direction:column;margin-top:8px}.flow-steps>div{display:grid;grid-template-columns:42px minmax(0,1fr) 42px;align-items:center;gap:12px;padding:15px 4px;border-bottom:1px solid #f0f2f5}.flow-steps>div:last-child{border-bottom:0}.flow-steps em{font-style:normal;color:#98a2b3;font-size:11px}.flow-steps span{font-size:13px;font-weight:750}.flow-steps b{text-align:center;background:#f5f6fa;padding:7px;border-radius:9px}.flow-float{position:absolute;background:#fff;border:1px solid #e5e8ef;border-radius:18px;box-shadow:0 18px 40px rgba(16,24,40,.11);padding:13px 16px;display:flex;align-items:center;gap:16px}.flow-float span{font-size:11px;color:#667085}.flow-float b{font-size:21px}.flow-float-one{right:-18px;top:42px}.flow-float-one b{color:#d64b57}.flow-float-two{left:-12px;bottom:36px}.flow-float-two b{color:#20966b}
.landing-features{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;padding:34px 0 86px}.landing-features article{background:#fff;border:1px solid #e5e8ef;border-radius:22px;padding:26px}.landing-features article>span{font-size:10px;color:var(--primary);font-weight:900}.landing-features h3{font-size:18px;margin:16px 0 10px}.landing-features p{margin:0;color:#667085;line-height:1.9;font-size:12px}
.landing-clients{padding:78px 0;border-top:1px solid #e7eaf0}.landing-section-heading{text-align:center;margin-bottom:34px}.landing-section-heading>span{color:var(--primary);font-size:11px;font-weight:900}.landing-section-heading h2{font-size:29px;margin:10px 0 0}.client-marquee{overflow:hidden;mask-image:linear-gradient(to left,transparent,#000 8%,#000 92%,transparent);-webkit-mask-image:linear-gradient(to left,transparent,#000 8%,#000 92%,transparent)}.client-track{display:flex;align-items:center;gap:22px;width:max-content;animation:clientSlide 24s linear infinite}.client-marquee:hover .client-track{animation-play-state:paused}.client-marquee.is-static .client-track{animation:none;margin:auto}.client-logo-card{width:82px;height:82px;border-radius:50%;background:#fff;border:1px solid #e3e7ee;padding:8px;display:grid;place-items:center;box-shadow:0 8px 22px rgba(16,24,40,.05);flex:none}.client-logo-card img{width:100%;height:100%;object-fit:contain;border-radius:50%}.client-placeholder-row{display:flex;justify-content:center;gap:18px}.client-placeholder{width:74px;height:74px;border-radius:50%;background:#fff;border:1px solid #e3e7ee;display:grid;place-items:center;color:#98a2b3;font-weight:900}@keyframes clientSlide{from{transform:translateX(0)}to{transform:translateX(50%)}}
.landing-bottom-cta{margin:14px 0 72px;background:#101828;color:#fff;border-radius:28px;padding:34px 38px;display:flex;align-items:center;justify-content:space-between;gap:28px}.landing-bottom-cta span{font-size:11px;color:#b9c0cd}.landing-bottom-cta h2{font-size:26px;margin:8px 0 0}.landing-footer{width:min(1180px,calc(100% - 48px));margin:0 auto 30px;padding-top:22px;border-top:1px solid #e7eaf0;display:flex;justify-content:space-between;color:#98a2b3;font-size:11px}
@media(max-width:900px){.landing-nav,.landing-main,.landing-footer{width:min(100% - 28px,1180px)}.landing-hero{grid-template-columns:1fr;gap:22px;padding-top:52px}.landing-hero-copy{text-align:center;margin:auto}.landing-hero h1{font-size:42px}.landing-hero p{margin:auto}.landing-hero-actions,.landing-trust-row{justify-content:center}.landing-hero-visual{min-height:380px}.landing-features{grid-template-columns:1fr}.landing-bottom-cta{flex-direction:column;text-align:center}.flow-float-one{right:4px}.flow-float-two{left:4px}}
@media(max-width:560px){.landing-nav{height:68px}.ihata-brand small{display:none}.landing-nav-actions{gap:6px}.landing-nav-login,.landing-nav-subscribe{padding:0 11px;height:38px;font-size:11px}.landing-hero{padding-top:38px;min-height:auto}.landing-hero h1{font-size:34px;letter-spacing:-.8px}.landing-hero p{font-size:14px}.landing-hero-actions{flex-direction:column}.landing-btn{width:100%}.landing-trust-row{flex-wrap:wrap}.landing-hero-visual{min-height:330px}.flow-main{padding:16px;border-radius:20px}.flow-float{display:none}.landing-features{padding-bottom:58px}.landing-section-heading h2{font-size:23px}.landing-bottom-cta{padding:26px 20px}.landing-bottom-cta h2{font-size:21px}.landing-footer{flex-direction:column;gap:6px;text-align:center}}

/* V1.53 — public landing fully detached from tenant data */
.ihata-public-logo{height:48px;max-width:150px;display:flex;align-items:center;justify-content:center;flex:none}
.ihata-public-logo img{display:block;max-height:48px;max-width:150px;width:auto;height:auto;object-fit:contain}
.landing-hero{grid-template-columns:minmax(0,1.02fr) minmax(420px,.98fr)}
.landing-workflow-card{width:min(100%,520px);background:#fff;border:1px solid #e5e8ef;border-radius:28px;padding:28px;box-shadow:0 26px 60px rgba(16,24,40,.09)}
.landing-workflow-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:18px;border-bottom:1px solid #eef0f4}
.landing-workflow-head span{font-size:16px;font-weight:900}.landing-workflow-head b{font-size:11px;color:var(--primary);background:var(--primary-soft);padding:7px 10px;border-radius:999px}
.landing-workflow-path{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:9px;padding:30px 4px 20px}
.landing-workflow-path span{background:#f7f8fc;border:1px solid #e8ebf1;border-radius:12px;padding:10px 13px;font-size:12px;font-weight:800;color:#344054;white-space:nowrap}
.landing-workflow-path i{font-style:normal;color:#a5adba;font-weight:900}.landing-workflow-card>p{margin:0;text-align:center;color:#667085;font-size:12px;line-height:1.9}
.landing-clients{display:none!important}
@media(max-width:900px){.landing-hero{grid-template-columns:1fr}.landing-workflow-card{margin:auto}}
@media(max-width:560px){.ihata-public-logo{height:40px;max-width:120px}.ihata-public-logo img{max-height:40px;max-width:120px}.landing-workflow-card{padding:20px}.landing-workflow-path{gap:7px}.landing-workflow-path span{font-size:11px;padding:9px 10px}}

/* V1.57 — Platform Owner */
.platform-body{min-height:100vh;background:#f5f7fb;color:var(--text)}
.platform-header{position:sticky;top:0;z-index:35;background:#fff;backdrop-filter:blur(16px);border-bottom:1px solid #e7eaf0;box-shadow:0 8px 26px rgba(15,23,42,.04)}
.platform-nav{width:min(1380px,calc(100% - 48px));height:88px}
.platform-heading-inline{display:flex;flex-direction:column;align-items:flex-end;gap:0;min-width:0}
.platform-heading-inline h1{margin:0;font-size:20px;line-height:1.2}
.platform-account{position:relative;display:flex;align-items:center;gap:12px}
.platform-account-info{min-width:0;text-align:left}
.platform-account-info b,.platform-account-info small{display:block}
.platform-account-info b{font-size:13px;white-space:nowrap}
.platform-account-info small{font-size:10px;color:var(--muted);margin-top:2px;direction:ltr;text-align:left}
.platform-avatar-btn{width:56px;height:56px;border:1px solid #d9deea;border-radius:18px;background:#fff;padding:0;display:grid;place-items:center;cursor:pointer;box-shadow:0 6px 18px rgba(16,24,40,.06);position:relative;overflow:visible}
.platform-avatar-btn:hover{background:#f8faff}
.platform-avatar-btn[aria-expanded="true"]{border-color:#c9d1ff;box-shadow:0 10px 24px rgba(89,101,243,.12)}
.platform-owner-avatar{width:46px;height:46px;border-radius:14px;background:#111827;color:#fff;display:grid;place-items:center;font-size:20px;font-weight:900;flex:0 0 auto}
.platform-avatar-caret{position:absolute;left:-4px;bottom:-4px;width:20px;height:20px;border-radius:999px;background:#fff;border:1px solid #d9deea;color:#667085;display:grid;place-items:center;font-size:14px;font-weight:900;line-height:1;box-shadow:0 6px 14px rgba(15,23,42,.10)}
.platform-account-menu{position:absolute;left:0;top:calc(100% + 10px);min-width:150px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 40px rgba(15,23,42,.12);padding:8px;z-index:50}
.platform-account-menu a{display:flex;align-items:center;justify-content:flex-start;height:40px;padding:0 12px;border-radius:10px;text-decoration:none;color:var(--red);font-size:12px;font-weight:800;white-space:nowrap}
.platform-account-menu a:hover{background:var(--red-soft)}
.platform-main{max-width:1380px;margin:0 auto;padding:8px 32px 60px}.platform-flash{max-width:1316px;margin:6px auto 0}
@media(max-width:850px){.platform-nav{width:min(100% - 28px,1380px);height:auto;min-height:74px;padding-block:12px;align-items:center;gap:12px}.platform-heading-inline h1{font-size:18px}.platform-account-info b{font-size:12px}.platform-main{padding:6px 12px 45px}.platform-metrics{grid-template-columns:1fr}.platform-company-form{grid-template-columns:1fr}.platform-logo-upload,.platform-form-actions{grid-column:auto}.platform-company-card{grid-template-columns:50px 1fr}.platform-company-actions{grid-column:1/-1}.platform-credential-grid{grid-template-columns:1fr}.platform-toolbar{align-items:flex-start;flex-direction:column}}
.platform-shell{min-height:100vh}
.platform-topbar{max-width:1316px;margin:8px auto 12px;padding:14px 18px;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}
.platform-heading{min-width:0}.platform-topbar h1{margin:4px 0 0;font-size:24px;line-height:1.2}.platform-topbar p{margin:6px 0 0;color:var(--muted);font-size:11px}.platform-owner-box{display:flex;align-items:center;gap:10px;background:#f8f9fc;border:1px solid var(--line);border-radius:14px;padding:8px 10px;min-width:205px}.platform-owner-avatar{width:36px;height:36px;border-radius:11px;background:#111827;color:#fff;display:grid;place-items:center;font-size:15px;font-weight:900;flex:0 0 auto}.platform-owner-info{min-width:0;flex:1}.platform-owner-box b,.platform-owner-box small{display:block}.platform-owner-box b{font-size:13px;white-space:nowrap}.platform-owner-box small{font-size:10px;color:var(--muted);margin-top:2px;direction:ltr;text-align:right}.platform-logout{font-size:11px;color:var(--red);font-weight:800;padding:7px 9px;border-radius:9px;background:#fff;border:1px solid #f7d7da;white-space:nowrap}.platform-logout:hover{background:var(--red-soft)}
.platform-main{max-width:1380px;margin:0 auto;padding:4px 32px 60px}.platform-flash{max-width:1316px;margin:6px auto 0}
.platform-credentials{background:#111827;color:#fff;border-radius:18px;padding:20px 22px;margin-bottom:18px;box-shadow:0 16px 40px rgba(15,23,42,.12)}.platform-credentials span{font-size:11px;color:#b8c0d0}.platform-credentials h2{margin:5px 0 14px;font-size:20px}.platform-credentials p{font-size:11px;color:#c7cedd;margin:14px 0 0}.platform-credential-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.platform-credential-grid>div{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:11px 13px}.platform-credential-grid small{display:block;color:#9da8ba;font-size:10px;margin-bottom:5px}.platform-credential-grid code{font-size:14px;color:#fff;direction:ltr;display:block;text-align:left;user-select:all}
.platform-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-bottom:20px}.platform-metrics>div{background:#fff;border:1px solid var(--line);border-radius:16px;padding:17px 18px;box-shadow:var(--shadow)}.platform-metrics small{display:block;color:var(--muted);font-size:11px}.platform-metrics b{display:block;font-size:27px;margin-top:7px}
.platform-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:20px 0 13px}.platform-toolbar h2,.platform-section-head h2{margin:0;font-size:19px}.platform-toolbar p,.platform-section-head p{margin:4px 0 0;color:var(--muted);font-size:11px}
.platform-create-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:var(--shadow);margin-bottom:18px}.platform-section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.platform-company-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.platform-logo-upload{grid-column:1/-1;border:1px dashed #d9deea;border-radius:13px;padding:14px;background:#fafbfe}.platform-logo-upload>span{font-weight:500;color:var(--muted);font-size:10px}.platform-logo-upload small{color:var(--muted);font-weight:500}.platform-form-actions{grid-column:1/-1;display:flex;justify-content:flex-start}.platform-form-actions .btn{min-width:150px}
.platform-company-list{display:flex;flex-direction:column;gap:10px}.platform-company-card{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:14px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px 16px;box-shadow:var(--shadow)}.platform-company-logo{width:54px;height:54px;border-radius:13px;background:#f2f4f8;border:1px solid var(--line);display:grid;place-items:center;overflow:hidden;font-weight:800;font-size:20px}.platform-company-logo img{width:100%;height:100%;object-fit:contain;background:#fff}.platform-company-title{display:flex;align-items:center;gap:9px}.platform-company-title h3{margin:0;font-size:15px}.platform-status{font-size:9px;padding:4px 7px;border-radius:999px;font-weight:800}.platform-status.on{background:var(--green-soft);color:var(--green)}.platform-status.off{background:var(--red-soft);color:var(--red)}.platform-company-meta{display:flex;flex-wrap:wrap;gap:7px 16px;margin-top:7px;color:var(--muted);font-size:10px}.platform-company-meta b{color:#344054;font-weight:700}.platform-company-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.platform-company-actions form{margin:0}
@media(max-width:850px){.platform-topbar{margin:8px 12px 12px;padding:14px 14px;align-items:stretch;flex-direction:column}.platform-owner-box{min-width:0;width:100%}.platform-main{padding:6px 12px 45px}.platform-metrics{grid-template-columns:1fr}.platform-company-form{grid-template-columns:1fr}.platform-logo-upload,.platform-form-actions{grid-column:auto}.platform-company-card{grid-template-columns:50px 1fr}.platform-company-actions{grid-column:1/-1}.platform-credential-grid{grid-template-columns:1fr}.platform-toolbar{align-items:flex-start;flex-direction:column}}


/* V1.58 — Compact centered company creation modal */
.platform-company-modal{width:min(680px,calc(100vw - 36px));max-height:88vh;overflow:auto;padding:22px;border-radius:20px}
.platform-company-modal-form{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.platform-company-modal-form label{font-size:12px;font-weight:800;color:#344054}
.platform-company-modal-form input{margin-top:6px}
.platform-logo-compact{grid-column:1/-1;border:1px dashed #d9deea;border-radius:13px;padding:12px 14px;background:#fafbfe}
.platform-logo-compact>span{font-size:10px;color:var(--muted);font-weight:500}.platform-logo-compact small{display:block;color:var(--muted);font-weight:500;margin-top:5px}
.platform-logo-compact input[type=file]{background:#fff;padding:9px;border-radius:10px}
.platform-modal-actions{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-start;gap:9px;margin-top:3px}
.platform-modal-actions .btn.primary{min-width:140px}
.platform-result-modal{width:min(520px,calc(100vw - 36px))}
.platform-result-company{font-size:18px;font-weight:900;margin-bottom:14px}
.platform-result-modal .platform-credential-grid>div{background:#f7f8fb;border:1px solid var(--line);color:var(--text)}
.platform-result-modal .platform-credential-grid small{color:var(--muted)}
.platform-result-modal .platform-credential-grid code{color:#111827;background:transparent}
.platform-result-note{font-size:11px;color:var(--muted);line-height:1.8;margin:14px 0 0}
@media(max-width:620px){.platform-company-modal-form{grid-template-columns:1fr}.platform-logo-compact,.platform-modal-actions{grid-column:auto}.platform-modal-actions{flex-direction:column;align-items:stretch}.platform-modal-actions .btn{width:100%}}

/* V1.63 — smaller platform header + caret beside avatar */
.platform-nav{
  height:64px;
  min-height:64px;
}
.platform-heading-inline h1{
  font-size:18px;
}
.platform-account{
  gap:9px;
}
.platform-avatar-btn{
  width:46px;
  height:46px;
  border-radius:14px;
}
.platform-avatar-btn .platform-owner-avatar{
  width:38px;
  height:38px;
  border-radius:11px;
  font-size:16px;
}
.platform-avatar-caret{
  left:-13px;
  bottom:auto;
  top:50%;
  transform:translateY(-50%);
  width:18px;
  height:18px;
  font-size:12px;
}
@media(max-width:850px){
  .platform-nav{
    height:62px;
    min-height:62px;
    padding-block:0;
  }
  .platform-avatar-btn{
    width:44px;
    height:44px;
  }
  .platform-avatar-btn .platform-owner-avatar{
    width:36px;
    height:36px;
  }
}


/* V1.64 — unified platform owner profile group */
.platform-account{
  position:relative;
  display:block;
}
.platform-account-trigger{
  min-height:52px;
  display:flex;
  align-items:center;
  gap:11px;
  direction:ltr;
  padding:6px 10px 6px 7px;
  border:1px solid #e2e6ef;
  border-radius:16px;
  background:#f6f8fc;
  color:var(--text);
  cursor:pointer;
  font:inherit;
  box-shadow:0 5px 16px rgba(15,23,42,.035);
  transition:background .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.platform-account-trigger:hover{
  background:#f1f4f9;
  border-color:#d9dfeb;
}
.platform-account-trigger[aria-expanded="true"]{
  background:#f0f3fb;
  border-color:#cfd7ed;
  box-shadow:0 8px 20px rgba(15,23,42,.065);
}
.platform-account-trigger .platform-owner-avatar{
  width:40px;
  height:40px;
  border-radius:12px;
  background:#111827;
  color:#fff;
  display:grid;
  place-items:center;
  font-size:17px;
  font-weight:900;
  flex:0 0 auto;
}
.platform-account-trigger .platform-account-info{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  direction:rtl;
  text-align:right;
}
.platform-account-title-line{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:7px;
  white-space:nowrap;
}
.platform-account-title-line b{
  font-size:13px;
  line-height:1.2;
  font-weight:850;
}
.platform-account-trigger .platform-account-info small{
  margin-top:4px;
  font-size:10px;
  color:var(--muted);
  direction:ltr;
  text-align:right;
  line-height:1;
}
.platform-account-trigger .platform-avatar-caret{
  position:static;
  width:19px;
  height:19px;
  border-radius:7px;
  border:0;
  background:#e9edf5;
  color:#667085;
  display:grid;
  place-items:center;
  font-size:13px;
  font-weight:900;
  line-height:1;
  box-shadow:none;
  transform:none;
  transition:transform .16s ease,background .16s ease;
}
.platform-account-trigger[aria-expanded="true"] .platform-avatar-caret{
  transform:rotate(180deg);
  background:#e0e6f3;
}
.platform-account-menu{
  left:0;
  top:calc(100% + 8px);
}
@media(max-width:850px){
  .platform-account-trigger{min-height:48px;padding:5px 9px 5px 6px;gap:9px}
  .platform-account-trigger .platform-owner-avatar{width:37px;height:37px;font-size:15px}
  .platform-account-title-line b{font-size:12px}
  .platform-account-trigger .platform-account-info small{font-size:9px}
}

/* V1.65 — smaller owner account control; caret stays on the left of title */
.platform-account-trigger{
  min-height:44px;
  gap:8px;
  padding:4px 7px 4px 5px;
  border-radius:13px;
  box-shadow:0 3px 10px rgba(15,23,42,.03);
}
.platform-account-trigger .platform-owner-avatar{
  width:34px;
  height:34px;
  border-radius:10px;
  font-size:15px;
}
.platform-account-trigger .platform-account-info{
  gap:0;
}
.platform-account-title-line{
  direction:rtl;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:5px;
  line-height:1;
}
.platform-account-title-line b{
  order:1;
  font-size:12px;
  line-height:1.15;
}
.platform-account-trigger .platform-avatar-caret{
  order:2;
  position:static;
  width:16px;
  height:16px;
  border-radius:5px;
  font-size:11px;
  flex:0 0 16px;
}
.platform-account-trigger .platform-account-info small{
  margin-top:3px;
  font-size:9px;
  line-height:1;
}
.platform-account-menu{
  top:calc(100% + 6px);
  min-width:138px;
}
@media(max-width:850px){
  .platform-account-trigger{min-height:42px;padding:4px 6px 4px 5px;gap:7px}
  .platform-account-trigger .platform-owner-avatar{width:32px;height:32px;font-size:14px}
  .platform-account-title-line b{font-size:11px}
  .platform-account-trigger .platform-account-info small{font-size:8.5px}
}

/* V1.66 — owner caret on the right of the title + breathing room below header */
.platform-account-title-line b{
  order:2;
}
.platform-account-trigger .platform-avatar-caret{
  order:1;
}
.platform-main{
  padding-top:22px;
}
@media(max-width:850px){
  .platform-main{padding-top:14px}
}

/* V1.67 — centered owner username + attached dropdown */
.platform-account-trigger .platform-account-info{
  align-items:center;
  text-align:center;
}
.platform-account-title-line{
  justify-content:center;
}
.platform-account-trigger .platform-account-info small{
  width:100%;
  text-align:center;
  align-self:center;
}
.platform-account-trigger[aria-expanded="true"]{
  border-radius:13px 13px 0 0;
  border-bottom-color:transparent;
  box-shadow:0 3px 10px rgba(15,23,42,.03);
}
.platform-account-menu{
  top:calc(100% - 1px);
  left:0;
  right:0;
  width:100%;
  min-width:100%;
  padding:5px;
  border-top:0;
  border-radius:0 0 13px 13px;
  box-shadow:0 10px 20px rgba(15,23,42,.08);
  background:#f6f8fc;
}
.platform-account-menu a{
  height:36px;
  justify-content:center;
  border-radius:9px;
  background:transparent;
}
.platform-account-menu a:hover{
  background:#fff0f1;
}
@media(max-width:850px){
  .platform-account-menu a{height:34px}
}


/* V1.68 — password visibility toggle for every password field */
.password-field{position:relative;width:100%;display:block}
.password-field>input{padding-left:48px!important}
.password-field>input::-ms-reveal,.password-field>input::-ms-clear{display:none}
.password-toggle{position:absolute;left:8px;top:50%;transform:translateY(-50%);width:34px;height:34px;border:0;border-radius:9px;background:transparent;color:#8b95a7;display:grid;place-items:center;padding:0;z-index:2;transition:background .16s ease,color .16s ease}
.password-toggle:hover{background:#f2f4f8;color:var(--primary)}
.password-toggle:focus-visible{outline:2px solid #aeb5ff;outline-offset:1px}
.password-toggle svg{width:19px;height:19px;display:block;pointer-events:none}
.password-toggle[aria-pressed="true"]{color:var(--primary)}


/* V1.69 — password policy hint */


/* V1.72 — Manager password reset instead of direct password editing */
.password-reset-panel{padding-block:16px}
.password-reset-row{display:flex;align-items:center;justify-content:space-between;gap:18px}
.password-reset-row>div{min-width:0}
.password-reset-row b,.password-reset-row small{display:block}
.password-reset-row b{font-size:13px;color:var(--text)}
.password-reset-row small{margin-top:4px;font-size:10px;line-height:1.7;color:var(--muted)}
.password-reset-row form{flex:0 0 auto}
@media(max-width:650px){.password-reset-row{align-items:stretch;flex-direction:column}.password-reset-row form,.password-reset-row .btn{width:100%}}


/* V1.73 — simplified role-based user management */
.user-form-card{max-width:780px;margin-inline:auto;padding:22px}
.user-form-grid{gap:15px}
.user-roles-section{margin-top:2px}
.user-roles-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.user-roles-head small{font-size:10px;color:var(--muted);font-weight:500}
.user-form-card .roles{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.user-form-card .roles label{min-height:48px;padding:10px 12px;background:#fafbfe}
.password-reset-panel{max-width:780px;margin-inline:auto;padding:15px 18px}
.password-reset-row{gap:18px}
.password-reset-row>div small{display:block;margin-top:4px;max-width:460px}
@media(max-width:650px){.user-form-card{padding:16px}.user-form-card .roles{grid-template-columns:1fr}.user-roles-head{align-items:flex-start;flex-direction:column;gap:4px}.password-reset-row{align-items:stretch;flex-direction:column}}

/* V1.74 — Platform theme settings */
.platform-account-menu a.platform-menu-settings{color:#344054}
.platform-account-menu a.platform-menu-settings:hover{background:#fff;color:var(--primary)}
.platform-account-menu a.platform-menu-logout{color:var(--red)}
.platform-account-menu a.platform-menu-logout:hover{background:var(--red-soft)}
.platform-account-menu a+a{margin-top:3px;border-top:1px solid #e8ebf1;border-radius:0 0 9px 9px}
.platform-theme-card{max-width:820px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:var(--shadow)}
.platform-theme-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:16px}
.platform-theme-head h2{margin:0;font-size:19px}.platform-theme-head p{margin:5px 0 0;color:var(--muted);font-size:11px}
.platform-theme-form{display:flex;flex-direction:column;gap:9px}
.theme-option{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:18px;border:1px solid var(--line);border-radius:13px;padding:12px 14px;background:#fff}
.theme-option-copy{display:block;min-width:0}.theme-option-copy b,.theme-option-copy small{display:block}.theme-option-copy b{font-size:13px;color:var(--text)}.theme-option-copy small{font-size:10px;color:var(--muted);font-weight:500;margin-top:4px}
.theme-color-control{display:flex;align-items:center;gap:8px;direction:ltr;flex:0 0 auto}
.theme-color-control input[type=color]{width:42px;height:42px;padding:3px;border:1px solid #dfe3eb;border-radius:10px;background:#fff;cursor:pointer}
.theme-color-control input[type=color]::-webkit-color-swatch-wrapper{padding:0}.theme-color-control input[type=color]::-webkit-color-swatch{border:0;border-radius:7px}.theme-color-control input[type=color]::-moz-color-swatch{border:0;border-radius:7px}
.theme-color-control input[type=text]{width:90px;height:42px;padding:8px 9px;text-align:center;font-size:11px;font-weight:800;text-transform:uppercase}
.platform-theme-actions{display:flex;align-items:center;gap:9px;margin-top:7px}.platform-theme-actions .btn.primary{min-width:120px}
@media(max-width:620px){.platform-theme-card{padding:14px}.theme-option{align-items:flex-start;flex-direction:column}.theme-color-control{width:100%}.theme-color-control input[type=text]{flex:1}.platform-theme-actions{align-items:stretch;flex-direction:column}.platform-theme-actions .btn{width:100%}}


/* V1.76 — unified human-readable date/time display */
.datetime-ar{display:inline-flex;align-items:center;direction:ltr;unicode-bidi:isolate;white-space:nowrap;gap:14px}
.datetime-time{display:inline-flex;align-items:center;direction:ltr;gap:4px}
.datetime-date,.datetime-clock,.datetime-period{display:inline-block}

/* V1.81 — unified Ihata brand in every company dashboard header */
.platform-branding-card{margin-bottom:14px}
.platform-branding-row{display:flex;align-items:center;justify-content:space-between;gap:18px}
.platform-branding-preview{width:76px;height:76px;border:1px solid var(--line);border-radius:16px;background:#f8f9fc;display:grid;place-items:center;overflow:hidden;flex:0 0 76px;color:#111827;font-size:28px;font-weight:900}
.platform-branding-preview img{width:100%;height:100%;object-fit:contain;padding:7px}
.platform-branding-actions{display:flex;align-items:center;gap:9px;flex:1;justify-content:flex-start;flex-wrap:wrap}
.platform-logo-form{display:flex;align-items:center;gap:9px;flex:1;min-width:min(100%,420px)}
.platform-logo-form input[type=file]{min-width:220px;background:#fff}
@media(max-width:620px){.platform-branding-row{align-items:stretch;flex-direction:column}.platform-branding-preview{width:68px;height:68px;flex-basis:68px}.platform-branding-actions,.platform-logo-form{width:100%;align-items:stretch;flex-direction:column}.platform-logo-form input[type=file]{min-width:0}.platform-branding-actions .btn{width:100%}}


/* V1.83 — redesigned public landing */
.landing-v83-body{background:#f6f8fc;color:#101828;min-height:100vh}
.landing-v83-header{position:sticky;top:0;z-index:40;background:rgba(246,248,252,.88);backdrop-filter:blur(18px);border-bottom:1px solid rgba(216,222,233,.8)}
.landing-v83-nav{width:min(1240px,calc(100% - 56px));height:82px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:24px}
.landing-v83-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#101828;min-width:0}.landing-v83-logo{width:48px;height:48px;border-radius:14px;overflow:hidden;background:#fff;display:grid;place-items:center;flex:none}.landing-v83-logo img{max-width:100%;max-height:100%;object-fit:contain}.landing-v83-mark{width:48px;height:48px;border-radius:14px;background:#111827;color:#fff;display:grid;place-items:center;font-size:22px;font-weight:900;flex:none}.landing-v83-brand-copy{display:flex;flex-direction:column;gap:4px;line-height:1.15}.landing-v83-brand-copy strong{font-size:15px}.landing-v83-brand-copy small{font-size:10px;color:#8b95a7}
.landing-v83-nav-actions,.landing-v83-actions{display:flex;align-items:center;gap:10px}.landing-v83-btn{min-width:138px;height:50px;padding:0 22px;border-radius:14px;border:1px solid transparent;font:inherit;font-size:13px;font-weight:850;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;cursor:pointer;transition:.2s ease}.landing-v83-btn:hover{transform:translateY(-1px)}.landing-v83-btn-primary{background:var(--primary);color:#fff;box-shadow:0 13px 28px color-mix(in srgb,var(--primary) 22%,transparent)}.landing-v83-btn-secondary{background:#fff;color:#344054;border-color:#dfe4ed}.landing-v83-btn-small{min-width:auto;height:42px;padding-inline:18px;border-radius:12px}
.landing-v83-main{width:min(1240px,calc(100% - 56px));margin:auto}.landing-v83-hero{min-height:690px;padding:70px 0 54px;display:grid;grid-template-columns:minmax(0,.9fr) minmax(520px,1.1fr);gap:76px;align-items:center}.landing-v83-copy{max-width:590px}.landing-v83-kicker{display:inline-flex;align-items:center;padding:8px 12px;border-radius:999px;background:var(--primary-soft);color:var(--primary);font-size:11px;font-weight:900;direction:ltr;margin-bottom:20px}.landing-v83-copy h1{margin:0;font-size:57px;line-height:1.18;letter-spacing:-1.8px;font-weight:950}.landing-v83-copy h1 span{color:var(--primary)}.landing-v83-copy p{margin:22px 0 0;color:#667085;font-size:17px;line-height:1.9;max-width:560px}.landing-v83-actions{margin-top:30px}
.landing-v83-slider{min-width:0}.landing-v83-slides{position:relative;min-height:500px}.landing-v83-slide{position:absolute;inset:0;display:grid;grid-template-rows:1fr auto;gap:22px;opacity:0;transform:translateX(-24px) scale(.985);pointer-events:none;transition:opacity .42s ease,transform .42s ease}.landing-v83-slide.is-active{opacity:1;transform:none;pointer-events:auto}.landing-v83-visual{background:#fff;border:1px solid #e5e9f1;border-radius:28px;box-shadow:0 28px 70px rgba(16,24,40,.10);padding:24px;min-height:340px;overflow:hidden;position:relative}.v83-window-head{height:42px;display:flex;align-items:center;gap:7px;border-bottom:1px solid #eef1f5;color:#98a2b3;font-size:11px}.v83-window-head i{width:8px;height:8px;border-radius:50%;background:#dfe4ed}.v83-window-head span{margin-right:auto;font-weight:800;color:#667085}.v83-flow-line{display:flex;align-items:center;justify-content:center;gap:10px;height:205px;direction:rtl}.v83-flow-line div{min-width:92px;border:1px solid #e7ebf2;background:#f9fafc;border-radius:16px;padding:16px 12px;text-align:center}.v83-flow-line b{display:block;color:var(--primary);font-size:11px;margin-bottom:10px}.v83-flow-line span{font-size:13px;font-weight:850}.v83-flow-line em{font-style:normal;color:#b0b8c7;font-weight:900}.v83-progress{height:8px;background:#eef1f6;border-radius:999px;overflow:hidden;margin:8px 14px}.v83-progress span{display:block;width:74%;height:100%;border-radius:inherit;background:var(--primary)}
.landing-v83-slide-copy{display:grid;grid-template-columns:38px 1fr;column-gap:10px;align-items:start;padding:0 8px}.landing-v83-slide-copy>span{grid-row:1/3;width:34px;height:34px;border-radius:11px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center;font-size:10px;font-weight:900;direction:ltr}.landing-v83-slide-copy h2{margin:1px 0 5px;font-size:20px}.landing-v83-slide-copy p{margin:0;color:#7b8496;font-size:12px;line-height:1.8}.landing-v83-slider-controls{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:18px}.landing-v83-arrow{width:38px;height:38px;border-radius:12px;border:1px solid #e0e5ed;background:#fff;color:#667085;font:inherit;font-weight:900;cursor:pointer}.landing-v83-dots{display:flex;gap:7px;align-items:center;direction:ltr}.landing-v83-dots button{width:7px;height:7px;padding:0;border:0;border-radius:999px;background:#ccd3df;cursor:pointer;transition:.2s}.landing-v83-dots button.is-active{width:24px;background:var(--primary)}
.v83-team-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:30px 8px}.v83-team-grid>div{display:flex;align-items:center;gap:12px;background:#f9fafc;border:1px solid #e8ebf1;border-radius:16px;padding:15px}.v83-team-grid>div>b{width:40px;height:40px;border-radius:12px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center;font-size:14px}.v83-team-grid span{display:flex;flex-direction:column;gap:4px}.v83-team-grid strong{font-size:12px}.v83-team-grid small{font-size:10px;color:#98a2b3}
.v83-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:30px 6px 18px}.v83-metrics div{background:#f9fafc;border:1px solid #e8ebf1;border-radius:16px;padding:16px}.v83-metrics small{display:block;color:#98a2b3;font-size:10px}.v83-metrics b{display:block;font-size:25px;margin-top:8px}.v83-metrics div:nth-child(2) b{color:#1f9d69}.v83-metrics div:nth-child(3) b{color:#d64b57}.v83-activity{display:flex;align-items:center;gap:12px;padding:12px 10px;border-top:1px solid #eef1f5}.v83-activity>span{width:10px;height:10px;border-radius:50%;background:var(--primary);box-shadow:0 0 0 5px var(--primary-soft)}.v83-activity p{margin:0;display:flex;align-items:center;justify-content:space-between;gap:12px;flex:1}.v83-activity b{font-size:11px}.v83-activity small{font-size:9px;color:#98a2b3}
.landing-v83-strip{margin:6px 0 72px;background:#fff;border:1px solid #e6eaf1;border-radius:22px;display:grid;grid-template-columns:1fr 1px 1fr 1px 1fr;align-items:center;padding:18px 22px;box-shadow:0 10px 35px rgba(16,24,40,.04)}.landing-v83-strip>div{text-align:center}.landing-v83-strip b,.landing-v83-strip span{display:block}.landing-v83-strip b{font-size:13px}.landing-v83-strip span{font-size:10px;color:#98a2b3;margin-top:5px}.landing-v83-strip>i{width:1px;height:34px;background:#e8ebf1}
.landing-v83-footer{width:min(1240px,calc(100% - 56px));margin:0 auto 28px;padding-top:20px;border-top:1px solid #e1e6ee;display:flex;align-items:center;justify-content:space-between;color:#98a2b3;font-size:10px}
@media(max-width:980px){.landing-v83-nav,.landing-v83-main,.landing-v83-footer{width:min(100% - 30px,1240px)}.landing-v83-hero{grid-template-columns:1fr;gap:38px;padding-top:48px}.landing-v83-copy{text-align:center;margin:auto}.landing-v83-copy p{margin-inline:auto}.landing-v83-actions{justify-content:center}.landing-v83-slider{width:min(700px,100%);margin:auto}.landing-v83-slides{min-height:480px}}
@media(max-width:620px){.landing-v83-nav{height:72px}.landing-v83-brand-copy small{display:none}.landing-v83-brand-copy strong{font-size:13px}.landing-v83-logo,.landing-v83-mark{width:42px;height:42px}.landing-v83-btn-small{padding-inline:11px;font-size:11px}.landing-v83-nav-actions{gap:6px}.landing-v83-hero{padding:38px 0 36px}.landing-v83-copy h1{font-size:36px;letter-spacing:-.8px}.landing-v83-copy p{font-size:14px}.landing-v83-actions{flex-direction:column}.landing-v83-actions .landing-v83-btn{width:100%}.landing-v83-slides{min-height:520px}.landing-v83-visual{min-height:360px;padding:18px}.v83-flow-line{flex-wrap:wrap;height:auto;padding:30px 0}.v83-flow-line em{display:none}.v83-flow-line div{min-width:42%;}.v83-team-grid{grid-template-columns:1fr;padding-top:20px}.v83-metrics{grid-template-columns:1fr 1fr 1fr}.v83-metrics div{padding:12px 8px}.v83-metrics b{font-size:20px}.v83-activity p{align-items:flex-start;flex-direction:column;gap:2px}.landing-v83-strip{grid-template-columns:1fr;gap:14px}.landing-v83-strip>i{display:none}.landing-v83-footer{flex-direction:column;gap:5px;text-align:center}}

/* V1.84 - clean public landing without slider */
.landing-v83-hero{
  min-height:560px;
  padding:90px 0 70px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.landing-v83-copy{max-width:820px;margin:0 auto;}
.landing-v83-copy p{max-width:700px;margin:22px auto 0;}
.landing-v83-actions{justify-content:center;}
@media(max-width:980px){.landing-v83-hero{min-height:520px;padding:70px 0 54px;}}
@media(max-width:620px){.landing-v83-hero{min-height:460px;padding:52px 0 42px;}}

/* V1.87 - compact public landing: keep desktop landing within one viewport */
@media (min-width:981px){
  .landing-v83-body{
    min-height:100svh;
    display:flex;
    flex-direction:column;
  }
  .landing-v83-header{flex:0 0 auto;}
  .landing-v83-main{
    flex:1 1 auto;
    min-height:0;
    display:flex;
    flex-direction:column;
  }
  .landing-v83-hero{
    flex:1 1 auto;
    min-height:360px;
    padding:34px 0 26px;
    box-sizing:border-box;
  }
  .landing-v83-copy h1{
    font-size:54px;
    line-height:1.14;
  }
  .landing-v83-copy p{
    margin-top:16px;
    line-height:1.7;
  }
  .landing-v83-actions{margin-top:22px;}
  .landing-v83-strip{
    flex:0 0 auto;
    margin:0 0 14px;
    padding:14px 22px;
  }
  .landing-v83-footer{
    flex:0 0 auto;
    margin:0 auto 12px;
    padding-top:11px;
  }
}

@media (max-width:980px){
  .landing-v83-hero{
    min-height:430px;
    padding:52px 0 40px;
  }
  .landing-v83-strip{margin-bottom:32px;}
}

@media (max-width:620px){
  .landing-v83-hero{
    min-height:auto;
    padding:40px 0 30px;
  }
  .landing-v83-strip{margin-bottom:24px;}
}


.auth-brandline{align-items:flex-start}
.auth-brand-copy{display:flex;flex-direction:column;gap:4px}
.auth-brand-copy h1{font-size:28px;line-height:1.15;margin:0;color:var(--text)}
.auth-brand-copy p{margin:0;color:var(--muted);font-size:15px;font-weight:500;line-height:1.6}
@media (max-width: 520px){
  .auth-brand-copy h1{font-size:24px}
  .auth-brand-copy p{font-size:14px}
}


.brandline>span.has-logo{background:#fff;border:1px solid var(--line);padding:3px}
.brandline>span.has-logo img{width:100%;height:100%;object-fit:contain;display:block;border-radius:10px}


/* V1.90 — cleaner spacing for auth header and form */
.auth-brandline{margin-bottom:12px}
.auth-card form.stack{margin-top:10px}
.auth-card label{gap:9px}


/* V1.91 — public subscription requests + Platform Owner request inbox */
.subscription-request-modal{width:min(460px,calc(100vw - 30px));padding:22px}
.subscription-request-head{margin-bottom:18px}
.subscription-request-form{gap:14px}
.subscription-request-actions{display:flex;gap:8px;margin-top:4px}
.subscription-request-actions .btn{min-width:112px}
.public-result-modal{width:min(410px,calc(100vw - 30px));padding:0;overflow:hidden}
.public-request-result{text-align:center;padding:28px 24px 24px}
.public-request-result-icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;margin:0 auto 14px;background:var(--green-soft);color:var(--green);font-size:22px;font-weight:900}
.public-request-result.is-error .public-request-result-icon{background:var(--red-soft);color:var(--red)}
.public-request-result h3{margin:0;font-size:20px}.public-request-result p{margin:8px auto 20px;color:var(--muted);font-size:12px;line-height:1.8;max-width:310px}
.platform-metrics-with-requests{grid-template-columns:repeat(4,minmax(0,1fr))}
.platform-request-metric{display:block;background:#fff;border:1px solid var(--line);border-radius:16px;padding:17px 18px;box-shadow:var(--shadow);transition:.18s ease;position:relative}
.platform-request-metric:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--primary) 30%,var(--line))}
.platform-request-metric small{display:block;color:var(--muted);font-size:11px}.platform-request-metric b{display:block;font-size:27px;margin-top:7px;color:var(--text)}
.platform-request-metric span{position:absolute;left:18px;bottom:18px;font-size:10px;color:var(--primary);font-weight:800}
.platform-request-metric.has-new{background:linear-gradient(135deg,#fff 0%,var(--primary-soft) 100%);border-color:color-mix(in srgb,var(--primary) 22%,var(--line))}.platform-request-metric.has-new b{color:var(--primary)}
.platform-requests-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:18px 0 14px}.platform-requests-head h2{margin:0;font-size:20px}.platform-requests-head p{margin:5px 0 0;color:var(--muted);font-size:11px}
.platform-request-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.platform-request-tabs a{display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:#fff;border-radius:12px;padding:9px 12px;color:#667085;font-size:11px;font-weight:800}.platform-request-tabs a b{min-width:22px;height:22px;border-radius:8px;background:#f2f4f7;color:#475467;display:grid;place-items:center;font-size:10px}.platform-request-tabs a.active{background:var(--primary-soft);color:var(--primary);border-color:color-mix(in srgb,var(--primary) 24%,var(--line))}.platform-request-tabs a.active b{background:var(--primary);color:#fff}
.platform-request-list{display:flex;flex-direction:column;gap:9px}.platform-request-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:16px;padding:15px 17px;box-shadow:var(--shadow)}.platform-request-card.is-new{border-right:3px solid var(--primary)}
.platform-request-title-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.platform-request-title-row h3{margin:0;font-size:15px}.platform-request-status{font-size:9px;font-weight:850;padding:5px 8px;border-radius:999px}.platform-request-status.status-new{background:var(--primary-soft);color:var(--primary)}.platform-request-status.status-postponed{background:var(--orange-soft);color:var(--orange)}.platform-request-status.status-completed{background:var(--green-soft);color:var(--green)}.platform-request-status.status-cancelled{background:var(--red-soft);color:var(--red)}
.platform-request-meta{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin-top:8px;color:var(--muted);font-size:10px}.platform-request-meta a{font-weight:750;color:#344054}.platform-request-status-form{display:grid;grid-template-columns:130px auto;gap:7px;align-items:center}.platform-request-status-form select{min-width:130px;padding:8px 9px;font-size:11px}.platform-request-status-form .btn{padding:9px 12px}.platform-request-empty{background:#fff;border:1px dashed var(--line);border-radius:16px;padding:42px 16px;text-align:center;color:var(--muted);font-size:12px}
@media(max-width:1000px){.platform-metrics-with-requests{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.platform-metrics-with-requests{grid-template-columns:1fr}.platform-requests-head{align-items:flex-start;flex-direction:column}.platform-request-card{grid-template-columns:1fr}.platform-request-status-form{grid-template-columns:1fr auto}.subscription-request-actions{flex-direction:column}.subscription-request-actions .btn{width:100%}}

/* V1.92 — public request honeypot */
.subscription-hp{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}

/* V1.93 — Google Login */
.auth-divider{display:flex;align-items:center;gap:10px;margin:18px 0 14px;color:var(--muted);font-size:11px}.auth-divider::before,.auth-divider::after{content:"";height:1px;background:var(--line);flex:1}.auth-google-block{display:flex;flex-direction:column;align-items:center;gap:10px}.auth-google-block>b{font-size:11px;color:var(--muted);font-weight:650}.google-signin{display:flex;flex-direction:column;align-items:center;gap:5px;max-width:100%}.google-signin-target{min-height:44px;display:flex;justify-content:center;max-width:100%}.google-signin-status{color:var(--red);font-size:10px;min-height:0}.auth-recovery-links{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:7px;margin-top:12px;font-size:10.5px;color:var(--muted)}.auth-recovery-links a:hover{color:var(--primary)}.auth-recovery-intro{margin-top:0!important}.recovery-ready{text-align:center}.recovery-ready h3{margin:2px 0 6px}.recovery-ready p{margin:0 0 16px;color:var(--muted);font-size:12px}.google-settings-card,.google-company-card{overflow:visible}.google-account-row{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:14px 0}.google-account-row>div:first-child{min-width:0}.google-account-row small,.google-account-row b,.google-account-row span{display:block}.google-account-row small{color:var(--muted);font-size:10px}.google-account-row b{margin-top:4px;font-size:13px;word-break:break-word}.google-account-row span{margin-top:5px;color:var(--muted);font-size:10px}.google-config-warning{border:1px solid #eadfb7;background:#fffaf0;color:#7a5a12;border-radius:11px;padding:11px 13px;font-size:11px}.google-config-warning code{direction:ltr;display:inline-block}.google-recovery-regenerate{margin-top:8px}.google-settings-flash{margin:0 0 10px}.owner-recovery-code-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.owner-recovery-code-list code{padding:10px;border:1px solid var(--line);background:#f8f9fb;border-radius:10px;text-align:center;direction:ltr;font-weight:800;letter-spacing:.6px}.google-company-card{margin-top:0}.google-company-head b,.google-company-head small{display:block}.google-company-head b{font-size:14px}.google-company-head small{margin-top:5px;color:var(--muted);font-size:10px}.platform-company-meta span b{word-break:break-word}
@media(max-width:650px){.google-account-row{flex-direction:column;align-items:stretch}.google-account-row .google-signin{align-items:stretch}.owner-recovery-code-list{grid-template-columns:1fr}.auth-recovery-links{line-height:1.7}}

/* V1.94 — stage filters + Excel report controls */
.stage-report-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:14px;flex-wrap:wrap}
.stage-report-toolbar-main{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.stage-filter-form{margin:0}
.stage-filter-control{display:flex;flex-direction:column;gap:6px;min-width:190px}
.stage-filter-control>span{font-size:11px;color:var(--muted);font-weight:750;padding-inline:3px}
.stage-filter-control select{height:42px;min-width:190px;padding:0 12px;border-radius:11px;background:#fff;border:1px solid var(--line);font-weight:750;color:var(--text);box-shadow:0 5px 18px rgba(15,23,42,.025)}
.stage-export-btn{height:42px;gap:8px;background:#fff;border-color:var(--line);white-space:nowrap}
.stage-export-icon{font-size:18px;line-height:1;color:var(--primary);font-weight:900;transform:translateY(-1px)}
.stage-report-toolbar-create{margin-inline-start:auto}
.badge.completed{background:var(--green-soft);color:var(--green);font-weight:800}
@media(max-width:650px){
  .stage-report-toolbar,.stage-report-toolbar-main{align-items:stretch;width:100%}
  .stage-report-toolbar-main{display:grid;grid-template-columns:1fr}
  .stage-filter-control,.stage-filter-control select,.stage-export-btn{width:100%;min-width:0}
  .stage-report-toolbar-create{width:100%;margin-inline-start:0}
  .stage-report-toolbar-create .btn{width:100%}
}


/* V1.96 — stage all/completed toggle + cleaner export control */
.stage-filter-form{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.stage-completed-toggle{height:42px;display:inline-flex;flex-direction:row;align-items:center;gap:8px;padding:0 13px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--text);font-size:12px;font-weight:750;cursor:pointer;box-shadow:0 5px 18px rgba(15,23,42,.025)}
.stage-completed-toggle input{width:16px;height:16px;margin:0;accent-color:var(--primary);cursor:pointer}
.stage-export-btn{gap:0}
@media(max-width:650px){.stage-filter-form{width:100%;align-items:stretch}.stage-completed-toggle{width:100%;justify-content:flex-start}}


/* V1.98 — unified Arabic date format dd/mm/yyyy */
.date-input{direction:ltr;text-align:center;letter-spacing:.2px}
.date-input::placeholder{color:#a4adbd;letter-spacing:0}
.datetime-date,.datetime-time{direction:ltr}

/* V1.100 — date can be typed as dd/mm/yyyy or selected from the native calendar */
.date-combo{position:relative;display:block;min-width:135px}
.date-combo .date-input{padding-left:40px;min-width:100%}
.date-picker-btn{position:absolute;left:5px;top:50%;transform:translateY(-50%);width:30px;height:30px;border:0;border-radius:8px;background:transparent;color:#111827;display:grid;place-items:center;padding:0;z-index:2}
.date-picker-btn:hover{background:#f2f4f7;color:var(--primary)}
.date-picker-btn:focus-visible{outline:2px solid var(--primary);outline-offset:1px}
.date-picker-btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.native-date-picker{position:absolute!important;left:7px;top:50%;width:1px!important;height:1px!important;min-width:0!important;padding:0!important;border:0!important;opacity:0;pointer-events:none;transform:translateY(-50%)}


/* V1.102 — compact live count for the current stage filter */


/* V1.103 — filtered item count beside the section title */
.topbar-heading-line{display:flex;align-items:baseline;gap:14px;min-width:0;flex-wrap:wrap}
.topbar-heading-count{display:inline-flex;align-items:baseline;gap:5px;color:var(--muted);font-size:12px;font-weight:650;white-space:nowrap}
.topbar-heading-count b{color:var(--text);font-size:14px;font-weight:850}
@media(max-width:650px){
  .topbar-heading-line{gap:9px}
  .topbar-heading-count{font-size:11px}
  .topbar-heading-count b{font-size:12px}
}


/* V1.105 — Google entry on public landing */
.landing-google-entry{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:16px;min-height:44px}
.landing-google-entry>span{font-size:11px;color:var(--muted);font-weight:700}
.landing-google-entry .google-signin{margin:0}
.landing-v83-actions.is-google-visitor{justify-content:center}
@media(max-width:560px){
  .landing-google-entry{flex-direction:column;gap:7px}
  .landing-google-entry .google-signin-target{max-width:100%;overflow:hidden}
}


/* V1.106 — keep Google login visible on the login page before production configuration */
.google-login-preview{width:min(320px,100%);height:44px;border:1px solid #d8dde6;border-radius:8px;background:#fff;color:#25324a;display:flex;align-items:center;justify-content:center;gap:12px;font-weight:700;font-size:13px;cursor:not-allowed;opacity:1}
.google-login-preview-mark{width:22px;height:22px;display:grid;place-items:center;flex:0 0 22px}.google-login-preview-mark svg{width:18px;height:18px;display:block}

/* V1.107 — Google is a public identity entry; unlinked accounts stay on the public landing and can log out. */


/* V1.108 — Google-first owners/managers + subscription conversion */
.subscription-google-account{margin:0 0 14px;padding:11px 13px;border:1px solid var(--line);border-radius:12px;background:#f8f9fc;display:grid;gap:3px}
.subscription-google-account span{font-size:10px;color:var(--muted);font-weight:700}.subscription-google-account b{font-size:12px;direction:ltr;text-align:right}.subscription-google-account small{font-size:10px;color:var(--muted)}
.platform-request-actions-wrap{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.request-google-email b{direction:ltr;display:inline-block}.request-google-missing{color:var(--muted)}
.request-converted-badge{display:inline-flex;align-items:center;min-height:36px;padding:0 11px;border-radius:10px;background:var(--green-soft);color:var(--green);font-size:11px;font-weight:800}
.manager-email-note{margin:0;color:var(--muted);font-size:11px;line-height:1.8}
.platform-owners-card{display:flex;flex-direction:column;gap:16px}.platform-owner-count{font-weight:900;color:var(--primary);background:var(--primary-soft);padding:7px 10px;border-radius:999px;font-size:12px;white-space:nowrap}
.platform-owners-list{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.platform-owner-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:11px;padding:12px 14px;background:#fff;border-bottom:1px solid var(--line)}.platform-owner-row:last-child{border-bottom:0}
.platform-owner-row .platform-owner-avatar{width:38px;height:38px;border-radius:11px;background:var(--dark);color:#fff;display:grid;place-items:center;font-weight:900}
.platform-owner-row-copy{min-width:0}.platform-owner-row-copy b,.platform-owner-row-copy small{display:block}.platform-owner-row-copy b{font-size:12px}.platform-owner-row-copy small{font-size:10px;color:var(--muted);margin-top:3px;direction:ltr;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.platform-owner-link-state{font-size:10px;font-weight:800;padding:6px 8px;border-radius:999px;white-space:nowrap}.platform-owner-link-state.is-linked{background:var(--green-soft);color:var(--green)}.platform-owner-link-state.is-pending{background:#f2f4f7;color:#667085}
.owner-bootstrap-link{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 14px;border:1px dashed #d9deea;border-radius:14px;background:#fafbfe}.owner-bootstrap-link b,.owner-bootstrap-link small{display:block}.owner-bootstrap-link b{font-size:12px}.owner-bootstrap-link small{font-size:10px;color:var(--muted);margin-top:3px}
.platform-add-owner-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:10px;align-items:end}.platform-add-owner-form .btn{height:42px}.platform-owner-limit-note{margin:0!important;text-align:center;background:#f8f9fc;border-radius:11px;padding:10px}
@media(max-width:760px){.platform-add-owner-form{grid-template-columns:1fr}.owner-bootstrap-link{align-items:stretch;flex-direction:column}.platform-owner-row{grid-template-columns:38px minmax(0,1fr)}.platform-owner-link-state{grid-column:2;justify-self:start}.platform-request-actions-wrap{align-items:stretch;flex-direction:column}.platform-request-actions-wrap>.btn,.platform-request-actions-wrap form{width:100%}}


/* V1.109 — DB-only Platform Owners */
.platform-owner-db-note{margin:14px 0 0;color:var(--muted);font-size:11px;line-height:1.8;border-top:1px solid var(--line);padding-top:12px}

/* V1.110 — compact stage filter layout on phones only */
@media (max-width:650px){
  .stage-report-toolbar{
    width:100%;
    align-items:stretch;
    gap:10px;
  }
  .stage-report-toolbar-main{
    width:100%;
    display:grid;
    grid-template-columns:1fr;
    gap:9px;
    align-items:end;
  }
  .stage-filter-form{
    width:100%;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:8px;
    align-items:end;
  }
  .stage-filter-control,
  .stage-filter-control select{
    width:100%;
    min-width:0;
  }
  .stage-completed-toggle{
    width:auto;
    min-width:116px;
    justify-content:center;
    padding-inline:12px;
    flex-shrink:0;
  }
  .stage-export-btn{
    width:auto;
    min-width:0;
    justify-self:start;
    padding-inline:16px;
  }
}

@media (max-width:390px){
  .stage-filter-form{
    grid-template-columns:minmax(0,1fr) 104px;
    gap:7px;
  }
  .stage-completed-toggle{
    min-width:104px;
    padding-inline:9px;
  }
  .stage-export-btn{
    padding-inline:14px;
  }
}


/* V1.111 — iPad/tablet row action menu: portal outside the scrolling table */
.row-menu-popover.row-menu-portal{
  position:fixed;
  min-width:155px;
  max-width:min(240px,calc(100vw - 20px));
  background:#fff;
  border:1px solid var(--line);
  border-radius:10px;
  padding:5px;
  box-shadow:0 14px 35px rgba(15,23,42,.18);
  z-index:10050;
  -webkit-overflow-scrolling:touch;
}
.row-menu-popover.row-menu-portal form{margin:0}
.row-menu-popover.row-menu-portal button{
  width:100%;
  text-align:right;
  border:0;
  background:transparent;
  padding:10px 11px;
  border-radius:7px;
  font-size:12px;
  color:#475467;
  white-space:nowrap;
  min-height:40px;
}
.row-menu-popover.row-menu-portal button.danger-action{color:var(--red);font-weight:700}
@media (max-width:1100px){
  .row-menu-popover.row-menu-portal{min-width:170px}
  .row-menu-popover.row-menu-portal button{min-height:44px;font-size:13px}
}
