@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
  --bg: #f5f6f2;
  --surface: #fff;
  --ink: #142e2c;
  --text: #243c39;
  --muted: #6e7d77;
  --line: #e3e8e1;
  --accent: #176557;
  --gold: #a08441;
  --soft: #edf5ef;
  --danger: #b23b3b;
  --radius: 16px;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
.tax-report{margin:16px 0;padding:18px;border:1px solid var(--line);border-radius:14px;background:#f8fbf8;font-size:13px;overflow-wrap:anywhere}
.tax-report-head{display:flex;justify-content:space-between;gap:12px;align-items:start;flex-wrap:wrap}
.tax-report-head p{margin:6px 0 12px;color:var(--muted)}
.tax-rate-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(95px,1fr));gap:8px;margin:10px 0 16px}
.tax-rate{display:flex;flex-direction:column;gap:6px;padding:12px;background:white;border:1px solid var(--line);border-radius:10px}
.tax-rate strong{font-size:22px;color:var(--accent)}
.tax-rate small,.tax-pool small{font-size:11px;color:var(--muted);line-height:1.5}
.tax-rate.unknown strong{color:var(--muted)}
.tax-pool{background:var(--soft);border-left:3px solid var(--accent);border-radius:8px;padding:14px;margin:12px 0}
.tax-pool>span{float:right;color:var(--muted);font-size:12px}.tax-pool h3{font-size:22px;margin:12px 0 6px}
.tax-report details{border-top:1px solid var(--line);padding:12px 0 0;margin-top:12px}
.tax-report summary{font-weight:700;cursor:pointer;margin-bottom:10px}.tax-report li{margin:5px 0}
.tax-report details small{display:block;color:var(--muted);margin-top:4px}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3,
.brand {
  font-family: Manrope, system-ui, sans-serif;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 800;
  margin-bottom: 8px;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}
h3 {
  font-size: 15px;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #a8cabe;
}
button {
  border: 0;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #d9e0d8;
  background: #fff;
  border-radius: 9px;
  padding: 11px 12px;
  color: var(--text);
  min-height: 44px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
}
input[type="checkbox"] {
  width: 17px;
  min-height: 17px;
  accent-color: var(--accent);
}
textarea {
  resize: vertical;
  min-height: 90px;
}
.skip {
  position: fixed;
  top: -80px;
  left: 10px;
  z-index: 100;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
.boot {
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 16px;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #d4bc78;
  color: #162d2a;
  font: 800 25px Manrope;
}
.boot .brand-mark {
  margin: auto;
}
.app-shell {
  display: grid;
  grid-template-columns: 242px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #132e2b;
  color: #dce8df;
  padding: 30px 18px;
  position: fixed;
  inset: 0 auto 0 0;
  width: 242px;
  display: flex;
  flex-direction: column;
  z-index: 15;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: white;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  padding: 0 9px 30px;
}
.brand small {
  display: block;
  font: 10px "DM Sans";
  letter-spacing: 2.5px;
  color: #9baea3;
  margin-top: 3px;
}
.nav-caption {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #8ca398;
  padding: 20px 14px 9px;
}
.nav-item {
  width: 100%;
  background: none;
  color: #bfd0c7;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 9px;
  text-align: left;
  font-size: 13px;
  margin: 3px 0;
  font-weight: 500;
}
.nav-item:hover {
  background: #24433d;
  color: white;
}
.nav-item.active {
  background: #eaf1e6;
  color: #16392f;
  font-weight: 700;
}
.nav-item svg {
  width: 18px;
  height: 18px;
}
.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid #345049;
  padding: 20px 10px 0;
}
.sidebar-footer p {
  font-size: 11px;
  color: #a0b6aa;
  line-height: 1.6;
  margin: 8px 0 16px;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #edf1e7;
  color: #48694d;
  font-weight: 700;
  font-size: 12px;
}
.user-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-row strong {
  font-size: 12px;
  display: block;
}
.user-row small {
  font-size: 10px;
  color: #a0b6aa;
}
.main-wrap {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  padding: 0 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
}
.crumb {
  font-size: 12px;
  color: var(--muted);
}
.crumb b {
  color: var(--ink);
  font-weight: 500;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--soft);
  color: #386447;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.badge.warn {
  background: #faf1d9;
  color: #826516;
}
.badge.muted {
  background: #eff1ed;
  color: var(--muted);
}
.badge.danger {
  background: #fbebea;
  color: var(--danger);
}
main {
  padding: 32px 38px 70px;
  max-width: 1700px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 25px;
}
.page-heading p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  max-width: 660px;
}
.eyebrow {
  font-size: 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 9px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 12px;
  min-height: 42px;
  text-decoration: none;
  white-space: nowrap;
}
.btn svg {
  width: 16px;
  height: 16px;
}
.btn.secondary {
  color: var(--text);
  background: white;
  border: 1px solid var(--line);
}
.btn.ghost {
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
}
.btn.danger {
  color: var(--danger);
  background: #fbefec;
}
.btn.small {
  min-height: 33px;
  padding: 6px 10px;
  font-size: 11px;
}
.btn.full {
  width: 100%;
}
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.card-title h2 {
  margin: 0;
}
.step-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}
.step-number {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: var(--soft);
  color: var(--accent);
  font-size: 11px;
}
.hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 7px 0 0;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.fields.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.fields.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  font-size: 11px;
  font-weight: 600;
}
.field small {
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
}
.field.wide {
  grid-column: 1/-1;
}
.field input,
.field select {
  font-weight: 500;
  font-size: 13px;
}
.money-field {
  display: grid;
  grid-template-columns: 1fr 78px;
  gap: 6px;
}
.money-field select {
  padding: 8px;
}
.check {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}
.calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
.result-rail {
  position: sticky;
  top: 24px;
}
.result-hero {
  background: #153d33;
  color: #eef5e9;
  padding: 26px;
  border-radius: var(--radius) var(--radius) 0 0;
  position: relative;
  overflow: hidden;
}
.result-hero:after {
  content: "";
  position: absolute;
  border: 1px solid #527657;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  right: -120px;
  top: -80px;
  opacity: 0.5;
  pointer-events: none;
}
.result-hero p {
  font-size: 11px;
  color: #b7ccb6;
  margin: 0 0 13px;
}
.result-hero .big {
  font: 700 39px Manrope;
  letter-spacing: -1.6px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.result-hero .unit {
  font-size: 13px;
  color: #b7ccb6;
  margin-top: 9px;
}
.result-body {
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
}
.result-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
  line-height: 1.4;
  padding: 9px 0;
  color: var(--muted);
}
.result-row strong {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-align: right;
}
.result-row.total {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 15px;
  font-weight: 700;
  color: var(--ink);
}
.result-note {
  padding: 13px;
  background: #f3f7ed;
  border-radius: 9px;
  font-size: 11px;
  line-height: 1.65;
  color: #58704f;
  margin: 15px 0;
}
.empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}
.empty h3 {
  color: var(--ink);
  font-size: 17px;
  margin: 15px 0 9px;
}
.empty p {
  font-size: 12px;
  line-height: 1.7;
  max-width: 420px;
  margin: 0 auto 20px;
}
.empty svg {
  width: 40px;
  height: 40px;
  color: #849b89;
}
.muted {
  color: var(--muted);
}
.error {
  color: var(--danger);
  background: #fdf1ee;
  border: 1px solid #f0d2ca;
  padding: 13px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.7;
}
.notice {
  background: #f6f3e8;
  border: 1px solid #e8e0c4;
  padding: 13px 17px;
  border-radius: 10px;
  font-size: 12px;
  color: #756332;
  line-height: 1.7;
  margin-bottom: 20px;
}
.notice .actions {
  margin-top: 10px;
}
.hidden,
[hidden] {
  display: none !important;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin: 25px 0;
}
.stat {
  background: white;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.stat .label {
  color: var(--muted);
  font-size: 11px;
}
.stat .value {
  font: 700 28px Manrope;
  margin: 10px 0;
  letter-spacing: -1px;
}
.stat small {
  color: var(--muted);
  font-size: 10px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
th {
  background: #f4f6f1;
  color: var(--muted);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.3px;
  padding: 13px 15px;
  white-space: nowrap;
}
td {
  border-top: 1px solid var(--line);
  padding: 16px 15px;
  vertical-align: middle;
}
td strong {
  font-size: 12px;
  color: var(--ink);
  display: block;
}
td small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.table-wrap input,
.table-wrap select {
  font-size: 11px;
  padding: 8px;
  min-width: 88px;
}
.table-wrap .wide-input {
  min-width: 180px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.search {
  max-width: 360px;
  flex: 1;
  min-width: 200px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.product-card {
  padding: 21px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 13px;
}
.product-card h3 {
  margin: 15px 0 5px;
  font-size: 16px;
}
.product-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  min-height: 38px;
}
.product-card .code {
  font:
    12px ui-monospace,
    monospace;
  color: var(--muted);
  padding: 12px 0;
  border-top: 1px solid var(--line);
  margin-top: 15px;
}
.tariff-item {
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.tariff-item strong {
  display: block;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 6px;
  font-family: ui-monospace, monospace;
}
.tariff-item p {
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}
.tariff-item:last-child {
  border-bottom: 0;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
}
.auth-story {
  background: #132e2b;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 55px 70px;
  position: relative;
  overflow: hidden;
}
.auth-story:after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border: 1px solid #35564a;
  border-radius: 50%;
  right: -270px;
  top: 30%;
  pointer-events: none;
}
.auth-story .brand {
  padding: 0;
}
.auth-story h1 {
  font-size: 52px;
  line-height: 1.18;
  max-width: 520px;
  letter-spacing: -2.5px;
  position: relative;
  z-index: 1;
}
.auth-story h1 em {
  font-style: normal;
  color: #d2bd85;
}
.auth-story p {
  color: #acbfb1;
  line-height: 1.9;
  font-size: 14px;
  max-width: 420px;
}
.auth-features {
  display: flex;
  gap: 25px;
  margin-top: 40px;
  font-size: 11px;
  color: #c3d4c5;
}
.auth-form-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 45px;
}
.auth-card {
  width: 100%;
  max-width: 395px;
}
.auth-card h2 {
  font-size: 27px;
  margin-bottom: 12px;
}
.auth-card > p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
}
.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.auth-card .brand {
  display: none;
}
.auth-foot {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}
.role-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.role-card {
  padding: 15px;
  background: #f4f7ef;
  border-radius: 10px;
}
.role-card strong {
  font-size: 12px;
  display: block;
  margin-bottom: 6px;
}
.role-card p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  max-width: 680px;
  width: calc(100% - 32px);
  max-height: 90vh;
  color: var(--text);
  box-shadow: 0 30px 90px #122c2b30;
}
dialog::backdrop {
  background: #102c2a70;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 22px;
}
dialog .actions {
  margin-top: 24px;
  justify-content: flex-end;
}
dialog pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 11px;
  background: #f5f7f0;
  padding: 15px;
  border-radius: 9px;
  max-height: 50vh;
  overflow: auto;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 20px;
}
.button-close {
  background: #eff2ec;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 18px;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  border-radius: 10px;
  padding: 13px 20px;
  max-width: 90vw;
  box-shadow: 0 10px 35px #0002;
  font-size: 12px;
  z-index: 99;
  display: none;
}
#toast.show {
  display: block;
}
#toast.fail {
  background: #843c32;
}
.mobile-menu {
  display: none;
}
.mobile-menu svg {
  width: 22px;
  height: 22px;
  flex: none;
}
.demo-strip {
  background: #eee4c6;
  color: #6d5928;
  text-align: center;
  font-size: 11px;
  padding: 9px;
}
.progress {
  height: 5px;
  border-radius: 20px;
  background: #e7ede3;
  overflow: hidden;
  margin-top: 12px;
}
.progress span {
  display: block;
  background: #8ca57b;
  height: 100%;
}
.section-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
  gap: 15px;
}
.section-note p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.segmented {
  display: flex;
  padding: 4px;
  background: #eef2ea;
  border-radius: 9px;
  gap: 4px;
}
.segmented button {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 11px;
  background: transparent;
  color: var(--muted);
}
.segmented button.active {
  background: white;
  box-shadow: 0 1px 5px #102c2b10;
  color: var(--ink);
}
.numbers-note {
  margin: 15px 0;
  font-size: 11px;
  color: var(--muted);
}
.upload-zone {
  border: 1.5px dashed #c1d0bf;
  border-radius: 12px;
  text-align: center;
  padding: 28px;
  background: #fbfcf8;
}
.upload-zone label {
  display: inline-flex;
}
.upload-zone p {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 0;
}
.upload-zone input {
  max-width: 320px;
  margin: 15px auto;
}
.chart-bars {
  display: flex;
  gap: 4px;
  margin: 18px 0;
  height: 7px;
  border-radius: 8px;
  overflow: hidden;
}
.chart-bars span {
  min-width: 2px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.inline-error {
  font-size: 10px;
  color: var(--danger);
  margin: 4px 0;
}
.link-button {
  background: none;
  padding: 0;
  color: var(--accent);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.archived-tag {
  text-decoration: line-through;
  color: var(--muted);
}
@media (min-width: 1500px) {
  .calc-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
  }
  .card {
    padding: 28px;
  }
}
@media (max-width: 1150px) {
  .app-shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .sidebar {
    width: 205px;
    padding: 25px 12px;
  }
  .brand {
    font-size: 16px;
  }
  .topbar {
    padding: 0 24px;
  }
  main {
    padding: 25px 24px;
  }
  .calc-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
  }
  .card {
    padding: 20px;
  }
  .fields.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .auth-story {
    padding: 40px;
  }
  .auth-story h1 {
    font-size: 44px;
  }
}
@media (max-width: 900px) {
  .calc-layout {
    grid-template-columns: 1fr;
  }
  .result-rail {
    position: static;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .role-matrix {
    grid-template-columns: repeat(2, 1fr);
  }
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-story {
    display: none;
  }
  .auth-form-wrap {
    min-height: 100vh;
    padding: 28px;
  }
  .auth-card .brand {
    display: flex;
    color: var(--ink);
    margin-bottom: 35px;
  }
  .auth-card .brand small {
    color: var(--muted);
  }
}
@media (max-width: 700px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 242px;
  }
  .sidebar.open {
    transform: none;
    box-shadow: 0 0 0 100vw #132e2b66;
  }
  .topbar {
    height: 62px;
    padding: 0 18px;
  }
  .mobile-menu {
    display: inline-flex;
    background: none;
    padding: 8px;
    color: var(--ink);
    flex: none;
  }
  .topbar > .actions {
    flex-wrap: nowrap;
    gap: 5px;
    min-width: 0;
  }
  .topbar .crumb {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  main {
    padding: 22px 16px 55px;
  }
  .page-heading {
    flex-direction: column;
    gap: 15px;
  }
  h1 {
    font-size: 25px;
  }
  .fields,
  .fields.three,
  .fields.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }
  .card {
    padding: 18px;
  }
  .product-grid,
  .two-col {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat .value {
    font-size: 24px;
  }
  .crumb {
    font-size: 11px;
  }
  .top-actions > .badge {
    display: none;
  }
  .result-hero .big {
    font-size: 36px;
  }
  .toolbar {
    gap: 10px;
  }
  .section-note {
    align-items: flex-start;
    flex-direction: column;
  }
  .tariff-item {
    gap: 12px;
  }
  .role-card {
    padding: 12px;
  }
  .btn {
    white-space: normal;
  }
  .auth-card .brand {
    padding-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Product workflows: photos, saved tariffs and packing stay in the work area. */
.workflow-actions{padding:22px 24px;background:linear-gradient(120deg,#eff3e9,#f9f7f0);border:1px solid #dbe3d6;border-radius:16px;margin-bottom:22px}.workflow-actions h3{margin:5px 0 15px;font-size:18px}.workflow-actions .actions{flex-wrap:wrap}.product-photo{width:100%;height:176px;object-fit:contain;background:#f4f4ef;border-radius:9px;margin-bottom:15px}.photo-editor{padding:18px;background:#f7f8f5;border:1px dashed #b9cbbf;border-radius:12px;margin:20px 0}.photo-strip{display:flex;gap:12px;flex-wrap:wrap}.photo-strip figure{width:116px;margin:0 0 14px}.photo-thumb{width:116px;height:100px;object-fit:contain;border-radius:6px;background:#fff}.photo-strip figcaption{font-size:10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-top:5px}.upload-photo{display:inline-flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px;font-weight:600;margin-bottom:10px}.upload-photo input{max-width:100%;font-size:11px}.photo-editor>.hint{display:block}.row-photo{width:58px;height:45px;object-fit:contain;border-radius:5px;vertical-align:middle;margin-right:8px}.bulk-row-tools{display:flex;align-items:center;gap:3px;flex-wrap:wrap;margin-top:8px;min-width:180px}.bulk-row-tools .btn{padding:5px;font-size:10px}.feature-details{margin:20px 0;border-top:1px solid #e0e5df;padding-top:14px}.feature-details summary{font-weight:600;cursor:pointer;padding-bottom:16px}.packing-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.packing-metrics small{display:block;font-size:11px;margin-bottom:6px}.packing-metrics strong{font-size:20px}.picker-list{max-height:55vh;overflow:auto}.vision-preview{width:100%;height:260px;object-fit:contain;background:#f4f4ef;margin:18px 0;border-radius:12px}.tax-fetch-status:empty{display:none}.tax-fetch-status{font-size:12px;margin:15px 0;color:#315d46}.recovery-list{max-height:36vh;overflow:auto;padding:12px 0}.recovery-list .check{padding:10px;border-bottom:1px solid #e0e5df}.recovery-list small{display:block;color:#6c756c}.original-json{white-space:pre-wrap;overflow-wrap:anywhere;max-height:65vh;overflow:auto;font-size:11px}.auth-card button.ghost{margin:4px 0 14px}.product-card .actions{flex-wrap:wrap}
@media(max-width:720px){.packing-metrics{grid-template-columns:1fr 1fr}.workflow-actions{padding:18px}.workflow-actions .btn{font-size:11px;padding:10px}.vision-preview{height:210px}.photo-editor{padding:12px}.photo-strip figure{width:92px}.photo-thumb{width:92px;height:84px}.product-photo{height:150px}}

.research-check{display:flex;align-items:flex-start;gap:14px;border-top:1px solid var(--line,#ddd);padding:16px 0}.research-check .badge{flex-shrink:0}.research-check p{margin:6px 0;font-size:12px;color:var(--muted,#666)}.precedent{padding:15px 0;border-top:1px solid var(--line,#ddd)}.precedent summary{cursor:pointer;font-size:13px}.source-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;font-size:13px}.precedent h3{margin-top:20px}.tax-report details p{overflow-wrap:anywhere}
/* Restored multi-product workbench and saved supplier comparisons. */
.cost-tabs{display:flex;gap:8px;overflow-x:auto;padding:3px 0 10px;margin-bottom:5px;align-items:stretch}
.cost-tab{display:flex;min-width:140px;max-width:250px;border:1px solid #dce2da;border-radius:10px;background:#fff;flex:none}
.cost-tab.active{border-color:#315d46;background:#eef3eb;box-shadow:inset 0 -2px #315d46}
.cost-tab button{border:0;background:none;cursor:pointer;padding:10px 12px;color:#315d46;text-align:left;font:inherit}
.cost-tab button[role=tab]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.cost-tab small,.comparison-picker small{display:block;font-size:11px;color:#738074;margin-top:4px}
.cost-tab button:focus-visible{outline:2px solid #315d46;outline-offset:-3px}
.comparison-picker{max-height:340px;overflow:auto;border-block:1px solid #e1e6df;margin:15px 0;padding:8px 0}
.comparison-picker .check{padding:10px 6px;align-items:flex-start;border-bottom:1px solid #edf0ea}
.photo-strip figcaption{max-width:130px;overflow-wrap:anywhere}
/* GTİP arama kutusu ve resmî tablodan öneri (assets/tariff/picker-ui.mjs). */
.tp-field{grid-column:1/-1}
.tp-field>label{font:inherit}
.tp-wrap{position:relative}
.tp-wrap input{width:100%}
.tp-list{position:absolute;z-index:30;left:0;right:0;top:calc(100% + 5px);max-height:min(340px,52vh);overflow-y:auto;overscroll-behavior:contain;background:#fff;border:1px solid #cfd9d0;border-radius:12px;box-shadow:0 18px 44px #122c2b26;font-weight:400}
.tp-head{position:sticky;top:0;padding:9px 13px;background:#f1f5f0;border-bottom:1px solid var(--line);font-size:11px;font-weight:700;color:var(--ink);overflow-wrap:anywhere}
.tp-code,.tp-gtip{font-variant-numeric:tabular-nums;color:var(--accent);font-weight:700}
.tp-opt{display:grid;grid-template-columns:132px minmax(0,1fr);gap:4px 12px;padding:10px 13px;border-bottom:1px solid #eef1ec;cursor:pointer;font-size:12.5px;line-height:1.45}
.tp-opt:hover,.tp-opt[aria-selected="true"]{background:var(--soft)}
.tp-opt[aria-selected="true"]{box-shadow:inset 3px 0 var(--accent)}
.tp-title{overflow-wrap:anywhere;color:var(--text)}
.tp-empty{padding:14px;font-size:12px;color:var(--muted);line-height:1.6}
.tp-more{display:block;padding:11px 13px;font-size:11.5px;color:var(--accent);font-weight:600}
.tp-field .tp-chosen{color:var(--accent);font-weight:600;overflow-wrap:anywhere}
.tp-suggest:empty{display:none}
.tp-panel,.tp-info{margin:4px 0 20px;padding:16px 18px;border:1px solid #d5e2d8;border-radius:14px;background:#f6faf6;font-size:12.5px}
.tp-info{color:var(--text);line-height:1.6}
.tp-panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px 14px;flex-wrap:wrap}
.tp-panel-head .eyebrow{display:block;margin-bottom:4px}
.tp-panel-head strong{font-size:15px;color:var(--ink);overflow-wrap:anywhere}
.tp-docs{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center;margin-top:12px;padding-top:12px;border-top:1px solid #dfe8e0;font-size:12px}
.tp-docs>span{font-weight:700}
.tp-message{margin:12px 0 0;padding:9px 12px;border-radius:9px;background:#e4f1e8;color:#24553b;font-weight:600}
.tp-rows{list-style:none;margin:12px 0 0;padding:0}
.tp-row{padding:12px 0;border-top:1px solid #dfe8e0}
.tp-row-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.tp-name{font-weight:700;color:var(--ink);flex:1 1 150px;min-width:0}
.tp-val{font-size:15px;color:var(--accent);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.tp-conditional .tp-val{color:#826516}
.tp-unknown .tp-val,.tp-none .tp-val{color:var(--muted)}
.tp-act{display:inline-flex;flex-wrap:wrap;gap:6px 8px;align-items:center;margin-left:auto}
.tp-done{color:#386447;font-weight:600;font-size:11.5px}
.tp-keep{color:#826516;font-size:11.5px}
.tp-row p{margin:6px 0 0;color:var(--muted);line-height:1.55;overflow-wrap:anywhere}
.tp-row .tp-warn{color:#8a4b12;font-weight:600}
.tp-choices{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:9px}
.tp-choices>span{font-size:11.5px;font-weight:600;flex-basis:100%}
.tp-choices .btn{white-space:normal;text-align:left;justify-content:flex-start;min-height:0;line-height:1.4;font-weight:500;max-width:100%}
.tp-source{display:block;margin-top:6px;font-size:11px;color:var(--muted)}
.tp-panel>.hint a{color:var(--accent);font-weight:600}
.field .tp-inline{color:#386447}
.tp-link{border:0;background:none;padding:0 2px;font:inherit;font-weight:700;color:var(--accent);text-decoration:underline;cursor:pointer}
@media(max-width:700px){.tp-opt{grid-template-columns:1fr;gap:2px}.tp-panel,.tp-info{padding:14px}.tp-act{margin-left:0;flex-basis:100%}}

/* Üyelik, analiz hakkı ve paket satın alma (app.mjs: auth(), krediBadge(), paketDialog()) */
.auth-consent{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.5;margin:10px 0 14px}
.auth-consent input{margin-top:3px;flex:none}
.auth-consent a{text-decoration:underline}
.badge.warn{background:#fdecea;color:#8b1a0e;border-color:#f3b9b2}
.paketler{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:12px 0 18px}
.paket{display:flex;flex-direction:column;gap:4px;border:1px solid var(--line,#d9d4c7);border-radius:12px;padding:14px;cursor:pointer;position:relative;background:var(--card,#fff)}
.paket input{position:absolute;inset:12px auto auto 12px;margin:0}
.paket:has(input:checked){border-color:var(--accent,#122c2b);box-shadow:0 0 0 2px rgba(18,44,43,.15)}
.paket.one-cikan{border-style:double}
.paket-ad{font-weight:600;padding-left:22px}
.paket-kredi{font-size:22px}
.paket-kredi b{font-size:28px}
.paket-fiyat{font-weight:600}
.paket-fiyat small{display:block;font-weight:400;color:var(--muted,#6b6560)}
.paket small{color:var(--muted,#6b6560)}
.paket-form h3{margin:14px 0 6px;font-size:15px}
.paytr-frame{width:100%;min-height:560px;border:0;border-radius:12px;background:#fff}
.xp-kredi{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.xp-kredi-bitti{color:#8b1a0e}
