@font-face {
  font-family: Manrope;
  src: url('./manrope.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --primary: #00b1c9;
  --primary-dark: #006d7e;
  --primary-soft: #e6f8fb;
  --coral: #ff7f50;
  --muted: #f6f5fa;
  --border: #e2e2e5;
  --text: #111;
  --secondary: #62616d;
  --danger: #aa3439;
  --radius: 18px;
  color: var(--text);
  font-family: Manrope, Arial, sans-serif;
  font-size: 16px;
  font-synthesis: none;
  line-height: 1.6;
  accent-color: var(--primary-dark);
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body {
  display: flex;
  min-height: 100vh;
  margin: 0;
  flex-direction: column;
  background: #fcfcfe;
}
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.25; overflow-wrap: anywhere; }
p { overflow-wrap: anywhere; }
[hidden] { display: none !important; }
::selection { color: #063d46; background: #b8eef4; }
:focus-visible { outline: 3px solid var(--primary-dark); outline-offset: 4px; }
input:focus, select:focus, textarea:focus { border-color: var(--primary-dark); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0 !important;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0 !important;
}
.skip-link {
  position: absolute;
  z-index: 20;
  top: 12px;
  left: 16px;
  padding: 12px 18px;
  transform: translateY(-160%);
  border-radius: 8px;
  color: #fff;
  background: #123f49;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }
.container { width: 100%; max-width: 1200px; padding-inline: 28px; margin-inline: auto; }
.page-main { flex: 1; min-width: 0; padding-block: 42px 72px; }
.muted { color: var(--secondary); }
.text-primary { color: var(--primary-dark); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.icon { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Shared shell and controls. */
.site-header { background: #fff; border-bottom: 1px solid var(--border); }
.header-inner { display: flex; min-height: 86px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; min-width: 0; align-items: center; gap: 11px; }
.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #009fb5;
  border-radius: 13px;
  color: #063b44;
  background: var(--primary);
  box-shadow: 0 4px 0 #def4f7;
}
.brand-mark .icon { width: 23px; height: 23px; }
.brand-name { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.04em; line-height: 1.3; }
.brand-caption { display: block; margin-top: 2px; color: var(--secondary); font-size: 11px; line-height: 1.4; }
.header-nav { display: flex; align-items: center; gap: 7px; }
.nav-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #45444f;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .18s, color .18s;
}
.nav-link:hover { color: var(--primary-dark); background: var(--muted); }
.nav-link.is-active { color: var(--primary-dark); background: var(--primary-soft); }
.nav-link .icon { width: 17px; height: 17px; }
.logout-form { display: flex; margin: 0; }
.site-footer { border-top: 1px solid var(--border); background: #fff; }
.footer-inner { display: flex; min-height: 86px; align-items: center; justify-content: space-between; gap: 12px 24px; color: var(--secondary); font-size: 12px; }
.footer-inner a { display: inline-flex; min-height: 44px; align-items: center; color: var(--primary-dark); }
.footer-inner .icon { width: 15px; height: 15px; }
.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
  text-align: center;
  transition: background .18s, border-color .18s, box-shadow .18s;
}
.btn-primary { color: #063b44; background: var(--primary); border-color: #009eb4; }
.btn-primary:hover { background: #15c1d6; border-color: #008b9f; box-shadow: 0 4px 12px #00b1c91c; }
.btn-outline { color: #34343d; background: #fff; border-color: #d4d4db; }
.btn-outline:hover { background: var(--muted); border-color: #b8b8c2; }
.btn-soft { color: var(--primary-dark); background: var(--primary-soft); border-color: #c7e9ee; }
.btn-soft:hover { background: #d0f0f4; border-color: #a7dce4; }
.btn-danger { color: #fff; background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #8c282e; border-color: #8c282e; }
.btn-small { min-height: 44px; padding: 8px 12px; font-size: 12px; }
.btn-small .icon { width: 16px; height: 16px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 100px; color: var(--primary-dark); background: var(--primary-soft); font-size: 11px; font-weight: 800; }
.alert { padding: 16px 20px; margin-bottom: 24px; border: 1px solid; border-radius: 10px; font-size: 13px; overflow-wrap: anywhere; }
.alert ul { margin: 0; padding-left: 18px; }
.alert li + li { margin-top: 4px; }
.alert-success { color: #175f3e; background: #edf8f1; border-color: #b9dfc8; }
.alert-error { color: #942e35; background: #fff1f2; border-color: #efc3c6; }

/* Forms share the same comfortable controls on every page. */
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .94fr); max-width: 1080px; min-height: 620px; align-items: center; gap: 70px; margin-inline: auto; }
.auth-aside { position: relative; min-width: 0; padding: 42px 38px; overflow: hidden; border: 1px solid #c9edf2; border-radius: 26px; background: linear-gradient(145deg, #e8fafd, #f5fcfd 72%); }
.auth-aside::after { position: absolute; right: -42px; bottom: -56px; width: 150px; height: 150px; border: 28px solid #ff7f5024; border-radius: 50%; content: ''; pointer-events: none; }
.auth-kicker { display: block; margin-bottom: 20px; color: var(--primary-dark); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.auth-aside h1, .auth-aside h2 { max-width: 400px; font-size: clamp(30px, 3.3vw, 42px); letter-spacing: -.05em; line-height: 1.2; }
.auth-aside > p { margin-top: 20px; color: #4e6369; font-size: 14px; line-height: 1.85; }
.auth-aside ul { display: grid; gap: 16px; padding: 0; margin: 28px 0 0; list-style: none; font-size: 13px; }
.auth-aside li { display: flex; align-items: flex-start; gap: 10px; }
.auth-aside li .icon { margin-top: 2px; color: var(--primary-dark); }
.auth-card { min-width: 0; padding: 34px; border: 1px solid var(--border); border-radius: 20px; background: #fff; box-shadow: 0 14px 42px #17133705; }
.form-heading { display: grid; gap: 9px; margin-bottom: 26px; }
.form-heading h1, .form-heading h2 { font-size: 27px; font-weight: 800; letter-spacing: -.04em; }
.form-heading p { color: var(--secondary); font-size: 13px; }
.form-stack { display: grid; gap: 20px; }
.form-field { display: flex; min-width: 0; flex-direction: column; gap: 8px; }
.form-field label { font-size: 12px; font-weight: 800; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #92929b;
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  font-size: 14px;
  line-height: 1.6;
  transition: border-color .18s, background .18s;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: #73727c; opacity: 1; }
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field [aria-invalid='true'] { border-color: var(--danger); background: #fffafb; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.input-wrap { position: relative; display: flex; min-width: 0; align-items: center; }
.input-wrap > input { flex: 1; }
.input-prefix { position: absolute; left: 14px; z-index: 1; color: var(--secondary); font-size: 14px; font-weight: 700; pointer-events: none; }
.input-wrap .input-money { padding-left: 47px; font-weight: 700; font-variant-numeric: tabular-nums; }
.input-wrap.has-pin-toggle > input { padding-right: 120px; }
.pin-toggle { display: none; position: absolute; top: 2px; right: 2px; bottom: 2px; min-width: 56px; padding: 4px 9px; border: 1px solid transparent; border-radius: 6px; color: var(--primary-dark); background: var(--primary-soft); font-size: 11px; font-weight: 800; }
.has-pin-toggle .pin-toggle { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; }
.pin-toggle:hover { background: #d1f0f5; }
.pin-toggle:focus-visible { outline-offset: 1px; }
.input-hint { color: var(--secondary); font-size: 11px; line-height: 1.65; }
.field-error { color: var(--danger); font-size: 11px; font-weight: 700; line-height: 1.65; }
.form-submit { width: 100%; margin-top: 2px; }
.form-footnote { margin-top: 22px; color: var(--secondary); font-size: 12px; text-align: center; }
.form-footnote a, .input-hint a { color: var(--primary-dark); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.security-note { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; margin-top: 22px; border: 1px solid #e7e7ed; border-radius: 10px; color: #5d626b; background: var(--muted); font-size: 11px; line-height: 1.7; }
.security-note .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--primary-dark); }
.back-link { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--secondary); font-size: 12px; font-weight: 700; }
.back-link:hover { color: var(--primary-dark); }

/* Landing: a local, CSS-only notebook illustration. */
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center; gap: 50px; padding-block: 22px 62px; }
.hero-copy { min-width: 0; }
.hero-copy > .eyebrow { padding: 7px 11px; border: 1px solid #c8ebf0; border-radius: 100px; background: var(--primary-soft); }
.hero-title { margin-top: 20px; font-size: clamp(38px, 4.6vw, 60px); font-weight: 800; letter-spacing: -.06em; line-height: 1.13; }
.hero-description { max-width: 480px; margin-top: 23px; color: var(--secondary); font-size: 14px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 29px; }
.hero-actions .btn { min-height: 50px; }
.hero-note { display: flex; align-items: center; gap: 7px; margin-top: 17px; color: var(--secondary); font-size: 11px; }
.hero-note .icon { width: 15px; height: 15px; color: var(--primary-dark); }
.hero-visual { position: relative; display: flex; min-width: 0; min-height: 438px; align-items: center; justify-content: center; padding: 40px 36px 54px; overflow: hidden; isolation: isolate; border: 1px solid #d4edf0; border-radius: 30px; background: linear-gradient(150deg, #ecfafc, #dff5f8); }
.hero-visual::before, .hero-visual::after { position: absolute; z-index: -1; border-radius: 50%; content: ''; }
.hero-visual::before { top: -86px; right: -72px; width: 255px; height: 255px; border: 38px solid #00b1c914; }
.hero-visual::after { bottom: -86px; left: -58px; width: 230px; height: 230px; background: #ff7f5030; }
.preview-card { width: 100%; max-width: 345px; padding: 25px; transform: rotate(-3deg); border: 1px solid #e4eaeb; border-radius: 18px; background: #fff; box-shadow: 0 22px 45px #225d6a14; }
.preview-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--secondary); font-size: 11px; font-weight: 700; }
.preview-topline .icon { color: var(--primary-dark); }
.preview-total { margin-top: 12px; }
.preview-total > strong { display: block; font-size: clamp(27px, 3vw, 36px); font-weight: 800; letter-spacing: -.05em; line-height: 1.3; font-variant-numeric: tabular-nums; }
.preview-total > .muted { margin-top: 6px; font-size: 12px; font-weight: 400; }
.preview-card > .preview-caption { margin-top: 4px; }
.preview-list { display: grid; gap: 16px; padding: 22px 0 0; margin: 22px 0 0; border-top: 1px solid var(--border); list-style: none; }
.preview-item { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 11px; }
.preview-icon { display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 10px; color: var(--primary-dark); background: var(--primary-soft); }
.preview-item:nth-child(even) .preview-icon { color: #913d1f; background: #fff0e9; }
.preview-icon .icon { width: 17px; height: 17px; }
.preview-label { display: block; font-size: 11px; font-weight: 800; }
.preview-caption { display: block; color: var(--secondary); font-size: 10px; line-height: 1.6; }
.preview-item > strong { font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.floating-note { position: absolute; right: 17px; bottom: 20px; display: flex; max-width: 230px; align-items: center; gap: 9px; padding: 12px 15px; transform: rotate(3deg); border: 1px solid #f3cbb8; border-radius: 12px; color: #823a20; background: #fff0e8; box-shadow: 0 8px 22px #743d1810; font-size: 10px; font-weight: 700; }
.floating-note .icon { width: 18px; height: 18px; }
.section-heading { max-width: 650px; margin-bottom: 27px; }
.section-heading h2 { margin-top: 10px; font-size: 29px; letter-spacing: -.045em; }
.section-heading p { margin-top: 12px; color: var(--secondary); font-size: 13px; }
.feature-grid, .steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 62px; }
.feature-card { min-width: 0; padding: 25px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.feature-icon { display: flex; width: 45px; height: 45px; align-items: center; justify-content: center; margin-bottom: 20px; border-radius: 12px; color: var(--primary-dark); background: var(--primary-soft); }
.feature-card:nth-child(2) .feature-icon { color: #883c20; background: #fff0e9; }
.feature-card:nth-child(3) .feature-icon { color: #65518a; background: #f0ecf9; }
.feature-card h3, .step-card h3 { font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.feature-card p, .step-card p { margin-top: 11px; color: var(--secondary); font-size: 12px; line-height: 1.85; }
.step-card { min-width: 0; padding: 5px 18px 4px 0; }
.step-number { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; margin-bottom: 18px; border: 1px solid #f4c6b0; border-radius: 50%; color: #8b3a1d; background: #fff1e9; font-size: 12px; font-weight: 800; }
.landing-cta { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 34px 38px; border: 1px solid #c1e9ee; border-radius: 22px; background: #e8f9fc; }
.landing-cta h2 { max-width: 650px; font-size: 26px; letter-spacing: -.04em; }
.landing-cta p { max-width: 650px; margin-top: 9px; color: #52676d; font-size: 13px; }
.landing-cta .btn { flex: 0 0 auto; }

/* Notes, search, and server-rendered editors. */
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-heading-copy { min-width: 0; }
.page-heading h1 { margin-top: 7px; font-size: 33px; font-weight: 800; letter-spacing: -.045em; }
.page-heading p { max-width: 680px; margin-top: 10px; color: var(--secondary); font-size: 13px; }
.heading-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; gap: 10px; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; margin-bottom: 28px; }
.summary-card { min-width: 0; padding: 23px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.summary-card:first-child { border-color: #c5e9ef; background: #ebfafd; }
.summary-icon { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; margin-bottom: 18px; border-radius: 11px; color: var(--primary-dark); background: #d2f1f5; }
.summary-card:nth-child(2) .summary-icon { color: #8b3d22; background: #fff0e9; }
.summary-card:nth-child(3) .summary-icon { color: #645382; background: #f0ecf7; }
.summary-label { color: #565b65; font-size: 11px; font-weight: 700; }
.summary-value { display: block; margin-top: 7px; font-size: clamp(24px, 2.8vw, 32px); font-weight: 800; letter-spacing: -.045em; line-height: 1.3; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.summary-detail { display: block; margin-top: 8px; color: var(--secondary); font-size: 11px; }
.notes-panel { min-width: 0; padding: 25px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.panel-heading h2 { font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.panel-heading p { margin-top: 5px; color: var(--secondary); font-size: 12px; }
.search-form { display: flex; width: 100%; max-width: 490px; align-items: center; gap: 8px; margin: 0; }
.search-input { position: relative; min-width: 0; flex: 1; }
.search-input .icon { position: absolute; top: 50%; left: 13px; width: 18px; height: 18px; transform: translateY(-50%); color: #73727c; pointer-events: none; }
.search-input input, input.search-input { width: 100%; min-width: 0; min-height: 46px; padding: 11px 13px 11px 40px; border: 1px solid #92929b; border-radius: 8px; color: var(--text); background: #fff; font-size: 12px; }
input.search-input { padding-left: 13px; }
.search-input input::placeholder, input.search-input::placeholder { color: #73727c; opacity: 1; }
.search-meta { margin-bottom: 15px; color: var(--secondary); font-size: 12px; overflow-wrap: anywhere; }
.search-meta a { color: var(--primary-dark); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.table-scroll { width: 100%; max-width: 100%; overflow: auto; overscroll-behavior-inline: contain; border: 1px solid var(--border); border-radius: 11px; }
.table { width: 100%; min-width: 650px; border-collapse: separate; border-spacing: 0; color: var(--text); background: #fff; font-size: 12px; line-height: 1.65; }
.table caption { padding: 12px 17px; color: var(--secondary); background: #fff; font-size: 11px; text-align: left; caption-side: bottom; }
.table th, .table td { padding: 17px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.table th { font-weight: 700; }
.table thead th { color: #5e5d68; background: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; white-space: nowrap; }
.table td { max-width: 360px; overflow-wrap: anywhere; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody > tr > * { background: #fff; }
.table-striped tbody > tr:nth-child(odd) > * { background: #f8f7fb; }
.table-hover tbody > tr:hover > *, .table-hover tbody > tr:focus-within > * { background: var(--primary-soft); }
.table tfoot > tr > * { background: var(--muted); font-weight: 800; }
.table .table-numeric { max-width: none; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; white-space: nowrap; }
.table-actions .btn { font-size: 11px; }
.note-title { display: block; font-weight: 800; overflow-wrap: anywhere; }
.note-date { display: block; margin-top: 3px; color: var(--secondary); font-size: 10px; font-weight: 400; }
.row-number { width: 48px; color: var(--secondary); font-variant-numeric: tabular-nums; }
.empty-state { padding: 55px 22px; border: 1px dashed #d7d7df; border-radius: 12px; text-align: center; }
.empty-icon { display: flex; width: 64px; height: 64px; align-items: center; justify-content: center; margin-inline: auto; border: 1px solid #c7eaf0; border-radius: 19px; color: var(--primary-dark); background: var(--primary-soft); }
.empty-icon .icon { width: 28px; height: 28px; }
.empty-state h2, .empty-state h3 { margin: 19px 0 10px; font-size: 20px; letter-spacing: -.03em; }
.empty-state p { max-width: 430px; margin-inline: auto; color: var(--secondary); font-size: 13px; }
.empty-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 23px; }
.editor-panel, .danger-panel { min-width: 0; max-width: 860px; padding: 28px; margin-block: 28px; scroll-margin-top: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.section-title { margin-bottom: 23px; font-size: 22px; font-weight: 800; letter-spacing: -.035em; }
.section-title p { margin-top: 7px; color: var(--secondary); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 22px; margin-top: 23px; border-top: 1px solid var(--border); }
.danger-panel { border-color: #ebc6c8; background: #fffafb; }
.danger-panel .section-title { color: #942e35; }
.danger-note { padding: 15px 17px; margin-bottom: 22px; border: 1px solid #edcdd0; border-radius: 9px; color: #942e35; background: #fff0f1; font-size: 13px; overflow-wrap: anywhere; }

/* Account profile. */
.profile-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); align-items: start; gap: 28px; }
.profile-summary { position: sticky; top: 24px; min-width: 0; padding: 27px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.profile-avatar { display: flex; width: 68px; height: 68px; align-items: center; justify-content: center; margin-bottom: 20px; border: 1px solid #b9e6ed; border-radius: 20px; color: var(--primary-dark); background: var(--primary-soft); font-size: 26px; font-weight: 800; }
.profile-avatar .icon { width: 30px; height: 30px; }
.profile-summary h2 { margin-bottom: 6px; font-size: 20px; letter-spacing: -.035em; }
.profile-summary p { color: var(--secondary); font-size: 12px; overflow-wrap: anywhere; }
.profile-summary .badge { margin-top: 15px; }
.profile-details { display: grid; min-width: 0; gap: 16px; margin: 24px 0; }
.profile-details > div { display: grid; gap: 4px; }
.profile-details dt { color: var(--secondary); font-size: 11px; }
.profile-details dd { margin: 0; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.profile-layout > .profile-details { padding: 30px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.account-meta { display: grid; gap: 15px; padding-top: 21px; margin: 23px 0 0; border-top: 1px solid var(--border); font-size: 11px; }
.account-meta > div { display: grid; gap: 4px; }
.account-meta dt { color: var(--secondary); }
.account-meta dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

@media (max-width: 1020px) {
  .hero { gap: 30px; }
  .hero-visual { min-height: 405px; padding-inline: 22px; }
  .auth-layout { gap: 35px; }
  .auth-aside { padding: 34px 28px; }
  .auth-card { padding: 28px; }
  .profile-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 22px; }
  .panel-heading { align-items: flex-start; }
  .search-form { max-width: 420px; }
}

@media (max-width: 800px) {
  .container { padding-inline: 22px; }
  .page-main { padding-block: 30px 50px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-block: 10px 42px; }
  .hero-copy { max-width: 610px; }
  .hero-title { max-width: 600px; font-size: clamp(38px, 6.5vw, 52px); }
  .hero-description { max-width: 550px; }
  .hero-visual { min-height: 405px; }
  .preview-card { max-width: 365px; }
  .floating-note { right: max(18px, calc(50% - 230px)); }
  .feature-grid, .steps-grid { gap: 14px; margin-bottom: 43px; }
  .feature-card { padding: 20px; }
  .landing-cta { padding: 28px; flex-wrap: wrap; }
  .auth-layout { max-width: 560px; min-height: 0; grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .auth-aside { padding: 29px; }
  .auth-aside h1, .auth-aside h2 { max-width: none; font-size: 32px; }
  .auth-aside > p { margin-top: 13px; }
  .auth-aside ul { margin-top: 20px; gap: 11px; }
  .auth-kicker { margin-bottom: 13px; }
  .summary-grid { gap: 13px; }
  .summary-card { padding: 19px; }
  .summary-value { font-size: 23px; }
  .panel-heading { flex-direction: column; gap: 17px; }
  .search-form { max-width: none; }
  .profile-layout { grid-template-columns: minmax(0, 1fr); }
  .profile-summary { position: static; }
  .account-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
  .container { padding-inline: 18px; }
  .header-inner { min-height: 0; flex-direction: column; align-items: stretch; gap: 15px; padding-block: 17px 12px; }
  .brand { align-self: flex-start; }
  .brand-mark { width: 40px; height: 40px; border-radius: 11px; }
  .brand-name { font-size: 18px; }
  .header-nav { gap: 6px; }
  .header-nav > .nav-link, .header-nav > .btn, .logout-form { flex: 1; }
  .logout-form .nav-link, .logout-form .btn { width: 100%; }
  .nav-link { padding-inline: 9px; font-size: 12px; }
  .nav-link .icon { width: 15px; height: 15px; }
  .footer-inner { min-height: 98px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding-block: 19px; font-size: 11px; }
  .page-main { padding-block: 26px 42px; }
  .hero { gap: 28px; padding-top: 5px; }
  .hero-title { margin-top: 18px; font-size: clamp(35px, 10vw, 48px); }
  .hero-description { margin-top: 18px; font-size: 13px; }
  .hero-actions { gap: 9px; margin-top: 23px; }
  .hero-actions .btn { flex: 1; padding-inline: 12px; font-size: 12px; }
  .hero-note { font-size: 10px; }
  .hero-visual { min-height: 368px; padding: 27px 21px 54px; border-radius: 23px; }
  .preview-card { padding: 20px; }
  .preview-total { font-size: 29px; }
  .preview-item { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; }
  .preview-icon { width: 30px; height: 32px; border-radius: 8px; }
  .preview-label, .preview-item > strong { font-size: 10px; }
  .preview-caption { font-size: 9px; }
  .preview-list { gap: 14px; padding-top: 18px; margin-top: 18px; }
  .floating-note { right: 13px; bottom: 15px; max-width: 220px; padding: 10px 12px; font-size: 9px; }
  .section-heading { margin-bottom: 21px; }
  .section-heading h2 { font-size: 25px; }
  .feature-grid, .steps-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 38px; }
  .feature-card { padding: 23px; }
  .feature-icon { margin-bottom: 17px; }
  .feature-card p, .step-card p { font-size: 12px; }
  .step-card { position: relative; padding: 3px 0 6px 54px; }
  .step-number { position: absolute; top: 0; left: 0; }
  .landing-cta { gap: 22px; padding: 25px; border-radius: 17px; }
  .landing-cta h2 { font-size: 24px; }
  .landing-cta > .btn, .landing-cta > .actions { width: 100%; }
  .landing-cta .actions .btn { flex: 1; }
  .auth-layout { gap: 20px; }
  .auth-aside { padding: 25px; border-radius: 19px; }
  .auth-aside h1, .auth-aside h2 { font-size: 29px; }
  .auth-aside > p { font-size: 12px; }
  .auth-aside ul { font-size: 12px; }
  .auth-card { padding: 25px 22px; border-radius: 16px; }
  .form-heading h1, .form-heading h2 { font-size: 25px; }
  .form-heading p { font-size: 12px; }
  .form-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .security-note { padding: 13px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 19px; margin-bottom: 23px; }
  .page-heading h1 { font-size: 29px; }
  .heading-actions { width: 100%; }
  .heading-actions .btn { flex: 1; }
  .summary-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 23px; }
  .summary-card { position: relative; min-height: 121px; padding: 21px 20px 21px 80px; }
  .summary-icon { position: absolute; top: 22px; left: 20px; margin: 0; }
  .summary-value { font-size: clamp(21px, 6.5vw, 28px); }
  .summary-detail { font-size: 10px; }
  .notes-panel { padding: 19px 16px; border-radius: 15px; }
  .panel-heading h2 { font-size: 18px; }
  .search-form { flex-wrap: wrap; gap: 8px; }
  .search-input { flex-basis: 160px; }
  .search-form > .btn { padding-inline: 12px; font-size: 11px; }
  .search-form > .back-link { margin: 0; }
  .search-meta { font-size: 11px; }
  .table th, .table td { padding: 14px; }
  .empty-state { padding: 36px 17px; }
  .empty-state h2, .empty-state h3 { font-size: 19px; }
  .empty-state p { font-size: 12px; }
  .empty-actions { flex-direction: column; align-items: stretch; }
  .editor-panel, .danger-panel { padding: 23px 20px; margin-top: 23px; border-radius: 15px; }
  .section-title { font-size: 20px; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .form-actions .btn { width: 100%; }
  .profile-summary { padding: 24px; }
  .profile-layout > .profile-details { padding: 25px 21px; border-radius: 16px; }
  .account-meta { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
