:root {
  --ink: #e6edf7;
  --muted: #94a3b8;
  --paper: #0a1730;
  --surface: #0d1d3d;
  --surface-strong: #102348;
  --line: rgba(255, 255, 255, .1);
  --blue: #2f7bff;
  --mint: #2ee6a8;
  --orange: #fb923c;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .62);
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body { overflow-x: hidden; margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); font-family: Inter, sans-serif; }
body::before { position: fixed; z-index: -1; inset: 0; background-image: linear-gradient(rgba(120, 160, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 160, 255, .055) 1px, transparent 1px); background-size: 56px 56px; content: ""; mask-image: linear-gradient(to bottom, black, transparent 72%); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.topbar { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 80px; padding: 0 max(24px, calc((100vw - 1280px) / 2)); border-bottom: 1px solid var(--line); background: rgba(10, 23, 48, .85); backdrop-filter: blur(24px); }
.brand { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.brand-mark { display: flex; overflow: hidden; height: 50px; padding: 6px 10px; align-items: center; border-radius: 12px; background: white; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.brand-mark img { display: block; width: auto; height: 38px; object-fit: contain; }
.brand-label { color: #cbd5e1; font-family: Sora, sans-serif; font-size: .73rem; font-weight: 600; letter-spacing: .04em; }
.topbar-context { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .76rem; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(46, 230, 168, .12), 0 0 18px rgba(46, 230, 168, .55); }
.logout-button { padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .04); cursor: pointer; font-size: .68rem; }

.login-shell { display: grid; min-height: calc(100vh - 80px); padding: 30px 16px; place-items: center; }
.login-card { width: min(430px, 100%); padding: 38px; border: 1px solid var(--line); border-radius: 18px; background: rgba(13, 29, 61, .9); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.login-card > p:not(.eyebrow) { margin: 12px 0 26px; color: var(--muted); font-size: .82rem; }
.login-card form { display: grid; gap: 16px; }
.login-card label { display: grid; gap: 7px; color: #cbd5e1; font-size: .69rem; font-weight: 600; }
.login-card input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: rgba(8, 18, 38, .65); outline: none; }
.login-card input:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(46, 230, 168, .1); }
.form-error { margin: 0; color: #fca5a5; font-size: .72rem; }
.notice { margin-top: 18px; padding: 12px 15px; border: 1px solid rgba(251, 146, 60, .35); border-radius: 10px; color: #fed7aa; background: rgba(251, 146, 60, .1); font-size: .75rem; }
.notice.success { border-color: rgba(46, 230, 168, .35); color: #a7f3d0; background: rgba(46, 230, 168, .1); }

.shell { width: min(1280px, calc(100% - 48px)); margin: 0 auto 64px; }
.hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 42px 0 30px; }
.hero::after { position: absolute; z-index: -1; top: -150px; left: 28%; width: 440px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(47, 123, 255, .14), rgba(46, 230, 168, .05) 45%, transparent 70%); content: ""; filter: blur(25px); }
.eyebrow { margin: 0 0 10px; color: var(--mint); font-size: .68rem; font-weight: 700; letter-spacing: .18em; }
.eyebrow span { color: var(--blue); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Sora, sans-serif; }
h1 { max-width: 780px; margin-bottom: 0; font-size: clamp(2rem, 3.35vw, 3.25rem); font-weight: 700; line-height: 1.08; letter-spacing: -.04em; }
h1 em { background: linear-gradient(92deg, #3b8bff, #2ee6a8); background-clip: text; color: transparent; font-style: normal; font-weight: 700; }
h2 { margin-bottom: 0; font-size: 1.55rem; font-weight: 600; letter-spacing: -.025em; }
.hero-summary { margin: 10px 0 0; color: var(--muted); font-size: .82rem; }
.hero-actions { display: flex; flex: 0 0 auto; gap: 10px; }

.button { min-height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; font-size: .79rem; font-weight: 600; transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: scale(.98); }
.button-primary { color: var(--paper); background: linear-gradient(92deg, var(--blue), var(--mint)); box-shadow: 0 16px 40px -12px rgba(46, 230, 168, .55); }
.button-primary:hover { box-shadow: 0 18px 46px -10px rgba(46, 230, 168, .7); }
.button-ghost { border-color: rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .05); backdrop-filter: blur(10px); }
.button-ghost:hover { background: rgba(255, 255, 255, .1); }
.button-small { min-height: 34px; padding: 0 12px; border-radius: 9px; font-size: .7rem; }
.button-danger { border-color: rgba(248, 113, 113, .25); color: #fca5a5; background: rgba(248, 113, 113, .08); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }

.metrics { display: grid; overflow: hidden; grid-template-columns: repeat(4, 1fr); margin-bottom: 24px; border: 1px solid var(--line); border-radius: 16px; background: rgba(13, 29, 61, .82); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.metrics article { display: grid; grid-template-columns: 1fr auto; padding: 21px 22px; border-right: 1px solid var(--line); }
.metrics article:last-child { border: 0; }
.metric-label { align-self: end; color: #cbd5e1; font-size: .65rem; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; }
.metrics strong { grid-row: span 2; background: linear-gradient(145deg, #fff, #6ee7b7); background-clip: text; color: transparent; font-family: Sora, sans-serif; font-size: 2.15rem; font-weight: 600; }
.metrics strong.metric-money { align-self: center; font-size: clamp(1.05rem, 1.55vw, 1.55rem); }
.metrics small { margin-top: 4px; color: #64748b; font-size: .66rem; }

.workspace { display: grid; overflow: hidden; grid-template-columns: 275px minmax(0, 1fr); min-height: 600px; border: 1px solid var(--line); border-radius: 16px; background: rgba(13, 29, 61, .9); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.sidebar { padding: 26px 18px; border-right: 1px solid var(--line); background: rgba(8, 18, 38, .38); }
.section-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; }
.section-heading h2 { font-size: 1.3rem; }
.icon-button { display: grid; width: 32px; height: 32px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, .05); cursor: pointer; font-size: 1.15rem; transition: border-color 180ms ease, background 180ms ease; }
.icon-button:hover { border-color: rgba(46, 230, 168, .5); background: rgba(46, 230, 168, .1); }
.type-filters { display: flex; gap: 4px; margin: 20px 0 13px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .025); }
.type-filter { flex: 1; padding: 7px 5px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; font-size: .62rem; font-weight: 600; }
.type-filter.active { color: #081226; background: linear-gradient(92deg, var(--blue), var(--mint)); }
.initiative-list { display: grid; gap: 6px; }
.initiative-button { width: 100%; padding: 12px; border: 1px solid transparent; border-radius: 10px; background: transparent; cursor: pointer; text-align: left; transition: border-color 180ms ease, background 180ms ease; }
.initiative-button:hover, .initiative-button.active { border-color: var(--line); background: rgba(255, 255, 255, .055); }
.initiative-button.active { box-shadow: inset 3px 0 var(--mint); }
.initiative-button strong, .initiative-button small { display: block; }
.initiative-button strong { overflow: hidden; margin-bottom: 5px; font-family: Sora, sans-serif; font-size: .78rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.initiative-button small { color: var(--muted); font-size: .65rem; }
.mini-type { display: inline-block; margin-right: 5px; padding: 3px 6px; border: 1px solid rgba(59, 139, 255, .25); border-radius: 999px; color: #93c5fd; background: rgba(59, 139, 255, .1); font-size: .53rem; font-weight: 700; text-transform: uppercase; }
.mini-type.saas { border-color: rgba(46, 230, 168, .25); color: #6ee7b7; background: rgba(46, 230, 168, .1); }

.main-panel { min-width: 0; padding: 30px; }
.portfolio-overview { margin-bottom: 28px; }
.overview-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.overview-heading p { margin: 0; color: var(--muted); font-size: .72rem; }
.initiative-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.initiative-grid > .empty { grid-column: 1 / -1; }
.initiative-card { position: relative; overflow: hidden; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .025); cursor: pointer; text-align: left; transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.initiative-card::before { position: absolute; top: 0; right: 0; left: 0; height: 2px; background: linear-gradient(92deg, var(--blue), var(--mint)); content: ""; opacity: .8; }
.initiative-card:hover { border-color: rgba(47, 123, 255, .42); box-shadow: 0 24px 60px -20px rgba(47, 123, 255, .25); transform: translateY(-3px); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 22px; }
.kind { padding: 4px 8px; border: 1px solid rgba(59, 139, 255, .3); border-radius: 999px; color: #93c5fd; background: rgba(59, 139, 255, .1); font-size: .56rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.kind.saas { border-color: rgba(46, 230, 168, .3); color: #6ee7b7; background: rgba(46, 230, 168, .1); }
.kind.internal, .mini-type.internal { border-color: rgba(192, 132, 252, .3); color: #d8b4fe; background: rgba(168, 85, 247, .1); }
.stage { overflow: hidden; color: var(--muted); font-size: .63rem; text-overflow: ellipsis; white-space: nowrap; }
.initiative-card h3 { overflow: hidden; margin-bottom: 7px; font-size: 1rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.initiative-card p { overflow: hidden; margin-bottom: 0; color: var(--muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }

.initiative-detail { margin-bottom: 28px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(135deg, rgba(14, 33, 72, .9), rgba(10, 42, 58, .5)); }
.detail-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.detail-heading h2 { margin-bottom: 6px; }
.detail-heading p { margin-bottom: 0; color: var(--muted); font-size: .71rem; }
.detail-actions { display: flex; gap: 7px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.detail-wide { grid-column: 1 / -1; }
.project-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.project-facts span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(8, 18, 38, .32); font-size: .62rem; }
.project-facts strong { margin-left: 4px; color: var(--ink); }
.detail-box { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(8, 18, 38, .35); }
.detail-box span { display: block; margin-bottom: 8px; color: var(--mint); font-size: .59rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.detail-box p { margin-bottom: 0; color: #cbd5e1; font-size: .86rem; line-height: 1.55; }
.validation-log { grid-column: 1 / -1; padding-top: 7px; }
.validation-log h3 { margin-bottom: 10px; font-size: .69rem; letter-spacing: .08em; text-transform: uppercase; }
.validation-item { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.validation-result { align-self: start; padding: 4px 8px; border-radius: 999px; color: #93c5fd; background: rgba(59, 139, 255, .13); font-size: .56rem; font-weight: 700; text-transform: uppercase; }
.validation-result.validated { color: #6ee7b7; background: rgba(46, 230, 168, .13); }
.validation-result.refuted { color: #fdba74; background: rgba(251, 146, 60, .14); }
.validation-item p { margin: 0 0 3px; font-size: .73rem; line-height: 1.4; }
.validation-item time { color: var(--muted); font-size: .62rem; }

.activity-section { border-top: 1px solid var(--line); padding-top: 26px; }
.activity-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.filters { display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: rgba(8, 18, 38, .45); }
.filter { padding: 7px 11px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; font-size: .68rem; font-weight: 600; }
.filter.active { color: #081226; background: linear-gradient(92deg, var(--blue), var(--mint)); }
.activity-list { display: grid; gap: 8px; }
.activity { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .025); }
.activity.overdue { border-left: 3px solid var(--orange); }
.activity.completed { opacity: .55; }
.activity.completed .activity-name { text-decoration: line-through; }
.check { width: 19px; height: 19px; margin: 0; accent-color: var(--mint); cursor: pointer; }
.activity-copy { min-width: 0; }
.activity-name { display: block; overflow: hidden; margin-bottom: 5px; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.activity-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .65rem; }
.activity-meta .late { color: #fdba74; font-weight: 600; }
.task-status { color: #93c5fd; }
.task-status.status-in_progress { color: #6ee7b7; }
.task-status.status-waiting { color: #fde68a; }
.task-status.status-canceled { color: #fca5a5; }
.priority { padding: 4px 8px; border-radius: 999px; font-size: .56rem; font-weight: 700; text-transform: uppercase; }
.priority-high { color: #fca5a5; background: rgba(248, 113, 113, .13); }
.priority-medium { color: #fde68a; background: rgba(250, 204, 21, .12); }
.priority-low { color: #6ee7b7; background: rgba(46, 230, 168, .12); }
.delete-button { border: 0; background: transparent; color: #64748b; cursor: pointer; font-size: 1.2rem; }
.delete-button:hover { color: #fca5a5; }
.row-actions { display: flex; align-items: center; justify-content: end; gap: 7px; }
.text-button { padding: 4px 6px; border: 0; background: transparent; color: #93c5fd; cursor: pointer; font-size: .63rem; font-weight: 600; }
.text-button:hover { color: var(--mint); }
.danger-text, .text-button.danger-text:hover { color: #fca5a5; }
.empty { padding: 46px 20px; border: 1px dashed rgba(255, 255, 255, .15); border-radius: 12px; color: var(--muted); text-align: center; font-size: .76rem; }
.empty strong { display: block; margin-bottom: 6px; color: var(--ink); font-family: Sora, sans-serif; font-size: 1.05rem; font-weight: 600; }

dialog { width: min(540px, calc(100% - 30px)); max-height: calc(100vh - 30px); padding: 0; border: 1px solid rgba(255, 255, 255, .15); border-radius: 16px; color: var(--ink); background: #0d1d3d; box-shadow: 0 32px 80px -24px rgba(0, 0, 0, .9); }
dialog::backdrop { background: rgba(4, 10, 22, .8); backdrop-filter: blur(5px); }
dialog form { display: grid; gap: 16px; padding: 26px; }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; margin-bottom: 3px; }
dialog label { display: grid; gap: 7px; color: #cbd5e1; font-size: .69rem; font-weight: 600; }
dialog input, dialog select, dialog textarea { width: 100%; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: rgba(8, 18, 38, .65); outline: none; }
dialog input, dialog select { height: 42px; }
dialog textarea { min-height: 76px; padding-top: 11px; resize: vertical; }
dialog input:focus, dialog select:focus, dialog textarea:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(46, 230, 168, .1); }
.confirm-dialog { width: min(440px, calc(100% - 30px)); }
.confirm-message { margin: 0; color: var(--ink); font-family: Sora, sans-serif; font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
.confirm-dialog .button-danger { color: #fecaca; border-color: rgba(248, 113, 113, .35); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.dialog-actions { display: flex; justify-content: end; gap: 9px; padding-top: 7px; }
.responsible-fieldset { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.responsible-fieldset legend { padding: 0 5px; color: #cbd5e1; font-size: .69rem; font-weight: 600; }
.responsible-options { display: flex; flex-wrap: wrap; gap: 8px; }
.responsible-options label { display: flex; grid-template-columns: none; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: rgba(8, 18, 38, .35); cursor: pointer; }
.responsible-options input { width: 15px; height: 15px; margin: 0; accent-color: var(--mint); }
.muted-copy { margin: 0; color: var(--muted); font-size: .7rem; }

.operations-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px; margin-top: 24px; }
.operation-panel, .history-panel { min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: rgba(13, 29, 61, .9); box-shadow: var(--shadow); }
.history-panel { margin-top: 24px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-heading h2 { font-size: 1.2rem; }
.client-list, .receivable-list, .history-list { display: grid; gap: 8px; }
.client-card { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .025); }
.client-card > .row-actions { grid-column: 1 / -1; justify-content: flex-end; flex-wrap: wrap; }
.client-card > div:first-child strong, .client-card > div:first-child span { display: block; }
.client-card > div:first-child strong { margin-bottom: 4px; font-size: .78rem; }
.client-card > div:first-child span, .client-stats { color: var(--muted); font-size: .62rem; }
.client-stats { display: grid; gap: 4px; text-align: right; }
.client-documents { grid-column: 1 / -1; display: grid; gap: 6px; padding-top: 4px; border-top: 1px solid var(--line); }
.client-document { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 7px 0 0; color: var(--muted); font-size: .65rem; }
.client-document > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-doc-summary { display: flex; justify-content: center; }
.attachment-indicator { color: var(--mint); font-size: 1.2rem; line-height: 1; }
.finance-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.finance-summary > span { display: grid; gap: 5px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(8, 18, 38, .35); }
.finance-summary small { color: var(--muted); font-size: .58rem; text-transform: uppercase; letter-spacing: .08em; }
.finance-summary strong { color: #a7f3d0; font-family: Sora, sans-serif; font-size: .95rem; }
.receivable-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, .025); }
.receivable-row > div:first-child strong, .receivable-row > div:first-child span { display: block; }
.receivable-row > div:first-child strong { margin-bottom: 4px; font-size: .74rem; }
.receivable-row > div:first-child span { color: var(--muted); font-size: .61rem; }
.receivable-row > strong { font-size: .72rem; }
.financial-status { padding: 4px 7px; border-radius: 999px; color: #93c5fd; background: rgba(59, 139, 255, .12); font-size: .54rem; font-weight: 700; text-transform: uppercase; }
.financial-status.received { color: #6ee7b7; background: rgba(46, 230, 168, .12); }
.financial-status.overdue { color: #fdba74; background: rgba(251, 146, 60, .14); }
.financial-status.canceled { color: #94a3b8; background: rgba(148, 163, 184, .1); }
.history-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.history-list article { display: grid; grid-template-columns: auto 1fr; gap: 9px; padding: 11px; border-top: 1px solid var(--line); }
.history-list strong, .history-list small { display: block; }
.history-list strong { margin-bottom: 4px; font-size: .68rem; }
.history-list small { color: var(--muted); font-size: .58rem; }
.history-dot { width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px rgba(46, 230, 168, .4); }

@media (max-width: 900px) {
  .shell { width: min(100% - 28px, 760px); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics article { min-width: 0; }
  .metrics article:nth-child(2) { border-right: 0; }
  .metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .workspace { width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr); }
  .sidebar { min-width: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .initiative-list { display: flex; max-width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .initiative-button { min-width: 175px; }
  .operations-grid { grid-template-columns: 1fr; }
  .history-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .topbar { min-height: 68px; padding: 0 14px; }
  .brand-mark { height: 44px; padding: 5px 8px; border-radius: 10px; }
  .brand-mark img { height: 34px; }
  .brand-label { display: none; }
  .topbar-context { gap: 6px; }
  #user-name { overflow: hidden; max-width: 110px; text-overflow: ellipsis; white-space: nowrap; }
  .login-shell { min-height: calc(100vh - 68px); }
  .login-card { padding: 28px 22px; }
  .hero { align-items: start; flex-direction: column; gap: 24px; padding: 34px 0 28px; }
  .hero::after { left: 0; width: 100%; }
  h1 { max-width: 100%; font-size: clamp(1.9rem, 8.5vw, 2.5rem); overflow-wrap: anywhere; }
  .hero-actions { display: grid; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-actions .button { min-width: 0; padding: 0 8px; font-size: .71rem; }
  .metrics article { padding: 15px; }
  .metric-label { font-size: .58rem; }
  .metrics strong { font-size: 1.8rem; }
  .metrics strong.metric-money { font-size: .88rem; white-space: nowrap; }
  .main-panel { padding: 22px 14px; }
  .initiative-grid { grid-template-columns: 1fr; }
  .detail-heading, .activity-toolbar { align-items: start; flex-direction: column; }
  .detail-actions, .filters { width: 100%; }
  .detail-actions .button, .filter { flex: 1; }
  .detail-grid, .form-row { grid-template-columns: 1fr; }
  .validation-log { grid-column: auto; }
  .activity { grid-template-columns: auto 1fr auto; gap: 10px; }
  .priority { grid-column: 2; justify-self: start; }
  .activity > .row-actions { grid-column: 3; grid-row: 1; }
  .operation-panel, .history-panel { padding: 20px 14px; }
  .client-card { grid-template-columns: minmax(0, 1fr) auto; }
  .client-stats { grid-column: 1; text-align: left; }
  .client-card > .row-actions { grid-column: 2; grid-row: 1 / span 2; }
  .receivable-row { grid-template-columns: minmax(0, 1fr) auto; }
  .receivable-row .financial-status { justify-self: start; }
  .history-list { grid-template-columns: 1fr; }
}
