.lg-demo { margin: 0; background: #f6f7fb; }
.lg-root {
  --page: #f6f7fb;
  --paper: #fff;
  --ink: #131a2a;
  --muted: #5b6478;
  --line: #dfe3ef;
  --blue: #2348e8;
  --blue-dark: #1d36ae;
  --blue-tint: #eef1ff;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --sans: "Geist", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  font: 400 14px/1.5 var(--sans);
  letter-spacing: -.015em;
}
.lg-root *, .lg-root *::before, .lg-root *::after { box-sizing: border-box; }
.lg-root [hidden] { display: none !important; }
.lg-root :is(h1, h2, p, ul) { margin: 0; }
.lg-root :is(button, input, textarea) { font: inherit; }
.lg-root button { cursor: pointer; }
.lg-root button:disabled { cursor: wait; opacity: .6; }
.lg-root :is(button, a, input, textarea):focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.lg-root svg { width: 18px; height: 18px; flex: 0 0 auto; }
.lg-root :is(button, a) { touch-action: manipulation; }

.lg-layout { min-height: 100vh; background: var(--page); }
.lg-mast { background: var(--paper); border-bottom: 1px solid var(--line); }
.lg-mast-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px;
  max-width: 1236px; min-height: 64px; margin: auto; padding-inline: clamp(16px, 5vw, 42px);
}
.lg-brand {
  display: flex; align-items: center; gap: 10px; justify-self: start; padding: 0; border: 0;
  background: transparent; color: var(--ink); font-size: 20px !important; font-weight: 770 !important; letter-spacing: -.055em;
}
.lg-brand > span {
  display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px;
  color: #fff; background: var(--blue); box-shadow: 0 5px 13px #2348e82b;
}
.lg-brand svg { width: 21px; height: 21px; }
.lg-nav { display: flex; align-items: stretch; align-self: stretch; gap: clamp(14px, 3vw, 32px); }
.lg-nav-button {
  padding: 0 2px; border: 0; border-bottom: 2px solid transparent; background: none;
  color: var(--muted); white-space: nowrap; font-size: 13px !important; font-weight: 690 !important;
}
.lg-nav-button:hover, .lg-nav-button[aria-current] { color: var(--blue-dark); }
.lg-nav-button[aria-current] { border-bottom-color: var(--blue); }
.lg-mast-end { display: flex; align-items: center; justify-self: end; gap: 10px; }
.lg-mode {
  display: inline-flex; gap: 6px; align-items: center; padding: 5px 8px; border: 1px solid var(--line); border-radius: 99px;
  background: var(--page); color: #3b4969; font: 630 10px/1.25 var(--mono); white-space: nowrap;
}
.lg-mode i, .lg-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lg-mode i { background: var(--blue); }
.lg-icon-link {
  display: grid; place-items: center; width: 33px; height: 33px; padding: 0; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
}
.lg-icon-link:hover { color: var(--blue); background: var(--blue-tint); }
.lg-icon-link svg { width: 15px; height: 15px; }

.lg-container { max-width: 1236px; margin: auto; padding: clamp(24px, 4.3vw, 52px) clamp(16px, 5vw, 42px) 44px; }
.lg-view { animation: lg-enter .24s ease-out both; }
@keyframes lg-enter { from { opacity: .25; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.lg-intro, .lg-sheet-header { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.lg-intro { margin-bottom: 24px; }
.lg-kicker { color: var(--muted); font: 640 11px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .09em; overflow-wrap: anywhere; }
.lg-kicker span { margin-inline: 4px; color: var(--blue); }
.lg-root h1 {
  margin: 4px 0 7px; font-size: clamp(41px, 6.3vw, 80px); font-weight: 800;
  line-height: .98; letter-spacing: -.072em; overflow-wrap: anywhere;
}
.lg-root h1:focus { outline: none; }
.lg-root h1 > span { color: var(--blue); }
.lg-caption { color: var(--muted); font-size: 14px; }
.lg-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: 8px; }
.lg-text-button {
  display: inline-flex; gap: 6px; align-items: center; padding: 6px 3px; border: 0;
  background: transparent; color: var(--muted); white-space: nowrap; font-size: 12px !important; font-weight: 680 !important;
}
.lg-text-button:hover { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.lg-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; padding: 7px 12px;
  border: 1px solid #d5dbed; border-radius: 8px; background: var(--paper); color: var(--ink); white-space: nowrap;
  font-size: 12px !important; font-weight: 720 !important; transition: border-color .16s, background .16s, transform .16s;
}
.lg-button:not(:disabled):hover { border-color: #91a1ed; background: var(--blue-tint); transform: translateY(-1px); }
.lg-button:not(:disabled):active { transform: translateY(1px); }
.lg-button svg, .lg-text-button svg { width: 15px; height: 15px; }
.lg-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.lg-primary:not(:disabled):hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.lg-feature {
  position: relative; isolation: isolate; display: flex; align-items: end; justify-content: space-between; gap: 20px;
  min-height: 181px; margin-bottom: 25px; padding: clamp(18px, 3vw, 32px);
  overflow: hidden; border-radius: 15px; color: #fff; background: var(--blue); box-shadow: 0 12px 35px #2447cf24;
}
.lg-feature .lg-kicker { color: #d8e1ff; }
.lg-feature .lg-kicker span { color: #b8c9ff; }
.lg-feature h2 { margin-top: 7px; font-size: 17px; font-weight: 680; letter-spacing: -.022em; overflow-wrap: anywhere; }
.lg-feature-total {
  display: block; font-size: clamp(31px, 5vw, 57px); font-weight: 760; line-height: 1.08;
  font-variant-numeric: tabular-nums; letter-spacing: -.07em;
}
.lg-feature-art {
  position: absolute; z-index: -1; width: clamp(270px, 47vw, 560px); aspect-ratio: 1; top: 47%; right: -5%;
  transform: translateY(-45%) rotate(21deg); pointer-events: none;
}
.lg-feature-art i { position: absolute; inset: 0; border: 1px solid #cbd6ff77; border-radius: 40%; }
.lg-feature-art i:nth-child(2) { inset: 8%; }
.lg-feature-art i:nth-child(3) { inset: 16%; }
.lg-feature-art i:nth-child(4) { inset: 24%; }
.lg-feature-cta { flex: 0 0 auto; border-color: #fff; color: var(--blue-dark); }
.lg-feature-cta:focus-visible { outline-color: #fff !important; }
.lg-feature-cta svg, .lg-row-arrow svg { transition: transform .18s; }
.lg-feature-cta:hover svg, .lg-row:hover .lg-row-arrow svg { transform: translateX(3px); }

.lg-register { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 3px 8px #14203807; }
.lg-register-heading {
  display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 21px 23px 12px;
}
.lg-register-heading h2, .lg-section-title h2 { font-size: 22px; line-height: 1.18; letter-spacing: -.048em; font-weight: 760; }
.lg-register-heading p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.lg-search {
  display: flex; align-items: center; gap: 8px; max-width: 310px; width: 42%; padding: 7px 9px;
  min-height: 38px; border: 1px solid var(--line); border-radius: 8px; background: var(--page); color: var(--muted);
}
.lg-search svg { width: 16px; height: 16px; }
.lg-search input { width: 100%; min-width: 0; border: 0; border-radius: 3px; background: transparent; color: var(--ink); font-size: 12px; }
.lg-search kbd {
  display: grid; place-items: center; flex: 0 0 19px; height: 19px; border: 1px solid var(--line); border-radius: 4px;
  color: var(--muted); background: #fff; font: 11px var(--mono);
}
.lg-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 23px 13px; }
.lg-filters button {
  min-height: 30px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 99px; background: #fff;
  color: var(--muted); font-size: 11px; font-weight: 690; transition: background .16s, color .16s;
}
.lg-filters button:hover { background: var(--page); color: var(--ink); }
.lg-filters button[aria-pressed="true"] { border-color: #c9d2fb; background: var(--blue-tint); color: var(--blue-dark); }
.lg-orders, .lg-lines, .lg-events { padding: 0; list-style: none; }
.lg-row, .lg-row-head {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(64px, .6fr) minmax(90px, .75fr) minmax(110px, .65fr) 24px;
  align-items: center; gap: 10px; width: 100%; padding: 11px 23px; text-align: left;
}
.lg-row-head {
  border-block: 1px solid #edf0f7; background: #f7f8fc; color: var(--muted);
  font: 620 10px/1.4 var(--mono); letter-spacing: .045em; text-transform: uppercase;
}
.lg-row {
  min-height: 64px; border: 0; background: transparent; color: var(--ink); transition: background .18s;
}
.lg-orders > li + li { border-top: 1px dashed var(--line); }
.lg-row:hover { background: #f5f7ff; }
.lg-row:focus-visible { outline-offset: -3px !important; }
.lg-order-name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.lg-order-name > span:last-child { min-width: 0; }
.lg-order-name small { display: block; color: var(--muted); font: 620 10px/1.4 var(--mono); overflow-wrap: anywhere; }
.lg-order-name strong { display: block; margin-top: 2px; font-size: 13px; font-weight: 750; line-height: 1.2; overflow-wrap: anywhere; }
.lg-file-icon {
  display: grid; place-items: center; flex: 0 0 33px; height: 33px; border-radius: 8px;
  background: var(--blue-tint); color: var(--blue);
}
.lg-file-icon svg { width: 16px; height: 16px; }
.lg-due { color: var(--muted); font-size: 12px; }
.lg-amount, .lg-event-amount { font: 670 12px/1.4 var(--mono); overflow-wrap: anywhere; }
.lg-row-arrow { display: grid; justify-content: end; color: #536ba9; }
.lg-row-arrow svg { width: 15px; height: 15px; }
.lg-badge {
  display: inline-flex; align-items: center; gap: 6px; width: max-content; max-width: 100%; padding: 4px 7px;
  border-radius: 5px; background: var(--page); color: var(--muted); font-size: 10.5px; font-weight: 730; line-height: 1.3;
}
.lg-badge i { flex: 0 0 6px; }
.lg-badge.pending { color: #824812; background: #fff1df; }
.lg-badge.approved, .lg-event-icon.approved { color: #246144; background: #e6f6ec; }
.lg-badge.changes, .lg-event-icon.changes { color: #9a3e57; background: #fbeaf0; }
.lg-register-footer { min-height: 34px; padding: 8px 23px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

.lg-review { max-width: 810px; margin: auto; }
.lg-back { margin: -7px 0 13px; }
.lg-sheet-header { margin-bottom: 17px; align-items: start; }
.lg-sheet-header h1 { font-size: clamp(35px, 5.4vw, 61px); }
.lg-sheet-header > .lg-badge { margin-top: 8px; }
.lg-sheet-summary {
  display: grid; grid-template-columns: minmax(100px, 1.65fr) 1fr 1fr; gap: 8px;
  padding: 17px 19px; border: 1px solid #d1d9fa; border-radius: 12px; background: var(--blue-tint);
}
.lg-sheet-summary small, .lg-lines small, .lg-event small { display: block; color: var(--muted); font-size: 11px; }
.lg-sheet-summary strong { display: block; margin-top: 3px; font-weight: 780; }
.lg-sheet-summary > div:first-child strong { color: var(--blue-dark); font: 760 clamp(15px, 3vw, 25px)/1.15 var(--mono); overflow-wrap: anywhere; }
.lg-policy {
  display: flex; align-items: start; gap: 10px; margin: 13px 0 21px; padding: 12px 13px; border: 1px solid #f0dab7;
  border-left: 3px solid #dc9a40; border-radius: 7px; background: #fff8ed; color: #62401b;
}
.lg-policy svg { width: 17px; height: 17px; margin-top: 2px; }
.lg-policy h2 { font-size: 13px; font-weight: 750; }
.lg-policy p { margin-top: 2px; font-size: 12px; overflow-wrap: anywhere; }
.lg-sheet-section { padding: 15px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.lg-sheet-section + .lg-sheet-section { margin-top: 11px; }
.lg-section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 7px; }
.lg-section-title h2 { font-size: 18px; }
.lg-section-title span, .lg-muted { color: var(--muted); font-size: 12px; }
.lg-lines li {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 0; font-size: 12px;
}
.lg-lines li + li { border-top: 1px dashed var(--line); }
.lg-lines li > strong { flex: 0 0 auto; font: 650 12px/1.5 var(--mono); }
.lg-event { display: flex; align-items: start; gap: 8px; padding: 7px 0; font-size: 12px; }
.lg-event-icon { display: grid; flex: 0 0 auto; place-items: center; width: 25px; height: 25px; border-radius: 6px; }
.lg-event-icon svg { width: 15px; height: 15px; }
.lg-event p { margin-top: 3px; color: var(--muted); overflow-wrap: anywhere; }
.lg-event-amount { margin-left: auto; }
.lg-log-events { padding: 0 17px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); }
.lg-log-events .lg-event { padding: 14px 0; }
.lg-log-events .lg-event + .lg-event { border-top: 1px dashed var(--line); }
.lg-note { display: block; margin-top: 12px; font-size: 12px; font-weight: 720; }
.lg-note small { display: inline-block; padding-left: 4px; color: var(--muted); font-size: 11px; font-weight: 400; }
.lg-note textarea {
  display: block; width: 100%; min-height: 46px; margin-top: 4px; padding: 7px 8px; resize: vertical;
  border: 1px solid var(--line); border-radius: 6px; background: var(--page); color: var(--ink); font-weight: 400;
}
.lg-review-actions {
  position: sticky; bottom: 10px; display: flex; flex-wrap: wrap; justify-content: end; gap: 7px; margin-top: 12px;
  padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); box-shadow: 0 5px 20px #16264e11;
}
.lg-review-actions:empty { display: none; }
.lg-empty { padding: 21px 23px; color: var(--muted); font-size: 13px; }
.lg-feedback {
  position: sticky; top: 10px; z-index: 2; margin-bottom: 10px !important; padding: 9px 12px;
  border: 1px solid #c3d6fd; border-radius: 8px; background: var(--blue-tint); color: var(--blue-dark); font-size: 12px;
}
.lg-feedback[data-tone="error"] { border-color: #efc4d0; background: #fbeaf0; color: #8b2e48; }
.lg-embedded .lg-layout { min-height: 730px; overflow: clip; border: 1px solid var(--line); border-radius: 12px; }
.lg-embedded .lg-container { padding-inline: clamp(16px, 4vw, 32px); }

@media (max-width: 740px) {
  .lg-mast-inner { min-height: 55px; gap: 9px; }
  .lg-brand { gap: 6px; font-size: 16px !important; }
  .lg-brand > span { width: 29px; height: 29px; border-radius: 7px; }
  .lg-brand svg { width: 17px; height: 17px; }
  .lg-nav { gap: 12px; }
  .lg-nav-button { font-size: 12px !important; }
  .lg-icon-link { display: none; }
  .lg-row, .lg-row-head { grid-template-columns: minmax(0, 1.3fr) minmax(68px, .62fr) minmax(78px, .65fr) 13px; padding-inline: 13px; gap: 6px; }
  .lg-row-head span:nth-child(2), .lg-due { display: none; }
  .lg-register-heading, .lg-filters, .lg-register-footer { padding-inline: 13px; }
  .lg-file-icon { display: none; }
  .lg-feature { min-height: 150px; }
}
@media (max-width: 470px) {
  .lg-mast-inner { grid-template-columns: 1fr auto; padding-inline: 12px; }
  .lg-mast-end { display: none; }
  .lg-intro { align-items: start; flex-direction: column; gap: 10px; }
  .lg-actions { justify-content: start; }
  .lg-feature { gap: 9px; }
  .lg-feature-art { right: -35%; }
  .lg-feature .lg-kicker { font-size: 9px; }
  .lg-feature h2 { font-size: 15px; }
  .lg-feature-cta { white-space: normal; padding: 6px 8px; }
  .lg-search { max-width: none; width: 100%; }
  .lg-search kbd { display: none; }
  .lg-register-heading { align-items: stretch; flex-direction: column; gap: 8px; padding-top: 14px; }
  .lg-row, .lg-row-head { grid-template-columns: minmax(0, 1.14fr) minmax(58px, .65fr) minmax(75px, .8fr) 10px; padding-inline: 9px; }
  .lg-row-arrow svg { width: 11px; }
  .lg-order-name strong, .lg-amount { font-size: 11px; }
  .lg-badge { font-size: 9px; gap: 4px; padding: 3px 5px; }
  .lg-badge i { flex-basis: 4px; width: 4px; height: 4px; }
  .lg-sheet-summary { padding-inline: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .lg-root *, .lg-root *::before, .lg-root *::after { animation: none !important; transition: none !important; }
}
