/* INL Advisory client portal. Tokens follow inladvisory.com. No external fonts, no frameworks. */
:root {
  --paper: #f3f3f0;
  --ink: #171717;
  --muted: #60605c;
  --line: #cececa;
  --error: #8c2020;
  --white: #ffffff;
  --gutter: 64px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

h1, h2, h3 { font-weight: 400; margin: 0 0 16px; line-height: 1.1; }
h1 { font-size: clamp(38px, 3.6vw, 54px); letter-spacing: -2.5px; margin-top: 48px; }
h2 { font-size: 32px; letter-spacing: -1px; margin-top: 40px; }

.container { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--white); padding: 8px 12px; z-index: 10; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { font-size: 25px; letter-spacing: -1px; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.inline, .lang { display: inline-flex; margin: 0; gap: 4px; }

.link-button {
  background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.lang-btn {
  background: none; border: 1px solid transparent; color: var(--muted); font: inherit; font-size: 15px; padding: 2px 6px; cursor: pointer;
}
.lang-btn[aria-current="true"] { color: var(--ink); border-color: var(--line); }

main { padding-bottom: 80px; }

.lead { font-size: 20px; color: var(--ink); max-width: 760px; }
.muted { color: var(--muted); }
.eyebrow { color: var(--muted); margin: 48px 0 0; }
.eyebrow + h1 { margin-top: 8px; }
.narrow { max-width: 560px; }

/* Buttons */
.btn {
  display: inline-block; background: var(--ink); color: var(--white); border: 1px solid var(--ink);
  font: inherit; padding: 11px 22px; text-decoration: none; cursor: pointer; border-radius: 0;
}
.btn:hover { background: #000; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }

/* Forms */
.field { margin: 0 0 20px; }
.field label { display: block; margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field select {
  width: 100%; max-width: 560px; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid var(--muted); border-radius: 0; padding: 10px 12px;
}
.field ul { list-style: none; padding: 0; margin: 0; }
.field ul label { display: inline-flex; gap: 8px; align-items: center; }
.check { display: inline-flex !important; gap: 10px; align-items: center; }
.has-error input, .has-error select { border-color: var(--error); }
.field-error, .error-box { color: var(--error); }
.field-error p, .error-box p { margin: 6px 0 0; }
.error-box { border: 1px solid var(--error); padding: 12px 16px; margin-bottom: 20px; background: var(--white); }
.helptext { display: block; color: var(--muted); font-size: 15px; }

/* Messages */
.messages { list-style: none; padding: 0; margin: 24px 0 0; }
.msg { border: 1px solid var(--line); background: var(--white); padding: 12px 16px; margin-bottom: 8px; }
.msg-error { border-color: var(--error); color: var(--error); }

/* Content blocks */
.panel { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 32px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 48px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 24px 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.actions form { margin: 0; }
.title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.title-row .btn { margin-bottom: 16px; }

.project-list, .list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.project-list li, .list li { border-bottom: 1px solid var(--line); padding: 14px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.project-link { font-size: 22px; letter-spacing: -0.5px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 400; color: var(--muted); }

code { font-family: "Courier New", Courier, monospace; font-size: 15px; }
.secret { display: inline-block; max-width: 100%; overflow-wrap: anywhere; background: var(--white); border: 1px solid var(--line); padding: 6px 8px; margin-top: 6px; }
.codes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.steps li { margin-bottom: 12px; }

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .header-inner { min-height: 64px; }
  .nav { gap: 14px; }
  h1 { margin-top: 32px; }
  h2 { font-size: 26px; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
}

.qr { display: block; margin-top: 8px; background: #fff; border: 1px solid var(--line); padding: 8px; max-width: 100%; height: auto; }
.manual { margin: 16px 0 24px; }
.manual summary { cursor: pointer; }

/* Phase 2: project sections, statuses, tasks, comments, files */
:root {
  --tone-gray: #5c5c58; --tone-blue: #1f4e79; --tone-amber: #8a5a00; --tone-green: #2e6b30;
  --tone-red: #8c2020; --tone-purple: #5b3a8c; --internal-bg: #fbf3d9;
}
.small { font-size: 15px; }
.mono { font-family: "Courier New", Courier, monospace; }
.subnav { display: flex; flex-wrap: wrap; gap: 6px 20px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin: 8px 0 8px; }
.subnav a { text-decoration: none; padding: 6px 0; }
.subnav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.tag { display: inline-block; font-size: 14px; line-height: 1.3; padding: 2px 8px; border: 1px solid currentColor; margin: 0 4px 2px 0; white-space: nowrap; }
.tone-gray { color: var(--tone-gray); } .tone-blue { color: var(--tone-blue); } .tone-amber { color: var(--tone-amber); }
.tone-green { color: var(--tone-green); } .tone-red { color: var(--tone-red); } .tone-purple { color: var(--tone-purple); }
.overdue { color: var(--tone-red); }
.field textarea, .field input[type="date"], .field input[type="number"], .field input[type="file"], .field input[type="url"] {
  width: 100%; max-width: 560px; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid var(--muted); border-radius: 0; padding: 10px 12px;
}
.field input[type="file"] { padding: 8px; }
.radios { border: 0; padding: 0; margin: 0 0 16px; }
.radios legend { margin-bottom: 6px; padding: 0; }
.radios label { display: inline-flex; gap: 8px; align-items: center; margin-right: 18px; min-height: 40px; }
.narrow-form { max-width: 640px; }
.wait-box { border: 1px solid var(--tone-amber); background: var(--white); padding: 4px 20px 12px; margin-top: 24px; }
.wait-box h2 { margin-top: 16px; font-size: 26px; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.card { border: 1px solid var(--line); background: var(--white); padding: 12px 16px; }
.card p { margin: 6px 0 0; }
.card-wait { border-left: 4px solid var(--tone-amber); }
.tiles { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.tile { border: 1px solid var(--line); background: var(--white); padding: 12px 16px; }
.tile-num { display: block; font-size: 32px; letter-spacing: -1px; }
.stage-strip { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.stage-chip { border: 1px solid var(--line); background: var(--white); padding: 6px 12px; }
.stage-chip.is-current { border: 2px solid var(--ink); }
.stage-chip.st-done { color: var(--tone-green); }
.stage-num { display: inline-block; min-width: 1.4em; color: var(--muted); }
.stage-list { list-style: none; padding: 0; margin: 0; }
.stage-item { border-top: 1px solid var(--line); padding: 16px 0; }
.stage-item h3 { font-size: 24px; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 0 16px; align-items: flex-end; margin: 8px 0 16px; }
.filters .field { margin-bottom: 12px; min-width: 180px; }
.filters .btn { margin-bottom: 12px; }
.comments { list-style: none; padding: 0; margin: 0 0 16px; }
.comment { border-top: 1px solid var(--line); padding: 10px 0; }
.comment-internal { background: var(--internal-bg); padding: 10px 12px; }
.comment-meta { margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.comment-body { overflow-wrap: anywhere; }
.thread summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; }
.files li { align-items: flex-start; }
.files a { overflow-wrap: anywhere; }
.prose { max-width: 760px; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  table.responsive thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.responsive, table.responsive tbody, table.responsive tr, table.responsive td { display: block; width: 100%; }
  table.responsive tr { border: 1px solid var(--line); background: var(--white); padding: 8px 12px; margin-bottom: 10px; }
  table.responsive td { border: 0; padding: 4px 0; overflow-wrap: anywhere; }
  table.responsive td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 14px; }
  .filters .field { min-width: 100%; }
  .wait-box { padding: 4px 14px 10px; }
}

/* Phase 2b: roadmap A → Δ → B */
h4 { font-weight: 700; font-size: 17px; margin: 16px 0 6px; }
.notice { border-left: 4px solid var(--tone-amber); background: var(--white); padding: 10px 14px; }
.flow { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.flow li { position: relative; border: 1px solid var(--line); background: var(--white); padding: 10px 14px; flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
.flow li + li::before { content: "→"; position: absolute; left: -10px; top: 50%; transform: translate(-50%, -50%); color: var(--muted); font-size: 14px; }
.flow a { text-decoration: none; display: block; margin-bottom: 4px; }
.flow-end { background: transparent !important; border-style: dashed !important; flex: 0 1 140px !important; }
.flow-mark { display: inline-block; min-width: 1.6em; font-weight: 700; }
.flow-step.is-current { border: 2px solid var(--ink); }
.flow-step.st-done { border-color: var(--tone-green); }
.rm-stage { border-top: 1px solid var(--line); padding: 16px 0 8px; margin-top: 16px; }
.rm-stage.is-current { border-top: 3px solid var(--ink); }
.rm-stage h3 { font-size: 26px; margin: 0; }
.rm-stage ul { padding-left: 20px; }
.rm-stage ul.list { padding-left: 0; }
.pay { display: block; }
.amount { font-weight: 700; }
.decision { border: 1px solid var(--line); background: var(--white); padding: 4px 16px 12px; margin: 12px 0; }
.inline-form { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.inline-form select { font: inherit; padding: 8px 10px; border: 1px solid var(--muted); background: var(--white); max-width: 100%; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.actions .btn + .btn { margin-left: 0; }

@media (max-width: 760px) {
  .flow { flex-direction: column; }
  .flow li { flex: 1 1 auto; }
  .flow-end { flex: 1 1 auto !important; }
  .flow li + li::before { content: "↓"; left: 50%; top: -6px; transform: translate(-50%, -50%); }
  .rm-stage h3 { font-size: 22px; }
}

/* roadmap ux */
:root {
  --green: #1f7a3d; --green-bg: #e4f2e7;
  --blue: #1f5fbf;  --blue-bg: #e6eefb;
  --amber: #8a5a00; --amber-bg: #fcefd2;
  --purple-bg: #efe9f8; --gray-bg: #e8e8e4; --red-bg: #f8e5e5;
}
.tag { border: 0; border-radius: 3px; padding: 3px 9px; font-weight: 600; font-size: 13px; }
.tag.tone-gray { background: var(--gray-bg); } .tag.tone-blue { background: var(--blue-bg); color: var(--blue); }
.tag.tone-amber { background: var(--amber-bg); } .tag.tone-green { background: var(--green-bg); color: var(--green); }
.tag.tone-red { background: var(--red-bg); } .tag.tone-purple { background: var(--purple-bg); }

.rm-summary { display: grid; grid-template-columns: 1fr auto; gap: 24px; background: var(--white); border: 1px solid var(--line);
  border-left: 6px solid var(--blue); padding: 20px 24px; margin: 20px 0 24px; align-items: center; }
.rm-kicker { margin: 0 0 4px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rm-now-title { margin: 0 0 12px; font-size: 26px; line-height: 1.2; letter-spacing: -.5px; }
.rm-bar { list-style: none; display: flex; gap: 6px; margin: 0 0 8px; padding: 0; max-width: 520px; }
.rm-bar .seg { flex: 1; height: 10px; border-radius: 3px; background: var(--gray-bg); }
.rm-bar .seg-done { background: var(--green); } .rm-bar .seg-active { background: var(--blue); }
.rm-bar .seg-current { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--blue); }
.rm-badges { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.rm-badge { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 4px; text-decoration: none;
  background: var(--gray-bg); color: var(--ink); max-width: 240px; font-size: 14px; line-height: 1.25; }
.rm-badge-num { font-size: 30px; font-weight: 700; line-height: 1; }
.rm-badge-amber { background: var(--amber-bg); color: var(--amber); }
.rm-badge-green { background: var(--green-bg); color: var(--green); }
.rm-badge-blue { background: var(--blue-bg); color: var(--blue); }
.rm-badge:hover { text-decoration: underline; }

.rm-steps { list-style: none; margin: 0 0 28px; padding: 0; display: flex; align-items: stretch; gap: 0; }
.rm-end { flex: 0 0 96px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  font-size: 13px; color: var(--muted); padding: 4px; }
.rm-end-mark { width: 34px; height: 34px; border-radius: 50%; border: 2px dashed var(--line); display: grid; place-items: center;
  font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.rm-step { flex: 1; position: relative; min-width: 0; }
.rm-step::before { content: ""; position: absolute; top: 33px; left: -50%; width: 100%; height: 4px; background: var(--line); z-index: 0; }
.rm-step.st-done::before, .rm-step.st-active::before { background: var(--green); }
.rm-step a { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 12px 8px; text-decoration: none; height: 100%; }
.rm-step a:hover .rm-step-title { text-decoration: underline; }
.rm-dot { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 17px;
  background: var(--white); border: 3px solid var(--line); color: var(--muted); flex: 0 0 auto; }
.st-done .rm-dot { background: var(--green); border-color: var(--green); color: #fff; }
.st-active .rm-dot, .is-current .rm-dot { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 5px var(--blue-bg); }
.rm-step-title { font-size: 15px; line-height: 1.25; }
.rm-step-meta { font-size: 13px; color: var(--muted); }

.rm-tools { display: flex; gap: 16px; justify-content: flex-end; margin: 24px 0 8px; }
.btn-link { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 15px; color: var(--ink); text-decoration: underline;
  cursor: pointer; }

.rm-card { background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--line); margin: 0 0 12px; }
.rm-card.st-done { border-left-color: var(--green); } .rm-card.st-active, .rm-card.is-current { border-left-color: var(--blue); }
.rm-card summary { display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.rm-card summary::-webkit-details-marker { display: none; }
.rm-card summary::after { content: "+"; margin-left: auto; font-size: 26px; line-height: 1; color: var(--muted); }
.rm-card[open] summary::after { content: "\2212"; }
.rm-card-title { font-size: 22px; letter-spacing: -.5px; line-height: 1.2; flex: 1 1 260px; }
.rm-card-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.rm-card-body { padding: 4px 24px 20px 24px; border-top: 1px solid var(--line); }
.rm-goal { background: var(--paper); padding: 10px 14px; border-radius: 3px; }
.rm-col { padding: 4px 0 4px 14px; border-left: 4px solid var(--line); }
.rm-col-we { border-left-color: var(--blue); } .rm-col-you { border-left-color: var(--amber); }
.decision-open { border-color: var(--blue); border-width: 2px; background: var(--blue-bg); }

@media (max-width: 900px) {
  .rm-summary { grid-template-columns: 1fr; padding: 16px; }
  .rm-badges { justify-content: flex-start; }
  .rm-steps { flex-direction: column; }
  .rm-end { flex: none; flex-direction: row; gap: 10px; justify-content: flex-start; padding: 6px 0; text-align: left; }
  .rm-end-mark { margin: 0; }
  .rm-step::before { top: -50%; left: 20px; width: 4px; height: 100%; }
  .rm-step a { flex-direction: row; text-align: left; flex-wrap: wrap; padding: 10px 0; }
  .rm-card-body { padding: 4px 14px 16px; }
}
@media print { .rm-card:not([open]) .rm-card-body { display: block; } .rm-tools { display: none; } }

/* app shell v2 */
:root { --radius: 12px; --shadow: 0 1px 2px rgba(23,23,23,.05), 0 6px 18px rgba(23,23,23,.05); --side: 264px; --side-bg: #fafaf7; }
body.app { background: var(--paper); }
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--side-bg); border-right: 1px solid var(--line); padding: 22px 16px; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { font-size: 22px; letter-spacing: -.8px; text-decoration: none; padding: 4px 10px 18px; display: block; }
.side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side-label { margin: 18px 10px 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  overflow-wrap: anywhere; }
.side-nav a { text-decoration: none; padding: 9px 12px; border-radius: 10px; border: 1px solid transparent; font-size: 16px; }
.side-nav a:hover { background: #fff; border-color: var(--line); }
.side-nav a[aria-current="page"] { background: #fff; border-color: var(--line); box-shadow: var(--shadow); font-weight: 600; }
.side-foot { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px; display: flex; flex-direction: column; gap: 10px;
  font-size: 15px; }
.side-foot a { text-decoration: none; padding: 0 4px; }
.side-foot a:hover { text-decoration: underline; }
.side-user { display: flex; gap: 10px; align-items: center; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center;
  font-weight: 700; flex: 0 0 auto; }
.side-user-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; overflow-wrap: anywhere; }
.main-col { min-width: 0; }
.content { max-width: 1180px; margin: 0 auto; padding: 28px 40px 80px; }
body.app h1, body.app .page-title { font-size: clamp(28px, 2.6vw, 36px); letter-spacing: -1.2px; margin: 4px 0 20px; }
body.app h2 { font-size: 22px; letter-spacing: -.5px; margin-top: 28px; }
.eyebrow { margin: 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.subnav { display: none; }

/* cards */
.panel, .wait-box, .card, .decision, .rm-summary, .rm-card { border-radius: var(--radius); }
.panel { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 22px 18px; margin-top: 20px; }
.wait-box { box-shadow: var(--shadow); border-color: #e3c98c; background: #fffaf0; }
.card { box-shadow: var(--shadow); border-radius: 10px; }
.rm-card, .rm-summary { box-shadow: var(--shadow); }
.messages { margin-top: 0; }

/* KPI cards */
.kpis { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 6px; border-top: 4px solid var(--line); }
.kpi-label { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kpi-num { font-size: 36px; font-weight: 700; letter-spacing: -1px; line-height: 1.1; }
.kpi-of { font-size: 20px; color: var(--muted); font-weight: 400; }
.kpi-amber { border-top-color: #d9a21b; } .kpi-blue { border-top-color: var(--blue); } .kpi-purple { border-top-color: #7a56b8; }
.kpi:first-child { border-top-color: var(--green); }
.kpi-bar { display: block; height: 8px; background: var(--gray-bg); border-radius: 4px; overflow: hidden; }
.kpi-fill { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.pct-0 { width: 0%; }
.pct-5 { width: 5%; }
.pct-10 { width: 10%; }
.pct-15 { width: 15%; }
.pct-20 { width: 20%; }
.pct-25 { width: 25%; }
.pct-30 { width: 30%; }
.pct-35 { width: 35%; }
.pct-40 { width: 40%; }
.pct-45 { width: 45%; }
.pct-50 { width: 50%; }
.pct-55 { width: 55%; }
.pct-60 { width: 60%; }
.pct-65 { width: 65%; }
.pct-70 { width: 70%; }
.pct-75 { width: 75%; }
.pct-80 { width: 80%; }
.pct-85 { width: 85%; }
.pct-90 { width: 90%; }
.pct-95 { width: 95%; }
.pct-100 { width: 100%; }

/* project list on home */
.project-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.project-list li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 6px; }
.project-link { font-size: 19px; letter-spacing: -.3px; }

/* forms and buttons */
.btn { border-radius: 10px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], textarea, select { border-radius: 8px; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 16px; }
  .side-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .side-label { width: 100%; margin: 10px 4px 2px; }
  .side-foot { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px; }
  .content { padding: 20px 16px 60px; }
}

/* steps narrow */
.rm-step .tag { white-space: normal; text-align: center; }
@media (max-width: 1180px) {
  .rm-steps { flex-direction: column; }
  .rm-end { flex: none; flex-direction: row; gap: 10px; justify-content: flex-start; padding: 6px 0; text-align: left; }
  .rm-end-mark { margin: 0; }
  .rm-step::before { top: -50%; left: 20px; width: 4px; height: 100%; }
  .rm-step a { flex-direction: row; text-align: left; flex-wrap: wrap; padding: 10px 0; gap: 10px; align-items: center; }
}

/* metrics */
.metric-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 20px; margin-top: 24px; }
.metric-card h2 { margin: 0; font-size: 24px; }
.metric-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.metric-table { width: 100%; }
.metric-table td, .metric-table th { vertical-align: top; }
.metric-kpis { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.metric-kpis li { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; }
.metric-big { font-size: 26px; font-weight: 700; letter-spacing: -.5px; overflow-wrap: anywhere; }
.metric-tiles { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.metric-tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px;
  display: flex; flex-direction: column; gap: 4px; }
.trend { font-weight: 600; white-space: nowrap; }
.empty { color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; padding: 14px 16px; margin: 12px 0 4px; }
.btn-small { padding: 6px 12px; font-size: 15px; }
@media (max-width: 760px) {
  .metric-card { padding: 12px 14px; }
  .metric-card h2 { font-size: 21px; }
  .metric-big { font-size: 22px; }
  .trend { white-space: normal; }
  .metric-kpis { grid-template-columns: 1fr 1fr; }
}
