:root {
  --bg: #edf1ee;
  --bg-deep: #dce5df;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --surface-soft: rgba(248, 250, 248, 0.58);
  --text: #121a16;
  --text-soft: #2a3630;
  --muted: #64736b;
  --line: rgba(31, 48, 39, 0.12);
  --line-strong: rgba(31, 48, 39, 0.2);
  --green: #5f4484;
  --green-dark: #452f63;
  --green-soft: rgba(95, 68, 132, 0.11);
  --blue: #235ba8;
  --amber: #ad6a16;
  --red: #b64238;
  --gold: #9c7a34;
  --shadow: 0 24px 70px rgba(27, 39, 33, 0.16);
  --shadow-soft: 0 14px 34px rgba(27, 39, 33, 0.09);
  --blur: blur(22px) saturate(1.22);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.84) 0%, rgba(237, 241, 238, 0.62) 36%, rgba(220, 229, 223, 0.78) 100%),
    linear-gradient(180deg, #f7f8f5 0%, var(--bg) 46%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: "Segoe UI Variable", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  text-rendering: geometricPrecision;
}

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

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(360px, 0.86fr) minmax(460px, 1.14fr);
  padding: 22px;
}

.login-panel,
.login-visual,
.statement-board,
.topbar,
.sidebar,
.summary-tile,
.section,
.asset-card,
.detail-item,
.status-line.success,
.status-line.error,
.status-line.info {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 18px 0 0 18px;
  padding: 58px;
}

.brand-mark {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  background: linear-gradient(145deg, var(--green), #2b203d);
  color: white;
  box-shadow: 0 16px 32px rgba(95, 68, 132, 0.26);
  font-size: 13px;
  font-weight: 900;
}

.login-panel h1 {
  max-width: 560px;
  margin: 30px 0 14px;
  color: var(--text);
  font-size: 46px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.03;
}

.login-panel p {
  max-width: 560px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.login-form {
  display: grid;
  max-width: 440px;
  gap: 15px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.investor-switcher label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea,
.investor-switcher select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input[type="file"] {
  display: flex;
  align-items: center;
  padding: 12px 14px;
}

.field input,
.field select,
.investor-switcher select {
  height: 48px;
  padding: 0 14px;
}

.field textarea {
  min-height: 106px;
  resize: vertical;
  padding: 13px 14px;
  line-height: 1.55;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.investor-switcher select:focus {
  border-color: rgba(95, 68, 132, 0.58);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 4px rgba(95, 68, 132, 0.12);
}

.primary-btn,
.secondary-btn,
.icon-btn {
  border: 0;
  border-radius: 12px;
  font-weight: 850;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.primary-btn {
  height: 48px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white;
  box-shadow: 0 16px 30px rgba(95, 68, 132, 0.24);
}

.primary-btn:hover {
  background: linear-gradient(135deg, #6b4c96, #3d285a);
  transform: translateY(-1px);
}

.primary-btn:disabled {
  cursor: not-allowed;
  background: #aeb8b2;
  box-shadow: none;
  transform: none;
}

.secondary-btn {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-soft);
  box-shadow: 0 10px 22px rgba(27, 39, 33, 0.06);
}

.secondary-btn:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
}

.error-text {
  min-height: 20px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.demo-logins {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.login-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-left: 0;
  border-radius: 0 18px 18px 0;
  padding: 42px;
  background:
    linear-gradient(135deg, rgba(95, 68, 132, 0.12), rgba(156, 122, 52, 0.08)),
    rgba(255, 255, 255, 0.45);
}

.statement-board {
  width: min(720px, 100%);
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.statement-header,
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.statement-header {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.statement-header strong {
  font-size: 18px;
  font-weight: 850;
}

.status-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(95, 68, 132, 0.16);
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.statement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.statement-metric {
  min-width: 0;
  padding: 21px 22px;
  border-right: 1px solid var(--line);
}

.statement-metric:last-child {
  border-right: 0;
}

.metric-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metric-value {
  margin-top: 9px;
  color: var(--text);
  font-size: 25px;
  font-weight: 900;
  line-height: 1.1;
}

.platform-bars {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.bar-row {
  display: grid;
  grid-template-columns: 112px 1fr 100px;
  align-items: center;
  gap: 16px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 750;
}

.bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(31, 48, 39, 0.09);
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.dashboard {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  height: 76px;
  border-width: 0 0 1px;
  border-radius: 0;
  background: rgba(247, 249, 247, 0.78);
  padding: 0 28px;
}

.topbar-title {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 13px;
}

.topbar-title h2 {
  margin: 0;
  color: var(--text);
  font-size: 19px;
  font-weight: 850;
  line-height: 1.2;
}

.topbar-title span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 274px 1fr;
}

.sidebar {
  min-height: calc(100vh - 76px);
  border-width: 0 1px 0 0;
  border-radius: 0;
  background: rgba(248, 250, 248, 0.62);
  padding: 26px 18px;
}

.sidebar-kicker {
  margin: 0 10px 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.investor-switcher {
  display: grid;
  gap: 9px;
  margin-bottom: 20px;
}

.nav-list {
  display: grid;
  gap: 7px;
}

.nav-item {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  padding: 0 13px;
  text-align: left;
  font-size: 13.5px;
  font-weight: 850;
  overflow: hidden;
  isolation: isolate;
}

.nav-item::before {
  position: absolute;
  inset: 8px auto 8px 0;
  width: 3px;
  border-radius: 999px;
  background: transparent;
  content: "";
  transition: background 160ms ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.52);
  color: var(--text-soft);
}

.nav-icon {
  display: inline-flex;
  width: 34px;
  min-width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(31, 48, 39, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--text-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item.active {
  border-color: rgba(95, 68, 132, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(240, 247, 243, 0.72));
  color: var(--green-dark);
  box-shadow: 0 14px 30px rgba(27, 39, 33, 0.1);
}

.nav-item.active::before {
  background: var(--green);
}

.nav-item.active .nav-icon {
  border-color: rgba(95, 68, 132, 0.16);
  background: linear-gradient(145deg, var(--green), var(--green-dark));
  color: white;
  box-shadow: 0 12px 22px rgba(95, 68, 132, 0.2);
}

.content {
  overflow: visible;
  padding: 28px;
}

.workspace-toolbar {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-soft);
  padding: 16px 18px;
  overflow: visible;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.workspace-toolbar strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.toolbar-eyebrow,
.toolbar-field label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.toolbar-controls {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar-field {
  display: grid;
  min-width: 180px;
  gap: 7px;
}

.toolbar-field select {
  height: 42px;
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  padding: 0 38px 0 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
  outline: none;
}

.toolbar-field select:focus {
  border-color: rgba(95, 68, 132, 0.58);
  box-shadow: 0 0 0 4px rgba(95, 68, 132, 0.12);
}

.month-picker {
  position: relative;
  z-index: 50;
  display: grid;
  min-width: 230px;
  gap: 7px;
}

.month-trigger {
  display: flex;
  min-width: 230px;
  height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  padding: 0 13px 0 15px;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 10px 22px rgba(27, 39, 33, 0.06);
}

.month-trigger:hover,
.month-trigger[aria-expanded="true"] {
  border-color: rgba(95, 68, 132, 0.28);
  background: rgba(255, 255, 255, 0.95);
}

.month-trigger strong {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
}

.month-trigger small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.month-trigger svg {
  width: 22px;
  min-width: 22px;
  height: 22px;
  color: var(--green-dark);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.month-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 200;
  width: 386px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  padding: 14px;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.month-popover-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.month-popover-head span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.month-popover-head strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 19px;
  font-weight: 900;
}

.month-popover-head small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.year-tabs {
  display: flex;
  max-width: 190px;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.year-tab {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
}

.year-tab.active {
  border-color: rgba(95, 68, 132, 0.24);
  background: var(--green-soft);
  color: var(--green-dark);
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.month-option {
  display: grid;
  min-height: 58px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--text-soft);
  padding: 8px;
  text-align: center;
}

.month-option:hover {
  border-color: rgba(95, 68, 132, 0.24);
  background: rgba(255, 255, 255, 0.9);
}

.month-option:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.month-option:disabled:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.month-option.active {
  border-color: rgba(95, 68, 132, 0.28);
  background: linear-gradient(145deg, var(--green), var(--green-dark));
  color: white;
  box-shadow: 0 12px 24px rgba(95, 68, 132, 0.2);
}

.month-option span {
  font-size: 14px;
  font-weight: 900;
}

.month-option small {
  margin-top: 3px;
  color: currentColor;
  font-size: 10px;
  font-weight: 780;
  opacity: 0.72;
}

.summary-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.summary-tile,
.section,
.asset-card {
  border-radius: 16px;
}

.summary-tile,
.section,
.asset-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.summary-tile {
  min-height: 132px;
  padding: 19px;
}

.summary-tile strong {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-size: 28px;
  font-weight: 920;
  letter-spacing: 0;
  line-height: 1.08;
}

.summary-tile small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.45;
}

.summary-tile small.good {
  color: var(--green-dark);
}

.summary-tile small.bad {
  color: var(--red);
}

.section {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-bottom: 18px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.38);
}

.section-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 860;
  letter-spacing: 0;
}

.section-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
  line-height: 1.45;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(230px, 1fr));
  gap: 16px;
  padding: 18px;
}

.asset-card {
  padding: 17px;
  box-shadow: none;
}

.asset-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.asset-title {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.25;
}

.asset-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  overflow-wrap: anywhere;
}

.platform-tag {
  border-radius: 999px;
  padding: 5px 10px;
  color: white;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.platform-tag.facebook {
  background: linear-gradient(135deg, var(--blue), #163964);
}

.platform-tag.tiktok {
  background: linear-gradient(135deg, #14181f, #2a303a);
}

.platform-tag.youtube {
  background: linear-gradient(135deg, #c4302b, #7f1d1d);
}

.application-screen .login-panel {
  justify-content: flex-start;
  overflow-y: auto;
  border-radius: 18px 0 0 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 248, 0.78)),
    var(--surface);
}

.application-form {
  max-width: 780px;
  padding: 0;
}

.application-mobile-summary,
.application-mobile-support,
.login-mobile-summary {
  display: none;
}

.application-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ghost-link {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--text-soft);
  padding: 0 14px;
  font-size: 12px;
  font-weight: 900;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.ghost-link:hover {
  border-color: rgba(95, 68, 132, 0.2);
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
}

.application-kicker {
  margin-top: 26px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.application-screen .login-panel h1 {
  margin-top: 20px;
  max-width: 640px;
}

.application-screen .login-panel p {
  max-width: 660px;
}

.application-screen .login-visual {
  align-items: stretch;
  padding: 0;
  background:
    linear-gradient(135deg, rgba(95, 68, 132, 0.11), rgba(35, 91, 168, 0.07)),
    rgba(255, 255, 255, 0.46);
}

.application-aside {
  display: flex;
  width: 100%;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 68px;
}

.application-aside h2 {
  max-width: 620px;
  margin: 16px 0 14px;
  color: var(--text);
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.04;
}

.application-aside p {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 640;
  line-height: 1.7;
}

.application-steps {
  display: grid;
  gap: 12px;
  max-width: 680px;
}

.application-step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow-soft);
  padding: 15px;
}

.application-step > span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--green), var(--green-dark));
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.application-step strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

.application-step p {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.55;
}

.application-note {
  display: flex;
  max-width: 680px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(95, 68, 132, 0.16);
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green-dark);
  padding: 16px;
}

.application-note strong,
.application-note span {
  font-size: 13px;
  font-weight: 900;
}

.application-disclaimer {
  max-width: 680px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.55;
}

.application-submit {
  display: grid;
  gap: 10px;
}

.application-submit .primary-btn {
  width: 100%;
}

.application-submit span {
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  font-weight: 740;
  line-height: 1.45;
}

.upload-dropzone {
  display: grid;
  min-height: 74px;
  align-content: center;
  gap: 5px;
  border: 1px dashed rgba(95, 68, 132, 0.34);
  border-radius: 14px;
  background: rgba(95, 68, 132, 0.06);
  color: var(--green-dark);
  padding: 15px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.upload-dropzone:hover {
  border-color: rgba(95, 68, 132, 0.6);
  background: rgba(95, 68, 132, 0.1);
  transform: translateY(-1px);
}

.upload-dropzone span {
  font-size: 13px;
  font-weight: 900;
}

.upload-dropzone strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  overflow-wrap: anywhere;
}

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

.asset-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
  margin-top: 17px;
}

.asset-stat {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.asset-stat span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.asset-stat strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 14px;
  font-weight: 860;
  overflow-wrap: anywhere;
}

.card-note {
  display: grid;
  gap: 7px;
  margin-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  padding-top: 13px;
  font-size: 13px;
  font-weight: 640;
  line-height: 1.58;
}

.card-note strong {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.card-note span {
  display: block;
}

.chart {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  height: 270px;
  gap: 18px;
  padding: 26px 24px 20px;
}

.chart-column {
  display: grid;
  align-content: end;
  min-width: 0;
  height: 100%;
  gap: 9px;
}

.chart-bar {
  min-height: 12px;
  border-radius: 12px 12px 3px 3px;
  background: linear-gradient(180deg, #7353a0, var(--green-dark));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 12px 22px rgba(95, 68, 132, 0.14);
}

.chart-label {
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  font-weight: 850;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 15px 17px;
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.35);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.data-table td {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 620;
  line-height: 1.5;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.38);
}

.amount-positive {
  color: var(--green-dark);
  font-weight: 900;
}

.amount-pending {
  color: var(--amber);
  font-weight: 900;
}

.muted {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.entry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px;
  padding: 20px;
}

.span-2 {
  grid-column: span 2;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 16px;
  padding: 20px;
}

.bank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.saved-bank-card {
  position: sticky;
  top: 98px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 18px;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.saved-bank-head {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
}

.saved-bank-head span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.saved-bank-head strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
}

.saved-bank-list {
  display: grid;
  gap: 11px;
  padding-top: 15px;
}

.saved-bank-row {
  display: grid;
  gap: 4px;
}

.saved-bank-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.saved-bank-row strong {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 820;
  overflow-wrap: anywhere;
}

.saved-bank-note {
  margin-top: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--muted);
  padding: 12px;
  font-size: 13px;
  font-weight: 680;
  line-height: 1.5;
}

.detail-item {
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.detail-item span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-item strong {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.notification-list {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.notification-item {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.48);
  padding: 14px;
}

.notification-item strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.notification-item p {
  margin: 5px 0 4px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 640;
  line-height: 1.5;
}

.notification-item small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.status-dot {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.status-dot.payment {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(156, 122, 52, 0.12);
}

.proof-link {
  display: inline-flex;
  max-width: 220px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(95, 68, 132, 0.16);
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
  overflow-wrap: anywhere;
  white-space: normal;
}

button.proof-link {
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

.proof-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(9, 15, 12, 0.62);
  padding: 28px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.proof-modal[hidden] {
  display: none;
}

.proof-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1100px, 100%);
  height: min(820px, calc(100vh - 56px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background: rgba(247, 250, 248, 0.94);
  box-shadow: var(--shadow);
}

.proof-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.62);
}

.proof-dialog-head span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.proof-dialog-head strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.proof-dialog-body {
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: auto;
  background: linear-gradient(135deg, rgba(95, 68, 132, 0.08), rgba(35, 91, 168, 0.06));
  padding: 18px;
}

.proof-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  background: white;
  box-shadow: var(--shadow-soft);
  object-fit: contain;
}

.proof-frame {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
  background: white;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 16px;
  padding: 18px;
}

.permission-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  padding: 16px;
}

.permission-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.permission-head h4 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
}

.permission-head span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.permission-head strong {
  border-radius: 999px;
  background: rgba(35, 91, 168, 0.1);
  color: var(--blue);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
}

.permission-block {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.permission-block > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chip-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.chip-list b {
  border: 1px solid rgba(95, 68, 132, 0.14);
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 850;
  text-transform: capitalize;
}

.muted-chips b {
  border-color: rgba(182, 66, 56, 0.16);
  background: rgba(182, 66, 56, 0.08);
  color: var(--red);
}

.empty-state {
  padding: 32px 20px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.status-line {
  min-height: 0;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
}

.status-line.success,
.status-line.error,
.status-line.info {
  min-height: 38px;
  margin-bottom: 14px;
  border-radius: 12px;
  padding: 10px 13px;
}

.status-line.success {
  color: var(--green-dark);
}

.status-line.error {
  color: var(--red);
}

@media (max-width: 1080px) {
  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-panel {
    border-radius: 18px;
  }

  .application-screen .login-panel {
    border-radius: 18px 18px 0 0;
  }

  .login-screen:not(.application-screen) .login-visual {
    display: none;
  }

  .application-screen .login-visual {
    display: flex;
    border-left: 1px solid var(--line);
    border-radius: 0 0 18px 18px;
  }

  .application-aside {
    min-height: auto;
    padding: 34px;
  }

  .application-aside h2 {
    max-width: none;
    font-size: 30px;
  }

  .application-steps {
    max-width: none;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
    border-width: 0 0 1px;
  }

  .nav-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .summary-grid,
  .asset-grid,
  .entry-form,
  .detail-grid,
  .bank-layout,
  .permission-grid {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
  }

  .bank-layout {
    grid-template-columns: 1fr;
  }

  .saved-bank-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .login-screen {
    padding: 12px;
  }

  .login-panel,
  .content {
    padding: 18px;
  }

  .application-screen .login-panel {
    padding: 24px 18px;
  }

  .login-panel h1 {
    font-size: 32px;
  }

  .application-topline {
    align-items: flex-start;
  }

  .application-screen .login-panel h1 {
    font-size: 31px;
  }

  .application-kicker {
    margin-top: 20px;
  }

  .application-aside {
    gap: 18px;
    padding: 24px 18px;
  }

  .application-aside h2 {
    margin-top: 10px;
    font-size: 25px;
    line-height: 1.12;
  }

  .application-aside p {
    font-size: 13px;
  }

  .application-step {
    grid-template-columns: 42px 1fr;
    gap: 10px;
    padding: 12px;
  }

  .application-step > span {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 11px;
  }

  .application-step strong {
    font-size: 13px;
  }

  .application-step p {
    font-size: 12px;
  }

  .application-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .application-screen .login-visual {
    display: none;
  }

  .application-screen .login-panel {
    border-radius: 18px;
  }

  .application-mobile-summary,
  .application-mobile-support,
  .login-mobile-summary {
    display: block;
  }

  .application-mobile-summary {
    margin: 22px 0 24px;
  }

  .application-mobile-summary .application-steps {
    gap: 9px;
  }

  .application-mobile-support {
    display: grid;
    gap: 12px;
    margin-top: 22px;
  }

  .login-mobile-summary {
    display: grid;
    gap: 14px;
    margin-top: 24px;
  }

  .login-mobile-summary .application-steps {
    gap: 9px;
  }

  .topbar {
    height: auto;
    align-items: flex-start;
    padding: 14px 16px;
  }

  .topbar,
  .topbar-actions,
  .workspace-toolbar,
  .statement-header,
  .section-header {
    flex-direction: column;
  }

  .topbar-actions,
  .secondary-btn,
  .toolbar-controls,
  .toolbar-field,
  .toolbar-field select,
  .month-picker,
  .month-trigger {
    width: 100%;
  }

  .month-popover {
    left: 0;
    right: auto;
    width: min(386px, 100%);
  }

  .month-popover-head {
    flex-direction: column;
  }

  .year-tabs {
    max-width: none;
    justify-content: flex-start;
  }

  .month-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .summary-grid,
  .asset-grid,
  .statement-grid,
  .nav-list,
  .entry-form,
  .detail-grid,
  .bank-layout,
  .permission-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: span 1;
  }

  .statement-metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .bar-row {
    grid-template-columns: 88px 1fr;
  }

  .bar-row strong {
    grid-column: 1 / -1;
  }

  .chart {
    gap: 9px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .proof-modal {
    padding: 12px;
  }

  .proof-dialog {
    height: calc(100vh - 24px);
    border-radius: 14px;
  }

  .proof-dialog-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
