:root {
  --navy: #071c33;
  --navy2: #0d3558;
  --orange: #0a7fbe;
  --accent: #0a7fbe;
  --accent-bright: #1aa1e3;
  --accent-soft: #e6f4fb;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #102337;
  --muted: #68798b;
  --line: #dfe7ef;
  --line-strong: #ccd9e5;
  --green: #138463;
  --red: #c94d55;
  --amber: #c88616;
  --blue: #0a7fbe;
  --shadow-sm: 0 5px 18px rgba(9, 38, 64, .055);
  --shadow-md: 0 14px 35px rgba(9, 38, 64, .09);
}

html { background: var(--bg); }

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 82% 12%, rgba(38, 169, 232, .2), transparent 26rem),
    linear-gradient(145deg, #06182d, #0a436c 78%, #087db8);
}

body:not(.auth-locked) .auth-screen { display: none; }
body.auth-locked .sidebar,
body.auth-locked main { display: none; }

.auth-card {
  width: min(440px, calc(100vw - 36px));
  padding: 30px;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 18, 37, .38);
}

.auth-card > img {
  display: block;
  width: min(310px, 100%);
  height: auto;
  margin: 0 auto 24px;
  border-radius: 9px;
  box-shadow: 0 10px 28px rgba(7, 38, 64, .15);
}

.auth-copy { margin-bottom: 20px; }
.auth-copy h1 { margin: 4px 0 7px; font-size: 24px; }
.auth-copy p { margin: 0; color: var(--muted); }
.auth-form { display: grid; gap: 14px; }
.auth-form label,
.account-form label { display: grid; gap: 6px; color: #40576b; font-size: 12px; font-weight: 700; }
.auth-form input,
.auth-form textarea,
.account-form input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
}
.auth-form textarea { resize: vertical; }
.auth-form .primary { width: 100%; margin-top: 2px; }
.auth-form label small { color: var(--muted); font-size: 10.5px; font-weight: 500; }
.auth-message { min-height: 20px; margin-top: 12px; color: var(--red); font-size: 12px; }
.auth-security { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11.5px; }
.auth-actions { display: grid; gap: 10px; }
.auth-actions .primary,
.auth-actions .ghost { width: 100%; }
.auth-info {
  display: grid;
  gap: 4px;
  margin: 0 0 18px;
  padding: 13px 15px;
  color: #315268;
  background: var(--accent-soft);
  border: 1px solid #cfe6f1;
  border-radius: 11px;
}
.auth-info span { color: var(--muted); font-size: 12px; }
.auth-link-button {
  display: block;
  margin: 10px auto 0;
  padding: 6px;
  color: var(--blue);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}
.auth-link-button:hover { text-decoration: underline; }

.local-user-button {
  width: 100%;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.local-user-button:hover { background: rgba(119, 194, 232, .08); border-radius: 10px; }
.account-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}
.account-user-card strong,
.account-user-card small { display: block; }
.account-user-card small { color: var(--muted); margin-top: 3px; }
.account-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.account-form .full { grid-column: 1 / -1; }
.account-list { display: grid; gap: 8px; margin: 14px 0; }
.account-list div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; }
.account-list small { color: var(--muted); }

@media (max-width: 650px) {
  .auth-card { padding: 22px; }
  .account-form { grid-template-columns: 1fr; }
  .account-form .full { grid-column: auto; }
}

body {
  background:
    radial-gradient(circle at 92% 4%, rgba(21, 148, 207, .07), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: "Segoe UI Variable Text", "Segoe UI", Inter, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.42;
  letter-spacing: -.006em;
}

button,
input,
select,
textarea { font-family: inherit; }

button,
select { transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease; }

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(26, 161, 227, .2);
  outline-offset: 1px;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sidebar {
  width: 276px;
  padding: 16px 14px 14px;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(155deg, #06182d 0%, #082b49 67%, #0a436c 135%);
  background-size: 25px 25px, 25px 25px, auto;
  border-right: 1px solid rgba(138, 203, 235, .13);
  box-shadow: 12px 0 40px rgba(5, 25, 46, .12);
}

.sidebar::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  right: -165px;
  bottom: 90px;
  border: 1px solid rgba(129, 204, 242, .1);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(129, 204, 242, .025), 0 0 0 78px rgba(129, 204, 242, .018);
  pointer-events: none;
}

.brand {
  display: block;
  padding: 0 4px 12px;
  position: relative;
  z-index: 1;
}

.brand-logo-shell {
  height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: 0 10px 28px rgba(0, 12, 28, .25);
  overflow: visible;
}

.brand-logo-shell img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
}

.brand-version {
  display: block;
  margin: 7px 0 0;
  color: #8dcbe9;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .15em;
  text-align: center;
  text-transform: uppercase;
}

.sidebar nav {
  position: relative;
  z-index: 1;
  gap: 3px;
  padding: 0 3px 5px 0;
  scrollbar-color: rgba(134, 198, 230, .35) transparent;
  scrollbar-width: thin;
}

.nav-section {
  display: block;
  padding: 8px 12px 3px;
  color: #6fa9c7;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.nav {
  position: relative;
  grid-template-columns: 36px 1fr;
  gap: 7px;
  min-height: 39px;
  padding: 5px 9px;
  color: #b7ccda;
  border: 1px solid transparent;
  border-radius: 10px;
  align-items: center;
}

.nav svg {
  width: 20px;
  height: 20px;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav:hover {
  background: rgba(119, 194, 232, .09);
  border-color: rgba(139, 204, 238, .11);
  color: #fff;
}

.nav.active {
  background: linear-gradient(90deg, rgba(10, 127, 190, .43), rgba(42, 162, 220, .16));
  border-color: rgba(93, 190, 237, .25);
  box-shadow: inset 3px 0 #27a9e8, 0 7px 20px rgba(0, 18, 37, .14);
  color: #fff;
}

.nav.active svg { color: #56c4f5; }

.side-footer {
  position: relative;
  z-index: 1;
  border-top-color: rgba(141, 200, 231, .15);
  padding: 13px 6px 0;
}

.side-footer strong { color: #f7fbfe; font-size: 13px; }
.side-footer small { color: #82a9bf; font-size: 11px; }

.avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  color: #fff;
  background: linear-gradient(145deg, #128dcb, #075487);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}

main {
  margin-left: 276px;
  width: calc(100% - 276px);
  padding: 0 28px 52px;
}

header {
  position: sticky;
  top: 0;
  z-index: 4;
  height: 108px;
  background: rgba(244, 247, 251, .91);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(210, 222, 233, .75);
  margin-bottom: 20px;
}

.page-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 290px;
}

.page-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: linear-gradient(145deg, #fff, #e9f4fa);
  border: 1px solid #d7e8f1;
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
}

.page-icon svg,
.button-with-icon svg,
.notice-icon svg,
.icon svg,
.kpi-icon svg,
.icon-btn svg,
.entity-symbol svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

h1 {
  margin-bottom: 2px;
  color: #0c2136;
  font-size: 25px;
  font-weight: 760;
  letter-spacing: -.025em;
}

header p { font-size: 12.5px; }

.header-actions,
.section-tools { gap: 8px; }

.primary,
.ghost,
.danger {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 10px;
  font-weight: 680;
}

.primary {
  background: linear-gradient(135deg, #0b86c5, #0872ad);
  box-shadow: 0 7px 17px rgba(8, 114, 173, .2);
}

.primary:hover {
  background: linear-gradient(135deg, #1299dc, #0878b7);
  box-shadow: 0 9px 22px rgba(8, 114, 173, .26);
  transform: translateY(-1px);
}

.ghost {
  background: rgba(255,255,255,.88);
  border-color: var(--line-strong);
  color: #284156;
  box-shadow: 0 2px 6px rgba(10, 40, 65, .025);
}

.ghost:hover {
  color: var(--accent);
  border-color: #a9ccdf;
  background: #fff;
}

.button-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.button-with-icon svg { width: 17px; height: 17px; }
.saved { color: var(--green); font-weight: 650; }

.view.active { animation: view-in .2s ease-out; }

@keyframes view-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.notice {
  position: relative;
  min-height: 104px;
  padding: 20px 24px;
  margin-bottom: 17px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(120deg, #071c33 0%, #0a436b 67%, #087db8 135%);
  background-size: 24px 24px, 24px 24px, auto;
  border: 1px solid rgba(92, 177, 221, .23);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(7, 38, 64, .15);
}

.notice::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: 60px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(255,255,255,.025), 0 0 0 75px rgba(255,255,255,.018);
}

.notice-copy {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 15px;
}

.notice-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  color: #5dc6f2;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
}

.notice-icon svg { width: 28px; height: 28px; }
.notice strong { font-size: 17px; letter-spacing: -.01em; }
.notice span { color: #bbd5e4; }
.notice > button { position: relative; z-index: 1; color: #65cef7; }

.kpis { gap: 14px; margin-bottom: 16px; }

.kpi,
.panel,
.entity-card,
.list-panel,
.detail,
.module-heading,
.project-context {
  background: rgba(255,255,255,.96);
  border-color: var(--line);
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
}

.kpi {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 42px;
  grid-template-areas: "label icon" "value icon" "note note";
  min-width: 0;
  padding: 17px 18px 16px;
  overflow: hidden;
}

.kpi::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  right: -40px;
  bottom: -48px;
  border: 1px solid rgba(10,127,190,.11);
  border-radius: 50%;
  box-shadow: 0 0 0 17px rgba(10,127,190,.025);
}

.kpi > span { grid-area: label; font-size: 12px; font-weight: 650; }
.kpi > strong { grid-area: value; font-size: clamp(20px, 1.7vw, 26px); margin: 8px 0 6px; letter-spacing: -.035em; }
.kpi > small { grid-area: note; }

.kpi-icon {
  grid-area: icon;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #d6ebf5;
  border-radius: 11px;
}

.panel { padding: 20px; }
.panel-head { margin-bottom: 15px; }
.panel h2, .list-head h2, .detail h2 { color: #11283d; font-weight: 730; }
.panel p, .entity-card p { line-height: 1.55; }
.grid-2 { gap: 15px; margin-bottom: 15px; }

.row-item { padding: 13px 2px; }
.row-item:hover { background: linear-gradient(90deg, transparent, rgba(230,244,251,.55), transparent); }

.badge {
  padding: 5px 9px;
  background: #eef3f7;
  border: 1px solid #e0e8ee;
  color: #526575;
  font-weight: 650;
}
.badge.green { background: #e9f7f1; border-color: #d1ebdf; }
.badge.orange { background: #fff5e5; border-color: #f2e1bd; }
.badge.red { background: #fcebed; border-color: #f3d6d9; }

.alert-icon {
  width: 30px;
  height: 30px;
  background: #fff2d7;
  border: 1px solid #f3ddb2;
  color: #a66b09;
}
.alert-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.finance-strip { gap: 12px; }
.finance-strip div { border-left-color: var(--accent); border-radius: 2px; }
.finance-strip strong { color: #15344d; }

.split { grid-template-columns: 320px 1fr; gap: 15px; }
.list-panel { padding: 15px; }
.detail { padding: 21px; }
.list-head { padding: 2px 2px 12px; }

.search {
  position: relative;
  border-color: var(--line-strong);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: inset 0 1px 2px rgba(14, 41, 63, .025);
}
.search:focus-within { border-color: #7dbbd9; box-shadow: 0 0 0 3px rgba(16, 142, 201, .1); }

.project-option { margin-top: 5px; padding: 12px; border-radius: 10px; }
.project-option:hover { background: #f2f8fb; }
.project-option.active {
  background: linear-gradient(100deg, #e5f4fb, #f4f9fc);
  box-shadow: inset 3px 0 var(--accent);
}

.project-fields {
  background: #f7fafc;
  border: 1px solid #e4ebf1;
  border-radius: 12px;
  padding: 15px;
}

.project-fields input,
.project-fields select,
.field input,
.field select,
.field textarea,
.project-context select,
.section-tools select,
.table-input {
  min-height: 38px;
  border-color: var(--line-strong);
  border-radius: 8px;
}

.project-fields input:focus,
.project-fields select:focus,
.field input:focus,
.field select:focus,
.field textarea:focus,
.table-input:focus {
  border-color: #72b8da;
  box-shadow: 0 0 0 3px rgba(10,127,190,.09);
  outline: none;
}

.budget-health { gap: 10px; }
.health-card {
  background: linear-gradient(145deg, #fff, #f8fbfd);
  border-radius: 11px;
  box-shadow: 0 3px 10px rgba(11, 43, 69, .035);
}
.health-card strong { color: #12334e; }

.usage {
  background: #f6fafc;
  border-radius: 11px;
}
.usage-track { background: #dde7ed; }
.usage-fill { background: linear-gradient(90deg, #138463, #24aa81); }

.totals {
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(145deg, #081d34, #0c456d);
  background-size: 20px 20px, 20px 20px, auto;
  border: 1px solid #1b567b;
  border-radius: 12px;
  box-shadow: 0 12px 25px rgba(7, 35, 58, .14);
}

.section-tools { margin-bottom: 14px; }
.section-tools select { padding: 9px 11px; background: #fff; }

.table-panel { border-radius: 13px; }
table { background: #fff; }
th {
  padding-top: 13px;
  padding-bottom: 13px;
  color: #607486;
  background: #f5f8fa;
  border-bottom: 1px solid #d9e3ea;
  letter-spacing: .07em;
}
td { padding-top: 13px; padding-bottom: 13px; }
tbody tr { transition: background .14s ease; }
tbody tr:hover { background: #f8fbfd; }

.icon-btn {
  min-width: 31px;
  min-height: 31px;
  display: inline-grid;
  place-items: center;
  padding: 6px 8px;
  color: #315069;
  background: #edf4f8;
  border: 1px solid #dde8ef;
  border-radius: 8px;
}
.icon-btn:hover { color: var(--accent); background: #e2f2fa; border-color: #c5e3f1; }
.icon-btn.delete:hover { color: var(--red); background: #fbecee; border-color: #f0d1d5; }
.icon-btn svg { width: 16px; height: 16px; }

.tabs button { border-radius: 9px; }
.tabs button.active { background: linear-gradient(135deg, #0a385b, #0a668f); }

.cards { gap: 15px; }
.entity-card {
  position: relative;
  padding: 19px;
  overflow: hidden;
}
.entity-card::after {
  content: "";
  position: absolute;
  width: 92px;
  height: 92px;
  top: -57px;
  right: -55px;
  border: 1px solid rgba(10,127,190,.09);
  border-radius: 50%;
  box-shadow: 0 0 0 20px rgba(10,127,190,.022);
}
.entity-card:hover { border-color: #cbdde7; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.entity-card h3 { color: #102d45; }
.icon,
.entity-symbol {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: linear-gradient(145deg, #edf8fc, #deeff7);
  border: 1px solid #d4e8f1;
  border-radius: 12px;
}

.report-cards .entity-card { min-height: 220px; }
.report-cards button { margin-top: 24px; }

.module-heading,
.project-context { padding: 17px 20px; }
.module-heading { border-left: 4px solid var(--accent); }
.project-context {
  background:
    linear-gradient(90deg, rgba(10,127,190,.045), transparent 45%),
    #fff;
}

.subsection { border-top-color: var(--line); }
.file-chip { background: #f4f8fa; border-radius: 9px; }
.file-chip .file-name { display: inline-flex; align-items: center; gap: 5px; }
.file-chip .file-name svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.attachment-count { color: var(--accent); }

.employee-avatar {
  background: linear-gradient(145deg, #081f37, #0984bc);
  border-radius: 17px;
  box-shadow: 0 9px 20px rgba(7, 59, 91, .18);
}
.mini-kpi { background: #f7fafc; border-radius: 11px; }

.eyebrow { color: var(--accent); letter-spacing: .08em; }
.form-section-title { color: var(--navy2); }

dialog {
  border: 1px solid rgba(213, 224, 233, .8);
  border-radius: 16px;
  box-shadow: 0 30px 95px rgba(3, 21, 36, .36);
}
dialog::backdrop { background: rgba(4, 18, 31, .69); backdrop-filter: blur(3px); }
dialog form { padding: 24px; }
.close { width: 36px; height: 36px; border-radius: 9px; color: #637584; }
.close:hover { color: var(--red); background: #f8ecee; }

.toast {
  background: linear-gradient(135deg, #08213a, #0b527e);
  border: 1px solid rgba(116, 197, 237, .2);
  border-radius: 11px;
  box-shadow: 0 16px 40px rgba(3, 27, 46, .24);
}

.admin-note { border-left-color: var(--accent); }
.progress-mini i { background: linear-gradient(90deg, #0a7fbe, #20a5df); }

.cloud-button { position: relative; }
.cloud-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #98a7b5;
  box-shadow: 0 0 0 3px rgba(152,167,181,.14);
}
.cloud-button.online .cloud-dot { background: var(--green); box-shadow: 0 0 0 3px rgba(19,132,99,.14); }
.cloud-button.syncing .cloud-dot { background: var(--blue); animation: cloud-pulse 1s infinite; }
.cloud-button.pending .cloud-dot { background: var(--amber); box-shadow: 0 0 0 3px rgba(200,134,22,.14); }
.cloud-button.conflict .cloud-dot { background: var(--red); box-shadow: 0 0 0 3px rgba(201,77,85,.14); }

@keyframes cloud-pulse {
  50% { transform: scale(1.35); opacity: .55; }
}

.cloud-dialog { width: min(680px, calc(100vw - 34px)); max-height: calc(100vh - 50px); padding: 0; }
.cloud-modal { padding: 24px; }
.cloud-modal .modal-head { margin-bottom: 18px; }
.cloud-intro {
  margin: 0 0 18px;
  padding: 13px 15px;
  color: #3c556a;
  background: var(--accent-soft);
  border: 1px solid #cfe6f1;
  border-radius: 11px;
}
.cloud-form { display: grid; gap: 13px; }
.cloud-form.two-columns { grid-template-columns: 1fr 1fr; }
.cloud-form label { display: grid; gap: 6px; color: #50677a; font-size: 12px; font-weight: 650; }
.cloud-form label.full { grid-column: 1 / -1; }
.cloud-form input { min-width: 0; }
.cloud-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.cloud-actions.split { justify-content: space-between; }
.cloud-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 15px;
  margin-bottom: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.cloud-card strong, .cloud-card small { display: block; }
.cloud-card small { margin-top: 3px; color: var(--muted); }
.cloud-status-pill { padding: 5px 9px; color: var(--green); background: #e8f6f1; border-radius: 999px; font-size: 11px; font-weight: 750; }
.cloud-divider { height: 1px; margin: 20px 0; background: var(--line); }
.cloud-section-title { margin: 0 0 10px; font-size: 16px; }
.cloud-help { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.cloud-warning { padding: 12px 14px; margin-top: 14px; color: #72500b; background: #fff7df; border: 1px solid #efd797; border-radius: 10px; }
.cloud-conflict { padding: 14px; color: #74343a; background: #fff0f1; border: 1px solid #efc8cb; border-radius: 11px; }
.cloud-message { min-height: 18px; margin-top: 12px; color: var(--red); font-size: 12px; }
.cloud-advanced { margin-top: 18px; color: var(--muted); font-size: 12px; }
.cloud-advanced summary { cursor: pointer; font-weight: 700; }
.cloud-advanced button { margin-top: 10px; }
.cloud-code-note { color: var(--muted); font-size: 11px; }

@media (max-width: 1300px) {
  .sidebar { width: 252px; }
  main { margin-left: 252px; width: calc(100% - 252px); padding-left: 22px; padding-right: 22px; }
  .nav { grid-template-columns: 32px 1fr; font-size: 13px; }
  .header-actions .button-with-icon span { display: none; }
  .button-with-icon { width: 41px; padding-left: 10px; padding-right: 10px; }
  .split { grid-template-columns: 290px 1fr; }
}

@media (max-width: 620px) {
  .cloud-form.two-columns { grid-template-columns: 1fr; }
}

@media (max-width: 1120px) {
  .sidebar { width: 226px; padding-left: 10px; padding-right: 10px; }
  main { margin-left: 226px; width: calc(100% - 226px); padding-left: 18px; padding-right: 18px; }
  .nav { grid-template-columns: 28px 1fr; padding-left: 6px; padding-right: 6px; }
  .nav-section { padding-left: 8px; }
  .page-icon { display: none; }
  .page-heading { min-width: 240px; }
}
