/* src/combined.css */
:root {
  --ds-page: #f7f7f8;
  --ds-raised: #ffffff;
  --ds-ink: #18181b;
  --ds-ink-2: #5c5c64;
  --ds-white: #ffffff;
  --ds-hairline: #e4e4e7;
  --ds-hover: #f0f0f2;
  --ds-teal: #0f766e;
  --ds-danger: #b3261e;
  --ds-font-text:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  --ds-font-display:
    Georgia,
    "Times New Roman",
    serif;
}
* {
  box-sizing: border-box;
}
html,
body,
#root {
  margin: 0;
  min-height: 100%;
}
body {
  background: var(--ds-page);
  font-family: var(--ds-font-text);
  color: var(--ds-ink);
}
button {
  font: inherit;
  color: inherit;
}
.filecard {
  max-width: 430px;
  margin: 0 auto;
  padding: 32px 22px 72px;
}
.group {
  margin: 0 0 44px;
}
.group-label {
  font-family: var(--ds-font-text);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.para {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ds-ink);
  margin: 8px 0;
}
.caption {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ds-ink-2);
  margin: 8px 0;
}
.keysentence {
  font-size: 15px;
  font-weight: 600;
  margin: 14px 0;
}
.closing {
  font-size: 12px;
  color: var(--ds-ink-2);
  border-top: 1px solid var(--ds-hairline);
  padding-top: 14px;
  margin-top: 28px;
  line-height: 1.5;
}
.facts {
  margin: 12px 0;
}
.fact {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ds-hairline);
  font-size: 13.5px;
}
.fact dt {
  color: var(--ds-ink-2);
}
.fact dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}
.rows {
  border-top: 1px solid var(--ds-hairline);
  margin: 10px 0;
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--ds-hairline);
  font-size: 14px;
}
.row span:last-child {
  font-weight: 600;
  white-space: nowrap;
}
.filebtn {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid var(--ds-hairline);
  background: var(--ds-raised);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.filebtn:disabled {
  opacity: 0.45;
  cursor: default;
}
.filebtn-primary {
  background: var(--ds-ink);
  color: #fff;
  border-color: var(--ds-ink);
}
.filebtn-ghost {
  border-color: transparent;
  background: none;
  font-weight: 500;
}
.danger {
  color: var(--ds-danger);
}
.field {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--ds-hairline);
  border-radius: 10px;
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  background: var(--ds-raised);
  margin: 6px 0;
}
.field-qty {
  max-width: 76px;
}
.field-date {
  max-width: 150px;
}
.fieldrow {
  display: flex;
  gap: 8px;
  align-items: center;
}
.fieldrow .field {
  flex: 1;
}
.custombox {
  border: 1px solid var(--ds-hairline);
  border-radius: 14px;
  padding: 16px;
  margin: 14px 0;
  background: var(--ds-raised);
}
.custombox-title {
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 8px;
}
.textback {
  display: inline-block;
  margin-top: 12px;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--ds-ink-2);
  padding: 6px 0;
}
.copybox {
  width: 100%;
  min-height: 140px;
  border: 1px solid var(--ds-hairline);
  border-radius: 10px;
  font: 12px/1.5 ui-monospace, monospace;
  padding: 10px;
  margin-top: 10px;
}
.priceedit {
  border: 0;
  background: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  text-decoration: underline dotted;
  padding: 4px;
}
.bubble {
  background: var(--ds-raised);
  border: 1px solid var(--ds-hairline);
  border-radius: 14px;
  padding: 14px;
  font-size: 14px;
  line-height: 1.5;
  margin: 10px 0;
}
.lineedit input {
  margin: 0;
}
html,
body,
#root {
  margin: 0;
  min-height: 100%;
}
body {
  background: var(--ds-page);
}
.file-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  border-bottom: 1px solid var(--ds-hairline);
}
.file-nav a {
  padding: 10px 0;
  color: var(--ds-ink-2);
  text-decoration: none;
}
.file-nav a[aria-current=page] {
  color: var(--ds-ink);
  box-shadow: inset 0 -1px 0 var(--ds-ink);
}
#root {
  font-family: var(--ds-font-text);
  color: var(--ds-ink);
}
button {
  font: inherit;
  color: inherit;
}
.appbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.appbar-name {
  font-family: var(--ds-font-display);
  font-size: 21px;
  letter-spacing: -0.025em;
}
.appbar-tag {
  font-size: 12px;
  color: var(--ds-ink-2);
}
.tabs {
  display: flex;
  gap: 4px;
  border: 1px solid var(--ds-hairline);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 28px;
  background: var(--ds-raised);
}
.tab {
  flex: 1;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--ds-ink-2);
  padding: 0 6px;
  white-space: nowrap;
}
.tab.is-on {
  background: var(--ds-ink);
  color: var(--ds-white);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 4px;
}
.taplist {
  border-top: 1px solid var(--ds-hairline);
  margin-top: 8px;
}
.taprow {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--ds-hairline);
  background: none;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
}
.taprow.is-static {
  cursor: default;
}
.taprow-name {
  font-weight: 600;
  flex: 1;
  min-width: 0;
}
.taprow-value {
  font-weight: 600;
  white-space: nowrap;
}
.taprow-go {
  color: var(--ds-ink-2);
  font-size: 18px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}
.chip {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--ds-hairline);
  border-radius: 999px;
  background: none;
  cursor: pointer;
  font-size: 14px;
}
.chip:hover {
  background: var(--ds-hover);
}
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.stepper button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--ds-hairline);
  border-radius: 8px;
  background: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.stepper .qty {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
}
.totalrow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0 0;
  font-size: 15px;
}
.totalrow strong {
  font-size: 18px;
}
.pill {
  font-size: 12px;
  color: var(--ds-ink-2);
  border: 1px solid var(--ds-hairline);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.pill.is-paid {
  color: var(--ds-teal);
  border-color: var(--ds-teal);
  font-weight: 600;
}
.bubble {
  border: 1px solid var(--ds-hairline);
  border-radius: 16px 16px 16px 4px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 22px;
  margin-top: 16px;
  max-width: 90%;
}
.paypanel {
  border: 1px solid var(--ds-hairline);
  border-radius: 12px;
  padding: 20px;
  margin-top: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.paypanel-head {
  font-weight: 600;
  font-size: 16px;
}
.paypanel-sub {
  color: var(--ds-ink-2);
  font-size: 13px;
  margin-top: 2px;
}
.paypanel-total {
  font-family: var(--ds-font-display);
  font-size: 32px;
  letter-spacing: -0.025em;
  margin: 14px 0 16px;
}
.paidnote {
  color: var(--ds-teal);
  font-weight: 600;
  padding: 12px 0 4px;
}
.textback {
  border: 0;
  background: none;
  padding: 12px 0 0;
  min-height: 44px;
  cursor: pointer;
  color: var(--ds-ink-2);
  font-size: 14px;
}
.chip.is-on {
  border-color: var(--ds-ink);
  font-weight: 600;
}
.custombox {
  border: 1px solid var(--ds-hairline);
  border-radius: 12px;
  padding: 16px;
  margin: 4px 0 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.custombox-title {
  font-weight: 600;
  font-size: 14px;
}
.field {
  font: inherit;
  color: inherit;
  background: none;
  border: 1px solid var(--ds-hairline);
  border-radius: 10px;
  padding: 10px 12px;
  min-height: 44px;
  font-size: 15px;
  width: 100%;
  box-sizing: border-box;
}
.field:focus {
  outline: 2px solid var(--ds-ink);
  outline-offset: 1px;
}
.fieldrow {
  display: flex;
  gap: 10px;
}
.field-qty {
  max-width: 88px;
}
.custombox {
  border: 1px solid var(--ds-hairline);
  border-radius: 12px;
  padding: 16px;
  margin: 4px 0 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.custombox-title {
  font-weight: 600;
  font-size: 14px;
}
.field {
  font: inherit;
  color: inherit;
  background: none;
  border: 1px solid var(--ds-hairline);
  border-radius: 10px;
  padding: 10px 12px;
  min-height: 44px;
  font-size: 15px;
  width: 100%;
  box-sizing: border-box;
}
.field:focus {
  outline: 2px solid var(--ds-ink);
  outline-offset: 1px;
}
.fieldrow {
  display: flex;
  gap: 10px;
}
.field-qty {
  max-width: 88px;
}
.copybox {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  border: 1px solid var(--ds-hairline);
  border-radius: 10px;
  padding: 10px 12px;
  background: none;
  color: inherit;
  min-height: 120px;
}
.danger {
  color: #a33;
}
.priceedit {
  border: 0;
  border-bottom: 1px dashed var(--ds-ink-2);
  background: none;
  padding: 2px 0;
  min-height: 32px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ds-ink-2);
  white-space: nowrap;
}
.priceedit:hover {
  color: var(--ds-ink);
  border-bottom-color: var(--ds-ink);
}
.lineedit {
  align-items: center;
}
.lineedit .field {
  min-height: 36px;
  padding: 6px 10px;
}
.taprow-sub {
  color: var(--ds-ink-2);
  font-size: 13px;
  white-space: nowrap;
}
.field-date {
  max-width: 150px;
}
html {
  color-scheme: light;
}
html.dark {
  color-scheme: dark;
  --ds-page: #131315;
  --ds-raised: #1d1d20;
  --ds-ink: #f4f4f5;
  --ds-ink-2: #a1a1aa;
  --ds-white: #f4f4f5;
  --ds-hairline: #2e2e33;
  --ds-hover: #26262a;
  --ds-teal: #2dd4bf;
  --ds-danger: #e5736b;
}
html.dark .filebtn-primary {
  background: var(--ds-ink);
  color: #131315;
  border-color: var(--ds-ink);
}
html.dark .tab.is-on {
  color: #131315;
}
.land {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 22px 64px;
}
.land-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0 26px;
}
.land-hero {
  padding: 26px 0 10px;
}
.land-proto {
  display: inline-block;
  border: 2px solid #b45309;
  background: #fef3c7;
  color: #78350f;
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0 0 18px;
}
.dark .land-proto {
  background: #3a2a10;
  color: #fbbf24;
  border-color: #b45309;
}
.land-h1 {
  font-family: var(--ds-font-display);
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0 0 14px;
}
.land-sub {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ds-ink-2);
  margin: 0 0 18px;
  max-width: 46ch;
}
.land-sec {
  padding: 26px 0 8px;
  border-top: 1px solid var(--ds-hairline);
  margin-top: 26px;
}
.land-h2 {
  font-family: var(--ds-font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.land-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.land-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.5;
}
.land-step-n {
  flex: 0 0 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--ds-hairline);
  background: var(--ds-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.land-price {
  border: 1px solid var(--ds-hairline);
  border-radius: 16px;
  background: var(--ds-raised);
  padding: 22px 20px;
}
.land-price-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ds-ink-2);
}
.land-price-amount {
  font-family: var(--ds-font-display);
  font-size: 44px;
  letter-spacing: -0.02em;
  margin: 6px 0 2px;
}
.land-price-per {
  font-size: 17px;
  color: var(--ds-ink-2);
  font-family: var(--ds-font-text);
}
.land-price-note {
  font-size: 13px;
  color: var(--ds-ink-2);
  margin-bottom: 14px;
}
.land-feats {
  list-style: none;
  margin: 0 0 6px;
  padding: 14px 0 4px;
  border-top: 1px solid var(--ds-hairline);
  display: grid;
  gap: 9px;
}
.land-feats li {
  font-size: 14px;
  padding-left: 22px;
  position: relative;
}
.land-feats li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--ds-teal);
  font-weight: 700;
}
.land-faq {
  padding: 12px 0;
  border-top: 1px solid var(--ds-hairline);
}
.land-faq-q {
  font-weight: 650;
  font-size: 14.5px;
  margin-bottom: 4px;
}
.land-faq-a {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ds-ink-2);
}
/* CloseTab approved brand palette, Nov 13 2026. Layout and flows unchanged. */
:root {
  --ds-page:#F6F3EC; --ds-raised:#FFFFFF; --ds-ink:#1E2B34;
  --ds-ink-2:#5C6E7A; --ds-white:#FFFFFF; --ds-hairline:#D8DEDf;
  --ds-hover:#EEECE6; --ds-teal:#2F7D4F; --ds-danger:#B3261E;
  --ct-navy:#1F3B57; --ct-orange:#E05E12; --ct-action:#B94709;
  --ct-action-ink:#FFFFFF; --ct-amber:#94621A;
  --ds-font-display:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
}
html.dark {
  --ds-page:#0F1B24; --ds-raised:#1B2934; --ds-ink:#F3EEE3;
  --ds-ink-2:#9DAFB8; --ds-white:#F3EEE3; --ds-hairline:#3B4C58;
  --ds-hover:#243643; --ds-teal:#4CAF7D; --ds-danger:#F18E85;
  --ct-navy:#F3EEE3; --ct-orange:#F3742B; --ct-action:#F3742B;
  --ct-action-ink:#0F1B24; --ct-amber:#E0A94A;
}
.appbar-name {font-weight:750;color:var(--ct-navy);}
.land-h1,.land-h2 {font-weight:700;color:var(--ct-navy);}
.filebtn-primary,html.dark .filebtn-primary {
  background:var(--ct-action);border-color:var(--ct-action);color:var(--ct-action-ink);
}
.tab.is-on,html.dark .tab.is-on {background:#1F3B57;color:#FFFFFF;box-shadow:inset 0 -3px var(--ct-orange);}
.land-step-n {color:var(--ct-navy);border-color:var(--ct-orange);}
.filebtn-secondary,.chip.is-on {border-color:var(--ct-navy);}
.field:focus {outline-color:var(--ct-orange);}
button:focus-visible,a:focus-visible {outline:2px solid var(--ct-orange);outline-offset:3px;}
.danger {color:var(--ds-danger);}
input[type=checkbox] {accent-color:var(--ct-action);}

/* Keep adjacent text actions separate on touch screens. */
.textback + .textback { margin-left: 18px; }

.history-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.history-control{min-width:0}.history-control label{display:block;margin-bottom:5px}.history-control .field{width:100%;min-width:0;box-sizing:border-box}.invoice-history-filters{margin-bottom:16px}
