:root {
  --ink: #0d100d;
  --ink-soft: #191d18;
  --paper: #f4f3ee;
  --white: #ffffff;
  --green: #69be45;
  --muted: #686b65;
  --line: #d7d8d1;
  --soft: #e9e9e3;
  --warning: #c4862d;
  --danger: #a94442;
  --max: 1480px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto auto;
  min-height: 78px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 243, 238, .96);
  backdrop-filter: blur(14px);
}

.brand-logo { display: flex; width: max-content; padding-left: 34px; align-items: center; }
.brand-logo img { display: block; width: min(250px, 36vw); height: auto; }
.add-quick, .print-quick { align-self: stretch; padding: 0 26px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 12px; font-weight: 800; }
.add-quick span, .print-quick span { margin-left: 10px; color: var(--green); font-size: 18px; }
.add-quick:hover, .print-quick:hover { background: var(--white); }

main { overflow: clip; }
.hero { display: grid; max-width: var(--max); min-height: 690px; margin: 0 auto; padding: 84px 34px 58px; grid-template-columns: minmax(0, 1.18fr) minmax(390px, .82fr); gap: 70px; align-items: center; }
.eyebrow, .mono-label { margin: 0 0 17px; color: var(--green); font-size: 11px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.hero h1, .meeting-card h2, .export-section h2 {
  margin: 0;
  font-family: Impact, "Arial Narrow", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .91;
  text-transform: uppercase;
}
.hero h1 { max-width: 850px; font-size: clamp(78px, 8.6vw, 145px); }
.hero h1 span { color: var(--green); }
.hero h1 span::after { display: inline-block; width: .13em; height: .13em; margin-left: .06em; content: ""; background: var(--ink); vertical-align: baseline; }
.meeting-card { position: relative; overflow: hidden; min-height: 535px; padding: 34px; background: var(--ink); color: var(--white); }
.meeting-card-top { display: flex; align-items: center; justify-content: flex-end; padding-bottom: 27px; border-bottom: 1px solid #343934; color: #d9ddd6; font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.status-live { display: flex; align-items: center; gap: 8px; }
.status-live::before { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(105,190,69,.14); content: ""; }
.meeting-meta { position: relative; z-index: 1; padding: 62px 0 52px; }
.meeting-card h2 { max-width: 440px; font-size: clamp(58px, 6.2vw, 91px); }
.meeting-card .meeting-meta > p:last-child { max-width: 500px; margin: 30px 0 0; color: #c3c8c0; font-size: 14px; line-height: 1.6; }
.meeting-card dl { position: relative; z-index: 1; display: grid; margin: 0; grid-template-columns: 1fr 1fr; border: 1px solid #343934; }
.meeting-card dl div { padding: 18px; }
.meeting-card dl div + div { border-left: 1px solid #343934; }
.meeting-card dt { margin-bottom: 8px; color: var(--green); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.meeting-card dd { margin: 0; font-size: 13px; font-weight: 800; }

.progress-strip { position: relative; display: grid; background: var(--ink); color: var(--white); grid-template-columns: repeat(4, 1fr); }
.progress-strip > div:not(.progress-meter) { min-height: 135px; padding: 28px 34px; border-right: 1px solid #343934; }
.progress-strip strong { display: block; color: var(--green); font-family: "Courier New", monospace; font-size: 36px; line-height: 1; }
.progress-strip span:not(#progressBar) { display: block; margin-top: 12px; color: #b5bab2; font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.progress-meter { position: absolute; right: 0; bottom: 0; left: 0; height: 4px; background: #30352f; }
#progressBar { display: block; width: 0; height: 100%; background: var(--green); transition: width .35s ease; }

.workspace { display: grid; max-width: var(--max); margin: 0 auto; padding: 74px 34px 100px; grid-template-columns: 292px minmax(0, 1fr); gap: 46px; align-items: start; }
.workspace-sidebar { position: sticky; top: 106px; max-height: calc(100vh - 126px); overflow: auto; padding: 0 18px 22px; border-top: 5px solid var(--green); background: var(--ink); color: var(--white); box-shadow: 0 22px 54px rgba(13, 16, 13, .16); scrollbar-color: var(--green) #242923; scrollbar-width: thin; }
.workspace-sidebar::-webkit-scrollbar { width: 5px; }
.workspace-sidebar::-webkit-scrollbar-track { background: #242923; }
.workspace-sidebar::-webkit-scrollbar-thumb { background: var(--green); }
.sidebar-intro { position: relative; padding: 27px 2px 25px; border-bottom: 1px solid #343934; }
.sidebar-kicker { display: flex; align-items: center; gap: 8px; color: var(--green); font-size: 8px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.sidebar-kicker i { width: 7px; height: 7px; background: var(--green); box-shadow: 0 0 0 4px rgba(105,190,69,.12); }
.sidebar-intro h2 { max-width: 230px; margin: 16px 0 12px; font-family: Impact, "Arial Narrow", Arial, sans-serif; font-size: 34px; font-weight: 800; letter-spacing: -.035em; line-height: .94; text-transform: uppercase; }
.sidebar-intro p { max-width: 225px; margin: 0; color: #aeb3ab; font-size: 10px; line-height: 1.55; }
.sidebar-block { padding: 21px 2px; border-bottom: 1px solid #30352f; }
.sidebar-label, .editor-block label { display: block; margin: 0 0 12px; color: var(--green); font-size: 8px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.editor-block input, .sidebar-block select { width: 100%; padding: 13px 12px; border: 1px solid #3b413a; border-radius: 0; outline: 0; background: #171b16; color: var(--white); color-scheme: dark; }
.editor-block input { caret-color: var(--green); }
.editor-block input:hover, .sidebar-block select:hover { border-color: #596057; background: #1c211b; }
.editor-block input:focus, .sidebar-block select:focus, .search-box input:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(105,190,69,.14); }
.editor-block small { display: block; margin-top: 9px; color: #949a92; font-size: 9px; line-height: 1.45; }
.filter-list { display: grid; gap: 7px; }
.filter-list button { position: relative; display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 11px 12px; border: 1px solid transparent; background: transparent; color: #edf0eb; font-size: 12px; text-align: left; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.filter-list button::before { position: absolute; top: 9px; bottom: 9px; left: -3px; width: 3px; transform: scaleY(0); background: var(--green); content: ""; transition: transform .18s ease; }
.filter-list button span { min-width: 31px; padding: 3px 6px; border: 1px solid #3b413a; color: #9da39a; font-family: "Courier New", monospace; font-size: 9px; text-align: center; }
.filter-list button:hover { transform: translateX(3px); border-color: #343934; background: #171b16; }
.filter-list button:hover::before { transform: scaleY(1); }
.filter-list button.is-active { border-color: var(--green); background: var(--green); color: var(--ink); font-weight: 850; box-shadow: 0 9px 26px rgba(105,190,69,.14); }
.filter-list button.is-active::before { transform: scaleY(1); background: var(--white); }
.filter-list button.is-active span { border-color: rgba(13,16,13,.25); color: var(--ink); }
.jump-block nav { display: grid; gap: 4px; }
.jump-block a { display: grid; padding: 9px 8px; grid-template-columns: 24px 1fr; gap: 8px; border-left: 1px solid transparent; color: #aeb3ab; font-size: 10px; line-height: 1.35; text-decoration: none; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.jump-block a:hover { transform: translateX(3px); border-left-color: var(--green); background: #171b16; color: var(--white); }
.jump-block a span { color: var(--green); font-family: "Courier New", monospace; }

.inquiry-workspace { min-width: 0; }
.workspace-toolbar { position: sticky; z-index: 20; top: 78px; display: flex; min-height: 70px; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); background: rgba(244,243,238,.96); backdrop-filter: blur(12px); }
.search-box { display: grid; min-width: 290px; flex: 1; grid-template-columns: auto 1fr; align-items: center; border: 1px solid var(--line); background: var(--white); }
.search-box span { padding: 0 13px; color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.search-box input { min-width: 0; padding: 12px 13px 12px 0; border: 0; outline: 0; background: transparent; }
.toggle { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 700; white-space: nowrap; }
.toggle input { accent-color: var(--green); }
.result-summary { display: flex; align-items: center; justify-content: space-between; padding: 24px 0 15px; }
.result-summary p { margin: 0; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }
.result-summary strong { color: var(--ink); font-family: "Courier New", monospace; }
.result-summary button { border: 0; background: transparent; color: var(--ink); font-size: 11px; font-weight: 800; text-decoration: underline; }

.inquiry-list { display: grid; gap: 22px; }
.inquiry-card { scroll-margin-top: 168px; display: grid; border: 1px solid var(--line); background: var(--white); grid-template-columns: 118px minmax(0, 1fr); }
.inquiry-card.is-saving { border-color: #afc4a4; }
.inquiry-card.has-conflict { border-color: var(--warning); }
.card-rail { display: flex; flex-direction: column; padding: 24px 18px; border-right: 1px solid var(--line); background: #fafaf7; }
.card-number { color: var(--green); font-family: "Courier New", monospace; font-size: 19px; }
.card-owner { margin-top: auto; padding-top: 28px; }
.card-owner span { display: block; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.card-owner strong { display: block; margin-top: 6px; font-size: 13px; }
.card-main { min-width: 0; }
.question-panel { padding: 28px 30px 25px; }
.question-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.category-chip { color: var(--green); font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.status-chip { padding: 6px 9px; border: 1px solid var(--line); color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.status-chip[data-status="Answered"] { border-color: var(--green); color: #3b7f29; }
.status-chip[data-status="Discussed"] { border-color: #7b8277; color: var(--ink); }
.status-chip[data-status="Follow-up"] { border-color: var(--warning); color: #8b5c1c; }
.question-panel h2 { max-width: 980px; margin: 18px 0 16px; font-size: clamp(24px, 2.2vw, 34px); letter-spacing: -.035em; line-height: 1.11; }
.original-wording { display: none; margin-top: 18px; padding: 15px 17px; border-left: 3px solid var(--green); background: var(--paper); }
body.show-originals .original-wording { display: block; }
.original-wording strong { display: block; margin-bottom: 7px; color: var(--ink); font-size: 8px; letter-spacing: .11em; text-transform: uppercase; }
.original-wording p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.52; }

.response-panel { padding: 25px 30px 28px; border-top: 1px solid var(--ink); background: #fbfbf8; }
.response-top { display: grid; margin-bottom: 18px; grid-template-columns: 1fr 180px; gap: 20px; align-items: end; }
.response-top h3 { margin: 0; font-size: 15px; }
.status-field label, .field label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.status-field select { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 0; background: var(--white); }
.field { margin-top: 15px; }
.field textarea { width: 100%; resize: vertical; border: 1px solid var(--line); border-radius: 0; outline: 0; background-color: var(--white); color: var(--ink); line-height: 1.55; }
.answer-input { min-height: 170px; padding: 15px 16px; background-image: linear-gradient(to bottom, transparent 30px, #ecece6 31px); background-size: 100% 31px; }
.save-row { display: flex; min-height: 37px; align-items: center; justify-content: space-between; gap: 14px; margin-top: 15px; }
.save-meta { color: var(--muted); font-size: 10px; }
.save-button { padding: 10px 17px; border: 1px solid var(--ink); background: var(--ink); color: var(--white); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.save-button:hover { background: #242923; }
.save-button:disabled { cursor: wait; opacity: .56; }
.conflict-panel { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 17px 0 0; padding: 12px 14px; border: 1px solid var(--warning); background: #fff8ec; color: #65471c; font-size: 11px; }
.conflict-panel[hidden] { display: none; }
.conflict-actions { display: flex; gap: 7px; }
.conflict-actions button { padding: 7px 9px; border: 1px solid #8b5c1c; background: transparent; color: #65471c; font-size: 9px; font-weight: 800; }
.conflict-actions button:last-child { background: #8b5c1c; color: var(--white); }
.empty-state { padding: 80px 30px; border: 1px solid var(--line); background: var(--white); text-align: center; }
.empty-state strong, .empty-state span { display: block; }
.empty-state span { margin-top: 9px; color: var(--muted); font-size: 12px; }

.export-section { display: grid; padding: 84px max(34px, calc((100vw - var(--max)) / 2 + 34px)); background: var(--ink); color: var(--white); grid-template-columns: 1fr 1fr; gap: 80px; }
.export-section h2 { max-width: 700px; font-size: clamp(58px, 6vw, 96px); }
.export-actions { display: grid; gap: 12px; }
.export-actions button { display: grid; min-height: 112px; padding: 21px 23px; grid-template-columns: 45px 1fr; grid-template-rows: auto auto; border: 1px solid #353a34; background: transparent; color: var(--white); text-align: left; }
.export-actions button:hover { border-color: var(--green); background: #151a14; }
.export-actions button > span { grid-row: 1 / 3; color: var(--green); font-family: "Courier New", monospace; font-size: 12px; }
.export-actions strong { font-size: 17px; }
.export-actions small { margin-top: 7px; color: #adb2aa; font-size: 11px; }
.export-actions p { margin: 7px 0 0; color: #aeb3ab; font-size: 11px; }
footer { display: flex; min-height: 72px; align-items: center; justify-content: space-between; padding: 0 34px; border-top: 1px solid #343934; background: var(--ink); color: #8f948c; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.toast { position: fixed; z-index: 50; right: 24px; bottom: 24px; max-width: 360px; padding: 13px 16px; transform: translateY(20px); background: var(--ink); color: var(--white); font-size: 11px; opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.is-visible { transform: translateY(0); opacity: 1; }

.inquiry-dialog { width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; background: var(--paper); color: var(--ink); box-shadow: 0 28px 90px rgba(0, 0, 0, .28); }
.inquiry-dialog::backdrop { background: rgba(13, 16, 13, .72); backdrop-filter: blur(4px); }
.inquiry-dialog form { padding: 32px; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.dialog-heading h2 { margin: 0; font-family: Impact, "Arial Narrow", Arial, sans-serif; font-size: 50px; letter-spacing: -.035em; line-height: .95; text-transform: uppercase; }
.dialog-close { width: 40px; height: 40px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 26px; line-height: 1; }
.dialog-help { margin: 24px 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.inquiry-dialog label { display: grid; margin-top: 17px; gap: 8px; color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.inquiry-dialog input, .inquiry-dialog textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 0; outline: 0; background: var(--white); color: var(--ink); letter-spacing: normal; text-transform: none; }
.inquiry-dialog textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.inquiry-dialog input:focus, .inquiry-dialog textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(105,190,69,.11); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 27px; }
.dialog-actions button { padding: 12px 16px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.dialog-actions .dialog-submit { background: var(--ink); color: var(--white); }
.dialog-actions button:disabled { cursor: wait; opacity: .55; }

@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; }
  .meeting-card { min-height: 470px; }
  .workspace { grid-template-columns: 245px minmax(0, 1fr); gap: 30px; }
  .workspace-toolbar { flex-wrap: wrap; padding: 12px 0; }
  .search-box { width: 100%; flex-basis: 100%; }
  .export-section { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-header { min-height: 66px; grid-template-columns: 1fr auto; }
  .brand-logo { padding-left: 18px; }
  .brand-logo img { width: 190px; max-width: 49vw; }
  .add-quick { padding: 0 18px; }
  .print-quick { display: none; }
  .hero { min-height: 0; padding: 56px 18px 40px; grid-template-columns: 1fr; gap: 42px; }
  .hero h1 { font-size: clamp(62px, 20vw, 100px); }
  .meeting-card { min-height: 450px; padding: 25px; }
  .meeting-card h2 { font-size: 60px; }
  .progress-strip { grid-template-columns: 1fr 1fr; }
  .progress-strip > div:not(.progress-meter) { min-height: 102px; padding: 22px 18px; border-bottom: 1px solid #343934; }
  .progress-strip strong { font-size: 27px; }
  .workspace { display: block; padding: 36px 14px 70px; }
  .workspace-sidebar { position: static; max-height: none; margin-bottom: 30px; padding: 0 22px 24px; }
  .sidebar-intro h2 { max-width: none; font-size: 40px; }
  .sidebar-intro p { max-width: none; }
  .jump-block { display: none; }
  .workspace-toolbar { top: 66px; gap: 10px; }
  .toggle { flex: 1; white-space: normal; }
  .inquiry-card { grid-template-columns: 1fr; }
  .card-rail { flex-direction: row; align-items: center; justify-content: space-between; padding: 14px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .card-owner { margin: 0; padding: 0; text-align: right; }
  .question-panel, .response-panel { padding: 22px 18px; }
  .response-top { grid-template-columns: 1fr; }
  .save-row, .conflict-panel { align-items: stretch; flex-direction: column; }
  .save-button { width: 100%; }
  .export-section { padding: 64px 18px; gap: 42px; }
  .export-section h2 { font-size: 56px; }
  .inquiry-dialog form { padding: 24px 20px; }
  .dialog-heading h2 { font-size: 42px; }
  .dialog-actions { align-items: stretch; flex-direction: column-reverse; }
  .dialog-actions button { width: 100%; }
  footer { padding: 0 18px; flex-direction: column; justify-content: center; gap: 7px; }
}
