/* Operations uses the same reference theme as the process map.
   Presentation only: authentication, forms, permissions and data stay unchanged. */
body { background: var(--ui-canvas); color: var(--ui-ink); }
body > .topbar { min-height: 68px; padding: 0 28px; gap: 24px; background: #191b18; }
.brand { font-size: 25px; letter-spacing: .14em; font-weight: 750; gap: 23px; }
.brand:hover { text-decoration: none; }
.brand span { color: #f1f1ee; border-color: #50514e; font-size: 13px; padding-left: 23px; letter-spacing: 0; }
.topbar .kano-product-nav { align-self: center; align-items: center; gap: 5px; padding: 4px; }
.topbar .kano-product-nav a { border: 0; padding: 8px 14px; color: #d6d9d1; min-height: 35px; font-size: 12px; }
.topbar .kano-product-nav a[aria-current=page] { color: #252b20; background: #f5f6f1; }
.account { min-width: 0; color: #d6d9d1; gap: 12px; font-size: 12px; }
.account > span { max-width: 230px; overflow-wrap: anywhere; }
.account button { border: 1px solid #50564a; border-radius: 22px; padding: 7px 12px; font-size: 11px; text-decoration: none; }
.account button:hover { background: #30352c; }
.workspace-context { display: flex; gap: 10px 16px; align-items: center; max-width: 1800px; margin: 0 auto; padding: 18px 28px 0; color: var(--ui-muted); font-size: 11px; line-height: 1.8; }
.workspace-context p { margin: 0; }
.workspace-kind { flex: none; border: 1px solid #dce3d2; background: #ecf1e5; color: #4b6037; padding: 5px 10px; border-radius: 20px; font-size: 11px; }
main { padding: 23px 28px 32px; min-width: 0; }
.breadcrumb { font-size: 11px; color: var(--ui-muted); margin-bottom: 17px; flex-wrap: wrap; }
.breadcrumb a { color: #424b39; }
.eyebrow { color: var(--ui-muted); font-size: 11px; letter-spacing: .025em; }
h1 { color: var(--ui-ink); font-size: clamp(24px,2.1vw,31px); letter-spacing: -.035em; line-height: 1.45; }
h2 { color: var(--ui-ink); }
.subtitle { color: var(--ui-muted); font-size: 13px; line-height: 1.8; }
.page-heading { gap: 20px; margin-bottom: 23px; }
.page-heading > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.page-heading .actions { flex-shrink: 0; align-items: center; }
.button { min-height: 38px; padding: 9px 16px; border: 1px solid var(--ui-line); border-radius: 24px; color: #404a36; font-size: 12px; }
.button:hover { text-decoration: none; }
.button.primary { background: var(--ui-ink); border-color: var(--ui-ink); color: #fff; }
.button.primary:hover { background: #3b4432; }
.button.secondary:hover { background: var(--ui-soft); border-color: #d5ddcb; }
.button.small { min-height: 34px; padding: 6px 12px; font-size: 11px; }
.actions { gap: 8px; }
.overview-line { border-color: var(--ui-line); border-radius: 17px; box-shadow: var(--ui-shadow); margin-bottom: 21px; }
.stat { padding: 17px 22px; border-color: var(--ui-line); min-width: 140px; }
.stat .label { color: var(--ui-muted); font-size: 11px; margin-bottom: 5px; }
.stat strong { font-size: 26px; color: var(--ui-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.stat .meta { color: var(--ui-muted); font-size: 11px; }
.panel { border-color: var(--ui-line); border-radius: 18px; box-shadow: var(--ui-shadow); margin-bottom: 21px; }
.panel-heading { padding: 18px 21px; border-color: var(--ui-line); }
.panel-heading h2 { font-size: 15px; font-weight: 650; }
.panel-heading p { color: var(--ui-muted); font-size: 11px; line-height: 1.8; margin-top: 5px; }
.panel-heading .button { flex: none; }
.toolbar { padding: 13px 21px; border-color: var(--ui-line); }
.search input { min-height: 40px; border-color: var(--ui-line); background: #f8f9f5; border-radius: 11px; padding: 9px 12px; }
.count { color: var(--ui-muted); font-size: 11px; }
.table-wrap { scrollbar-width: thin; }
.table-wrap table { min-width: 670px; }
th { padding: 12px 20px; background: #f7f8f4; color: #58644b; border-color: var(--ui-line); font-size: 11px; font-weight: 550; line-height: 1.8; letter-spacing: 0; }
td { padding: 16px 20px; border-color: #edf0e8; font-size: 13px; color: #3e4e30; line-height: 1.75; font-variant-numeric: tabular-nums; }
td:first-child { min-width: 185px; }
td small { color: var(--ui-muted); font-size: 11px; line-height: 1.8; margin-top: 5px; }
tbody tr:hover { background: #f9fbf5; }
.code { font-size: 11px; color: #5f6d54; overflow-wrap: anywhere; }
.link-button { color: #303b26; line-height: 1.75; }
.badge { border-radius: 20px; padding: 4px 9px; color: #58624f; background: #f0f2eb; font-size: 11px; }
.badge.green { color: var(--ui-success); background: var(--ui-success-bg); }
.badge.blue { color: var(--ui-warm-ink); background: var(--ui-warm); }
.badge.amber { color: #865f24; background: #fbf3df; }
.badge.red { color: #923f32; background: #fbece7; }
.badge.dark { color: #414d36; background: #ecefe7; }
.progress { gap: 10px; font-size: 12px; min-width: 116px; color: var(--ui-muted); }
.track { height: 6px; background: repeating-linear-gradient(125deg,#e9ebe5,#e9ebe5 2px,#fafbf8 2px,#fafbf8 5px); }
.track span { background: var(--ui-accent); }
.note { border: 1px solid var(--ui-line); background: #edf0e9; color: #59654f; border-radius: 12px; padding: 12px 16px; gap: 10px; font-size: 12px; line-height: 1.8; }
.note strong { color: #465838; }
.note.warning { background: var(--ui-warm); border-color: #edcfc0; color: var(--ui-warm-ink); }
.note.warning strong { color: var(--ui-warm-ink); flex: none; }
.note a { text-decoration: underline; text-underline-offset: 3px; }
.tabs { background: #fff; border: 0; border-radius: 30px; padding: 6px; gap: 4px; margin-bottom: 20px; box-shadow: var(--ui-shadow); scrollbar-width: thin; }
.tabs button { flex: none; border: 0; border-radius: 24px; padding: 9px 16px; min-height: 38px; color: var(--ui-muted); font-size: 12px; }
.tabs button:hover { background: var(--ui-soft); }
.tabs button.active { color: #fff; background: var(--ui-ink); font-weight: 550; }
/* Keep the actual eight-stage route and its controls, using the map's surfaces. */
.route { padding: 27px 20px; min-width: 1100px; background-color: #fbfcf8; background-image: radial-gradient(#d8dfcf .65px,transparent .65px); background-size: 18px 18px; }
.route-step { padding: 0 11px; }
.route-step::before { background: #bac6ae; left: 45px; top: 19px; }
.route-step button { display: block; width: 100%; border-radius: 13px; padding: 0 5px 8px; min-height: 137px; }
.route-step button:hover { background: #edf1e77a; }
.step-dot { width: 38px; height: 38px; background: #fff; border-color: #d5dfc9; color: #61744e; font-size: 12px; margin-bottom: 13px; box-shadow: 0 3px 8px #26361708; }
.route-step.done .step-dot { color: var(--ui-success); background: var(--ui-success-bg); border-color: #c5d8b8; }
.route-step.working .step-dot { color: var(--ui-warm-ink); background: var(--ui-warm); border-color: #ecc7b0; box-shadow: 0 0 0 4px #fff5ed; }
.route-step h3 { color: #39492c; font-size: 12px; min-height: 42px; line-height: 1.8; }
.route-step p { color: var(--ui-muted); font-size: 11px; }
.route-step .badge { font-size: 10px; margin-top: 10px; }
.split { gap: 21px; }
.detail-list { padding: 6px 21px; }
.detail-row { border-color: var(--ui-line); padding: 14px 0; font-size: 12px; }
.detail-row span, .muted { color: var(--ui-muted); }
.detail-row strong { overflow-wrap: anywhere; text-align: right; }
.section-copy { padding: 14px 21px; color: var(--ui-muted); border-color: var(--ui-line); font-size: 11px; line-height: 1.9; }
.empty { padding: 35px 22px; font-size: 12px; color: var(--ui-muted); line-height: 1.9; }
.empty strong { font-size: 15px; color: #465738; }
.member-avatar { background: #edf2e6; color: #50693b; width: 34px; height: 34px; }
.site-footer { border-color: var(--ui-line); color: var(--ui-muted); font-size: 11px; padding: 17px 28px; gap: 16px; line-height: 1.8; }
.loading { color: var(--ui-muted); }
.spinner { border-color: #e1e6d8; border-top-color: var(--ui-accent); }
/* Existing login and native-record dialogs share the same visual system. */
.login { margin: 35px auto; border-color: var(--ui-line); border-radius: 21px; box-shadow: var(--ui-shadow); }
.login-intro { background: #edf1e7; padding: 42px; }
.login-intro h1 { font-size: 28px; line-height: 1.65; }
.login-intro p { color: #5c6c4f; font-size: 13px; line-height: 1.9; }
.login-list li { color: #536744; border-color: #dce3d2; font-size: 12px; padding: 13px 0; }
.login-body { padding: 38px; }
.login-body h2 { font-size: 20px; margin-bottom: 23px; }
.login-body label, dialog label { color: #546349; font-size: 12px; line-height: 1.7; }
input, select, textarea { min-height: 40px; border-color: #dce3d4; border-radius: 10px; background: #fff; color: #34432a; font-size: 13px; padding: 9px 11px; }
input[readonly] { background: #f3f5ef; color: #637456; }
.demo-login { border-color: var(--ui-line); margin-top: 25px; padding-top: 19px; }
.demo-login p { font-size: 12px; color: var(--ui-muted); line-height: 1.8; }
.form-error { background: #fff0eb; color: #963f2c; border-radius: 11px; line-height: 1.8; }
dialog { border-color: var(--ui-line); border-radius: 20px; color: var(--ui-ink); box-shadow: 0 25px 100px #26361730; }
dialog::backdrop { background: #20271b66; }
dialog header { border-color: var(--ui-line); padding: 23px 24px 18px; }
dialog h2 { font-size: 20px; }
dialog footer { background: #fafbf7; border-color: var(--ui-line); }
.icon-button { border-radius: 50%; min-width: 34px; min-height: 34px; padding: 0; color: #61744f; background: var(--ui-soft); }
.form-hint { font-size: 11px; line-height: 1.9; color: var(--ui-muted); }
.team-edit { border-color: var(--ui-line); border-radius: 12px; background: #fafcf6; padding: 15px; }
#toast { border-radius: 14px; padding: 15px 21px; color: #fff; background: var(--ui-ink); }
#toast.error { background: #813e2e; }
@media(max-width:1200px) {
  .brand span { display: none; }
  .topbar .kano-product-nav a { padding: 8px 12px; font-size: 11px; }
  .account > span { max-width: 180px; }
  .split { grid-template-columns: minmax(0,1fr); }
}
@media(max-width:900px) {
  body > .topbar { gap: 18px; padding: 0 22px; }
  main { padding: 22px; }
  .workspace-context { padding: 17px 22px 0; align-items: flex-start; }
  .stat { min-width: 0; padding: 15px 17px; }
  .stat .meta { display: block; margin-left: 0; }
  .page-heading { align-items: flex-start; }
  .account > span { max-width: 130px; }
}
@media(max-width:720px) {
  body > .topbar { padding: 13px 15px; gap: 12px; flex-wrap: wrap; }
  .brand { font-size: 22px; }
  .account { font-size: 11px; margin-left: auto; gap: 8px; }
  .account > span { max-width: 165px; }
  .topbar .kano-product-nav { order: 3; width: 100%; gap: 4px; min-height: 0; }
  .topbar .kano-product-nav a { flex: 1; font-size: 11px; padding: 8px 10px; }
  .workspace-context { padding: 15px 14px 0; flex-wrap: wrap; gap: 7px; }
  main { padding: 20px 14px; }
  .page-heading { flex-wrap: wrap; gap: 14px; }
  .page-heading .actions { width: 100%; }
  .page-heading .button { font-size: 12px; padding: 8px 14px; }
  h1 { font-size: 24px; }
  .overview-line { grid-template-columns: 1fr 1fr; border-radius: 15px; }
  .stat { border-color: var(--ui-line); padding: 15px; }
  .stat:nth-child(n+3) { border-bottom: 0; }
  .stat strong { font-size: 24px; }
  .panel { border-radius: 15px; }
  .panel-heading { padding: 16px; flex-wrap: wrap; }
  .panel-heading h2 { font-size: 14px; }
  .toolbar { padding: 12px 16px; }
  th, td { padding-left: 16px; padding-right: 16px; }
  .tabs { border-radius: 15px; }
  .tabs button { font-size: 12px; padding: 9px 14px; }
  .note { flex-wrap: wrap; }
  .login { margin: 8px 0 20px; border-radius: 17px; }
  .login-intro, .login-body { padding: 25px; }
  .login-intro h1 { font-size: 24px; }
  .site-footer { padding: 16px; flex-wrap: wrap; gap: 5px; }
  dialog header, #dialog-body { padding-left: 20px; padding-right: 20px; }
  dialog footer { padding: 14px 20px; }
  .team-edit .form-grid { grid-template-columns: 1fr; }
}
/* Ostati: project-first workspace and dependency-driven route. */
.brand { letter-spacing: -.6px; font-size: 29px; }
.registry-toolbar { align-items: flex-end; gap: 12px; }
.registry-toolbar label { display: grid; gap: 5px; color: var(--ui-muted); font-size: 11px; }
.registry-toolbar .search { min-width: 200px; max-width: 400px; }
.registry-toolbar select { min-width: 145px; font-size: 12px; }
.registry-toolbar .count { align-self: center; white-space: nowrap; }
.tabs a { display: flex; align-items: center; flex: none; white-space: nowrap; border-radius: 24px; padding: 9px 16px; min-height: 38px; color: var(--ui-muted); font-size: 12px; }
.tabs a:hover { background: var(--ui-soft); text-decoration: none; }
.tabs a.active { background: var(--ui-ink); color: #fff; }
.progress-explanation { color: var(--ui-muted); font-size: 11px; line-height: 1.8; margin: -8px 0 18px; }
.due-overdue, .stat strong.due-overdue { color: #a44630; }
.synthetic-label { display: inline-block; color: #815b34; }
.attention-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 15px 18px; border: 1px solid #ead7c9; background: #fff9f2; border-radius: 13px; font-size: 12px; margin: 0 0 20px; line-height: 1.8; }
.attention-bar > strong { font-weight: 650; }
.attention-bar a { padding: 4px 0; text-underline-offset: 4px; }
.attention-bar .urgent { color: #a44630; }
.process-route { display: grid; grid-template-columns: repeat(var(--route-columns),minmax(150px,1fr)); align-items: center; gap: 26px; padding: 30px 23px; min-width: 1250px; background-color: #fafbf8; background-image: radial-gradient(#daddd5 .65px,transparent .65px); background-size: 18px 18px; }
.route-column { display: grid; gap: 10px; position: relative; }
.route-column:not(:last-child)::after { content: '→'; position: absolute; left: calc(100% + 5px); top: 50%; transform: translateY(-50%); color: #7a8371; font-size: 17px; }
.parallel-note { position: absolute; bottom: calc(100% + 7px); left: 0; font-size: 10px; color: var(--ui-muted); white-space: nowrap; }
.route-node { display: grid; justify-items: start; gap: 6px; text-align: left; min-height: 188px; width: 100%; padding: 15px 13px; background: #fff; border: 1px solid #dfe3d9; border-radius: 13px; color: var(--ui-muted); font-size: 11px; line-height: 1.8; position: relative; }
.route-node:hover { border-color: #7d8d70; box-shadow: 0 4px 12px #20261c08; }
.route-node strong { color: var(--ui-ink); font-size: 12px; font-weight: 650; }
.route-node .step-dot { margin: 0 0 2px; width: 29px; height: 29px; font-size: 11px; }
.route-node .route-owner { max-width: 100%; overflow-wrap: anywhere; line-height: 1.65; }
.route-node .badge { font-size: 10px; }
.route-node.done { border-color: #cbdcc4; }
.route-node.done .step-dot { background: var(--ui-success-bg); color: var(--ui-success); border-color: #bdd1b5; }
.route-node.working { border-color: #d5a88f; box-shadow: 0 0 0 2px #fff1e9; }
.route-node.working .step-dot { background: var(--ui-warm); color: var(--ui-warm-ink); border-color: #e6c7b3; }
.table-wrap:focus-visible { outline: 2px solid #a54025; outline-offset: -3px; }
#main:focus { outline: none; }
@media (max-width: 720px) {
 .registry-toolbar > label { flex: 1; min-width: 130px; }
 .registry-toolbar .search { min-width: 100%; max-width: none; }
 .registry-toolbar select { min-width: 0; width: 100%; }
 .tabs a { padding: 9px 13px; }
 .attention-bar { align-items: flex-start; flex-direction: column; gap: 3px; }
 .process-route { padding: 30px 18px; }
}
