/* Smartsheet-lookalike tokens — MEASURED from live app crawl 20 Aug 2026
   (_work/crawl computed CSS): font "Inter var" 13/14px, accent #2d60d7,
   rail navy #041c4e, text 33,37,54 / 68,68,68, soft surface #f5f6fa */
:root {
  --sds--ursa-icons--background-color: #ececec; /* real app icon plate */

  --accent: #2d60d7;
  --accent-hover: #2d60d7;
  --brand-green: #1e8e3e;
  --bg: #ffffff;
  --bg-soft: #ececec;
  --panel: #ffffff;
  --line: #e0e0e0;
  --line-strong: #b9babc;
  --text: #041c4e;
  --text-dim: #444;
  --text-faint: #5f6786;
  --rail-bg: #1c4ac4;
  --rail-text: #ffffff;
  --btn-primary-bg: #2d60d7;
  --btn-primary-text: #ffffff;
  --row-sel: #e9f2fc;
  --modal-bg: #ffffff;
  --modal-head: #f4f5f8;
  --font: "Inter var", Inter, "Segoe UI", Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  line-height: 18.2px; }
.hidden { display: none !important; }

/* login */
/* Login — exact clone of app.smartsheet.com/login (measured 22 Aug 2026) */
.login-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100vh; background: #fff; font-family: Inter, Arial, Helvetica, sans-serif;
  padding-bottom: 5vh; }
.login-col { width: 372px; display: flex; flex-direction: column; }
.login-logo { display: flex; justify-content: center; margin-bottom: 96px; }
.login-h1 { font-size: 24px; font-weight: 600; color: #0d0d0d; margin: 0 0 24px; letter-spacing: -0.3px; }
.login-label { display: block; font-size: 12px; font-weight: 500; color: #0d0d0d; margin-bottom: 6px; }
.login-alt { margin: 0 0 18px; }
.login-region-row { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #333; margin-top: 26px; }
.login-col input { width: 100%; box-sizing: border-box; height: 40px; padding: 0 12px;
  border: 1px solid #c8ceda; border-radius: 8px; font: inherit; font-size: 14px; margin-bottom: 24px;
  color: #0d0d0d; }
.login-col input:focus { outline: none; border-color: #2d60d7; box-shadow: 0 0 0 3px rgba(45,96,215,.18); }
.login-continue { width: 100%; height: 40px; background: #2d60d7; color: #f5f8ff; font-weight: 500;
  font-size: 14px; border: 0; border-radius: 10px; cursor: pointer;
  transition: background-color 0.2s cubic-bezier(0.3,0.3,0.2,1); }
.login-continue:hover { background: #2558c4; }
.login-continue:active { transform: scale(0.99); }
.login-err { color: #c0392b; font-size: 13px; min-height: 18px; margin: 8px 0 0; }
.login-alt { font-size: 14px; color: #333; }
.login-alt a, .login-forgot { color: #184bc3; font-weight: 500; text-decoration: none; }
.login-alt a:hover, .login-forgot:hover { text-decoration: underline; }
.login-userline { font-size: 13px; color: #333; margin-bottom: 14px; }
.login-userline b { color: #0d0d0d; }
.login-forgot { display: block; font-size: 13px; margin-top: 18px; }
.login-footer { display: flex; gap: 20px; align-items: center; justify-content: center;
  font-size: 12.5px; color: #333; margin-top: 44px; }
.login-footer a { color: #184bc3; font-weight: 500; text-decoration: none; }
.login-footer a:hover { text-decoration: underline; }
.login-region { background: transparent; color: #184bc3; font-weight: 500; font-size: 12.5px;
  border: 0; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.login-region:hover { background: #f0f4ff; }
.login-legal { color: #5f6786; }
.login-col .login-legal { display: block; text-align: center; margin-top: 70px; font-size: 14px; }

/* chrome */
.topbar { display: flex; align-items: center; gap: 24px; height: 40px; background: #fff;
  border-bottom: 1px solid var(--line); padding: 0 16px; position: relative; }
.brand { font-size: 19px; color: var(--brand-green); font-weight: 700; }
.brand span { color: var(--text); }
.search { width: 400px; max-width: 34vw; }
.search input { width: 100%; padding: 7px 12px 7px 32px; border: 1px solid #dcdde0;
  border-radius: 4px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M10.5 3a7.5 7.5 0 1 0 4.55 13.46l4.24 4.25a1.1 1.1 0 0 0 1.56-1.56l-4.25-4.24A7.5 7.5 0 0 0 10.5 3zm0 2.2a5.3 5.3 0 1 1 0 10.6 5.3 5.3 0 0 1 0-10.6z'/%3E%3C/svg%3E") 10px center/14px no-repeat;
  font-size: 13px; color: var(--text); }
.search input::placeholder { color: #9a9a9d; }
.top-right { margin-left: auto; font-size: 13px; color: var(--text-dim); position: relative; }
.profile-btn { display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 4px 6px; border-radius: 4px; }
.profile-btn:hover { background: #f2f6fb; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; }
.profile-menu { position: absolute; right: 0; top: calc(100% + 6px); width: 220px;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 10px 34px rgba(0,0,0,.18); z-index: 60; font-size: 13px; }
.pm-head { padding: 10px 14px 2px; color: #999; font-size: 11px;
  text-transform: uppercase; letter-spacing: .04em; }
.pm-user { padding: 0 14px 10px; font-weight: 700; color: var(--text);
  border-bottom: 1px solid var(--line); word-break: break-all; }
.pm-item { padding: 10px 14px; cursor: pointer; }
.pm-item:hover { background: #f2f6fb; }
.pm-item#logoutBtn { color: #c0392b; font-weight: 600; }

.body { display: flex; height: calc(100vh - 40px); }
/* secondary context sidebar — EXACT: 300px, bg #f5f6fa, hdr 140px, items 28px/13px */
.sidebar { width: 300px; background: #dcdde0; border-right: 1px solid var(--line);
  padding: 0; overflow-y: auto; flex-shrink: 0; }
.side-hdr { display: flex; align-items: center; gap: 10px; height: 140px;
  padding: 0 18px; border-bottom: 1px solid transparent; }
.side-hdr .ws-logo { width: 20px; height: 20px; border-radius: 4px;
  background: #2d60d7; color: #fff; display: flex; align-items: center;
  justify-content: center; font-size: 11px; font-weight: 700; }
.side-hdr .ws-name { font-size: 15px; font-weight: 600; color: var(--text); }
.side-group { font-size: 11px; text-transform: uppercase; color: var(--text-faint);
  padding: 10px 18px 4px; letter-spacing: .04em; }
.side-item { height: 28px; display: flex; align-items: center; gap: 8px;
  padding: 0 18px; font-size: 13px; cursor: pointer; color: rgb(68, 68, 68); }
.side-item:hover { background: #ececec; }
.side-item.active { color: var(--accent); font-weight: 600; background: #e9f2fc; }
.tree-node { display: flex; align-items: center; gap: 7px; height: 28px;
  font-size: 13px; color: rgb(68, 68, 68); cursor: pointer; padding: 0 12px; }
.tree-node:hover { background: #ececec; }
.tree-node .arrow { width: 14px; font-size: 10px; color: var(--text-faint);
  transition: transform .12s; }
.tree-kids { margin-left: 16px; border-left: 1px solid transparent; padding-left: 2px; }
.ico-sheet, .ico-report, .ico-dash, .ico-folder { width: 16px; height: 16px;
  border-radius: 3px; flex-shrink: 0; display: inline-flex; align-items: center;
  justify-content: center; font-size: 10px; color: #fff; }
.ico-sheet { background: #1e8e3e; }
.ico-report { background: #8b5cf6; }
.ico-dash { background: #d97706; }
.body { display: flex; height: calc(100vh - 40px); }
/* left icon rail — EXACT from element dump: 91px, btn 54px, 12px/600 labels */
.rail { width: 91px; background: linear-gradient(180deg, #1842b0 0%, #3240b6 50%, #4a3ebf 100%);
  display: flex; flex-direction: column; align-items: stretch; padding: 6px 0; gap: 0;
  flex-shrink: 0; }
.rail-logo { height: 44px; margin: 2px 0 4px; display: flex; align-items: center;
  justify-content: center; color: #fff; }
.rail-btn { display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; height: 54px; border-radius: 8px; color: #fff; cursor: pointer;
  font-size: 12px; font-weight: 600; letter-spacing: 0; opacity: .95; }
.rail-btn.tall { height: 70px; }
.rail-btn svg { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.rail-btn:hover { background: rgba(255,255,255,.14); opacity: 1; }
.rail-btn.active { background: rgba(255,255,255,.20); opacity: 1; }
.rail-create { margin: 4px auto; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px; width: 46px; height: 64px; color: #fff; cursor: pointer;
  font-size: 12px; font-weight: 600; }
.rail-create button { width: 28px; height: 28px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,0.3); color: #fff; font-size: 18px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center; }
.rail-spacer { flex: 1; }
.launcher-item { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px;
  cursor: pointer; font-size: 14px; }
.launcher-item:hover { background: #f2f6fb; border-color: var(--accent); }
/* launcher flyout (real: slide-down panel under topbar right) */
.flyout { position: absolute; right: 12px; top: 44px; width: 560px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 40px rgba(20,30,60,.18);
  z-index: 60; overflow: hidden; }
.fly-head { font-size: 13px; font-weight: 600; color: var(--text-dim); padding: 12px 18px 8px;
  border-bottom: 1px solid var(--line); }
.fly-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 14px 18px 18px; }
.fly-grid .launcher-item { border-color: #e3e5ea; }
@keyframes flyoutOut { to { opacity: 0; transform: translateY(-6px) scale(0.98); } }
.search-big { width: 100%; max-width: 640px; padding: 10px 14px; font-size: 15px;
  border: 1px solid var(--line-strong); border-radius: 6px; }
main { flex: 1; overflow: auto; padding: 20px 26px; background: var(--bg-soft); }

/* generic */
h2.view-title { font-size: 20px; margin: 0 0 4px; }
.view-sub { color: var(--text-dim); font-size: 13px; margin-bottom: 18px; }
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-text); border: 0; border-radius: 4px;
  padding: 8px 16px; font-size: 14px; cursor: pointer; font-weight: 600; }
.btn-primary:hover { background: #1842b0; }
.btn-primary:disabled { background: #9db8ca; cursor: default; }
.btn-sec { background: #fff; color: var(--text); border: 1px solid var(--line-strong);
  border-radius: 3px; padding: 8px 14px; font-size: 13px; cursor: pointer; }

/* cards / lists */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  padding: 16px 18px; margin-bottom: 14px; }
.card h3 { margin: 0 0 8px; font-size: 15px; }
.program-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 4px; margin-bottom: 10px; background: #fff; cursor: pointer; }
.program-row:hover { border-color: var(--accent); }
.program-ico { width: 34px; height: 34px; border-radius: 4px; background: #e8f1f6;
  color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* grid */
.grid-wrap { background: #fff; border: 1px solid #d9d9d9; border-radius: 4px; overflow: auto; }
.grid-toolbar { display: flex; align-items: center; gap: 2px; padding: 6px 4px;
  border-bottom: 1px solid var(--line); background: #fff; }
.grid-toolbar button { font-size: 13px; color: #444; padding: 5px 10px; border-radius: 4px;
  cursor: pointer; background: transparent; border: 0; }
.grid-toolbar button:hover { background: #ececec; }
table.ss-grid { border-collapse: collapse; width: 100%; font-size: 13px; background: #fff; }
.ss-grid th { background: #dedddc; color: #333; font-weight: 700; text-align: left;
  padding: 8px 10px; height: 36px; border-right: 1px solid #e0e0e0; border-bottom: 1px solid #d0d0d0;
  font-size: 12.5px; white-space: nowrap; }
.ss-grid td { border-right: 1px solid #ececec; border-bottom: 1px solid #e0e0e0;
  padding: 8px 10px; min-width: 110px; height: 36px; white-space: nowrap; }
.ss-grid tr:hover td { background: #f5f8fc; }
.ss-grid td.rownum, .ss-grid th.rownum { width: 40px; text-align: center; color: #888;
  font-weight: 400; background: #fafafa; border-right: 1px solid #e0e0e0; }
.ss-grid tr.sel td { background: var(--row-sel); }
.ss-grid td.chk { text-align: center; min-width: 60px; }
.ss-grid input[type=checkbox] { width: 15px; height: 15px; cursor: pointer; }
.ss-grid a { color: var(--accent); }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin: 14px 0; }
.tab { padding: 8px 14px; font-size: 13.5px; cursor: pointer; border-bottom: 3px solid transparent; }
.tab.active { border-bottom-color: var(--accent); color: var(--accent); font-weight: 700; }
.tab .count { color: #999; font-weight: 400; }

/* tree */
.tree-node { padding: 4px 0 4px 0; font-size: 13.5px; }
.tree-kids { margin-left: 22px; border-left: 1px dotted var(--line-strong); padding-left: 10px; }
.ico { display: inline-block; width: 18px; color: var(--accent); }

/* modal */
.modal-back { position: fixed; inset: 0; background: rgba(20,25,30,.45);
  animation: fadeIn 0.25s cubic-bezier(0.3,0.3,0.2,1);
  display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal { background: var(--modal-bg); border-radius: 6px; width: 560px; max-width: 94vw;
  max-height: 88vh; overflow: auto; box-shadow: 0 18px 60px rgba(0,0,0,.25); }
.modal-head { display: flex; align-items: center; padding: 14px 20px;
  background: var(--modal-head); border-bottom: 1px solid var(--line); font-weight: 700; font-size: 16px; }
.modal-x { margin-left: auto; width: 28px; height: 28px; border: 0; border-radius: 6px;
  background: transparent; color: #5f6786; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center;
  transition: background-color 0.2s cubic-bezier(0.3,0.3,0.2,1), color 0.2s cubic-bezier(0.3,0.3,0.2,1); }
.modal-x:hover { background: #e8e8ec; color: #041c4e; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end;
  padding: 14px 20px; border-top: 1px solid var(--line); }
.modal-body { padding: 0 0 10px; }
.modal-body label { display: block; font-size: 12.5px; color: var(--text-dim); }
.modal-body .form-row { display: flex; align-items: stretch; }
.modal-body .form-row > label { width: 42%; background: var(--modal-head);
  margin: 0; padding: 13px 16px; border-right: 1px solid #d9d4c0; }
.modal-body .form-row > input, .modal-body .form-row > select,
.modal-body .form-row > textarea { flex: 1; width: auto; margin: 8px 14px;
  align-self: center; }
.modal-body > label:only-child { padding: 12px 20px 0; }
.modal-body input, .modal-body select, .modal-body textarea { width: 100%;
  padding: 8px 10px; border: 1px solid var(--load-strong, var(--line-strong));
  border-radius: 3px; font-size: 13.5px; }
.wiz-steps { display: flex; gap: 8px; margin-bottom: 16px; }
.wiz-step { font-size: 12px; color: #999; padding: 4px 10px; border-radius: 12px;
  background: #f2f2f2; }
.wiz-step.on { background: var(--accent); color: #fff; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 6px 12px; font-size: 13.5px; }
.kv dt { color: var(--text-dim); } .kv dd { margin: 0; }

/* labs panel */
.lab-pass { color: #1e8e3e; font-weight: 700; }
.lab-fail { color: #c0392b; }
.check-line { font-size: 13px; color: var(--text-dim); margin: 2px 0 2px 18px; }
.ok::before { content: "\2713  "; color: #1e8e3e; }
.no::before { content: "\2717  "; color: #c0392b; }
.toast { position: fixed; bottom: 24px; right: 24px; background: #1e8e3e; color: #fff;
  padding: 12px 20px; border-radius: 4px; font-size: 14px; z-index: 99;
  box-shadow: 0 8px 30px rgba(0,0,0,.25); }

/* workspace landing hero (real: #c4cee5 band) */
.ws-hero { background: #c4cee5; min-height: 96px; padding: 18px 26px; display: flex;
  align-items: center; gap: 16px; border-bottom: 1px solid #b8c4e0; }
.ws-hero h2 { margin: 0; font-size: 20px; font-weight: 600; color: #0b2e82; }
.ws-hero .btn-primary { margin-left: auto; }
.asset-ico { vertical-align: -3px; margin-right: 4px; color: #5f6786; }

/* B13 [parity]: in-sheet edit chrome — selection ring + row hover */
.ss-grid td { cursor: cell; }
.ss-grid tbody tr:hover td { background: #f2f7fd; }
.ss-grid td.cell-sel { outline: 2px solid #2d60d7; outline-offset: -2px; background: #eaf1fc !important; }
