:root {
  --paper:#f8f9fb; --white:#fff; --ink:#152c50; --muted:#53647b; --blue:#234dae;
  --blue-dark:#173c97; --line:#d7dee8; --soft:#eff4fb; --serif:Georgia,'Times New Roman',serif;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  color:var(--ink); background:var(--paper); font-family:var(--sans); font-size:16px;
  font-synthesis:none; -webkit-text-size-adjust:100%;
}
* {box-sizing:border-box}
body {margin:0;min-height:100vh}
button,a,input,textarea,select {-webkit-tap-highlight-color:transparent}
button,input,textarea,select {font:inherit}
button,a {touch-action:manipulation}
button {cursor:pointer}
button:disabled {cursor:wait;opacity:.6}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex]:focus-visible {
  outline:3px solid #7398f0;outline-offset:3px
}
button {color:inherit}
button svg,span svg,a svg {flex:none}
.sr {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.masthead {background:var(--white);border-bottom:1px solid var(--line)}
.mastinner,.layout {width:min(1080px,100%);margin:auto;padding-inline:clamp(18px,4.5vw,56px)}
.mastinner {display:flex;align-items:center;justify-content:space-between;min-height:78px;padding-top:env(safe-area-inset-top)}
.brand {display:inline-flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none;font-size:17px;font-weight:700;line-height:1.1;letter-spacing:-.02em}
.brand-sub {display:block;color:var(--muted);font-size:14px;font-weight:500;margin-top:3px}
.brand-mark {width:44px;height:44px;background:var(--blue);border-radius:9px;display:flex;align-items:center;justify-content:center;gap:3px;position:relative}
.brand-mark i {height:18px;width:5px;border:1.5px solid #fff;border-radius:1px;position:relative;transform:translateY(-1px)}
.brand-mark i:after {content:'';position:absolute;width:2px;top:3px;left:0;border-top:1px solid #fff}
.brand-mark i:nth-child(3) {transform:translate(1px,-1px) rotate(-9deg)}
.brand-mark b {position:absolute;width:27px;bottom:10px;border-bottom:1.5px solid white}
.identity {display:flex;gap:9px;align-items:center;font-weight:600;font-size:.9rem}
.identity-icon {width:35px;height:35px;background:#edf1f8;color:var(--blue);display:grid;place-items:center;border:1px solid #d8e1f1;border-radius:50%;font-size:14px}
.layout {padding-block:30px max(52px,env(safe-area-inset-bottom))}
.loading,.empty {text-align:center;color:var(--muted);padding:48px 18px}
.demobar {display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 16px;font-size:.875rem}
.demobar strong {display:flex;align-items:center;gap:7px;color:var(--muted);font-weight:500}
.demobar label {display:inline-flex;align-items:center;gap:6px;color:var(--muted)}
.demobar select {border:1px solid var(--line);border-radius:7px;padding:6px 25px 6px 10px;background-color:var(--white);color:var(--ink);font-size:.875rem;cursor:pointer}
.hero {position:relative;isolation:isolate;overflow:hidden;min-height:238px;border-radius:16px;border:1px solid #cbd7e9;padding:32px clamp(23px,4vw,42px);display:flex;align-items:center;background:#edf2f9}
.hero:before {content:'';position:absolute;inset:0;z-index:-2;background:linear-gradient(110deg,#f1f4fa 4%,#eaf0f9 58%,#dbe5f4)}
.hero-copy {position:relative;z-index:1;max-width:61%}
.overline {display:flex;align-items:center;gap:9px;text-transform:uppercase;letter-spacing:.13em;font-size:.75rem;font-weight:700;line-height:1.4;color:var(--blue);margin:0 0 12px}
.overline:before {content:'';width:23px;height:1px;background:currentColor}
h1,h2,h3,p {margin:0}
h1,h2 {font-family:var(--serif);font-weight:normal}
.hero h1 {font-size:clamp(2.55rem,5vw,4.2rem);line-height:1.04;letter-spacing:-.055em;margin:0 0 12px}
.hero p:not(.overline) {line-height:1.48;color:#405575;max-width:49ch}
.hero .btn {margin-top:21px}
.hero-art {width:37%;height:100%;right:0;top:0;position:absolute;z-index:-1;pointer-events:none;overflow:hidden}
.hero-art:before {content:'';position:absolute;inset:0;background-image:linear-gradient(#a8bad140 1px,transparent 1px),linear-gradient(90deg,#a8bad140 1px,transparent 1px);background-size:20px 20px;mask-image:linear-gradient(90deg,transparent,#000 40%);opacity:.68}
.folder {position:absolute;width:74%;height:140px;left:12%;top:calc(50% - 55px);transform:rotate(-10deg);filter:drop-shadow(0 8px 6px #253f6a20)}
.folder-back,.folder-front {position:absolute;inset:0;border:1px solid #3962ac;border-radius:3px}
.folder-back {background:#5b7fc1;transform:translate(1px,-15px) rotate(3deg)}
.folder-back:before {content:'';width:38%;height:18px;position:absolute;left:-1px;top:-17px;background:#5b7fc1;border:1px solid #3962ac;border-bottom:0;border-radius:4px 6px 0 0}
.folder-paper {position:absolute;inset:0 4% 5%;top:-18px;background:repeating-linear-gradient(to bottom,#f6f7f6 0 9px,#bfcce0 9px 10px);border:1px solid #97a9c2;border-radius:2px;transform:rotate(1deg)}
.folder-paper:before {content:'';position:absolute;inset:-5px 5px 8px -2px;background:#f9fafb;border:1px solid #bac8dc;border-radius:2px;z-index:-1}
.folder-front {background:linear-gradient(145deg,#406ab7,#28519b);clip-path:polygon(0 0,38% 0,43% 7%,100% 7%,100% 100%,0 100%);display:flex;align-items:center;justify-content:center}
.folder-front:after {content:'';position:absolute;bottom:7px;left:0;right:0;border-bottom:1px solid #82a0d13d}
.folder-label {border:1px solid #c3d0de;box-shadow:0 0 0 4px #f2f1e9;background:#f2f1e9;width:61%;min-height:42%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;transform:rotate(1deg);color:#33496b}
.folder-label b {font:600 clamp(.7rem,1.5vw,1rem) var(--serif);letter-spacing:.12em;text-transform:uppercase}
.folder-label i {width:65%;height:5px;border-top:1px solid #9ca9b9;border-bottom:1px solid #b7c0cb}
.folder-clip {position:absolute;right:13%;top:-16px;width:9px;height:34px;border:2px solid #dce5ed;border-radius:6px;transform:rotate(7deg);box-shadow:1px 1px 1px #3e536d}
.btn {min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 18px;border-radius:8px;border:1px solid transparent;background:var(--blue);color:white;font-size:.94rem;font-weight:650;line-height:1.35;text-decoration:none}
.btn:hover:not(:disabled) {background:var(--blue-dark)}
.btn.secondary {background:var(--white);color:var(--ink);border-color:#cbd5e4}
.btn.secondary:hover:not(:disabled) {background:#f2f5fa}
.btn.danger {background:#fff;color:#943c43;border-color:#ddbec4}
.btn.danger:hover:not(:disabled) {background:#fcf1f2}
.actions {display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:20px}
.section {margin-top:35px}
.list-heading {margin-bottom:15px;display:flex;align-items:center;gap:12px}
.list-heading h2,.panel h2,.formsheet h2 {font-size:clamp(1.65rem,3.3vw,2.15rem);letter-spacing:-.048em}
.total {border:1px solid var(--line);border-radius:100px;min-width:26px;height:25px;display:grid;place-items:center;padding:0 7px;font-size:.82rem;font-variant-numeric:tabular-nums;color:var(--muted)}
.filters {display:flex;flex-wrap:wrap;gap:7px;margin:0 0 17px}
.filter {border:1px solid var(--line);background:white;color:var(--muted);padding:7px 13px;border-radius:6px;font-size:.875rem;min-height:36px}
.filter[aria-pressed=true] {color:#234999;background:#e9effb;border-color:#bfcfee;font-weight:600}
.case-list,.panel,.formsheet,.empty {background:var(--white);border:1px solid var(--line);border-radius:12px}
.case-list {overflow:hidden}
.case-row {width:100%;display:grid;align-items:center;grid-template-columns:auto 1fr auto 15px;gap:15px;padding:16px 20px;text-align:left;background:var(--white);border:0;border-bottom:1px solid var(--line);min-height:76px}
.case-row:last-child {border-bottom:0}
.case-row:hover {background:#f7f9fd}
.case-row:focus-visible {outline-offset:-3px}
.doc-icon,.empty-icon {width:42px;height:42px;border:1px solid #dce4f2;border-radius:10px;display:inline-grid;place-items:center;color:var(--blue);background:#f2f5fa}
.row-title {font-weight:650;display:block;line-height:1.3;font-size:1rem}
.row-meta {font-size:.85rem;color:var(--muted);display:block;margin-top:4px;line-height:1.35}
.chev {color:#718096}
.status {display:inline-flex;align-items:center;justify-content:center;gap:6px;width:max-content;border-radius:100px;padding:6px 9px;font-size:.82rem;font-weight:600;line-height:1.15;background:#edf0f5;color:#48566d}
.status.pending {background:#faf0d9;color:#7d5512}
.status.approved {background:#e3f2e9;color:#286146}
.status.rejected {background:#f9e7e9;color:#8f3843}
.empty {padding:34px 18px}
.empty .empty-icon {margin-bottom:12px}
.empty h3 {font:600 1rem var(--sans);color:var(--ink);margin-bottom:5px}
.empty p {font-size:.93rem;line-height:1.5}
.back {display:inline-flex;align-items:center;gap:6px;border:0;padding:7px 0;background:transparent;color:var(--muted);font-size:.92rem;margin-bottom:14px}
.back:hover {color:var(--blue)}
.narrow {max-width:800px;margin-inline:auto}
.page-heading {margin-bottom:19px}
.page-heading h1,.gate h1 {font-size:clamp(2.3rem,5vw,3.6rem);line-height:1.1;letter-spacing:-.05em}
.page-heading p:not(.overline) {margin-top:8px;color:var(--muted);line-height:1.5}
.panel,.formsheet {padding:clamp(19px,3.5vw,31px)}
.panel+.panel,.panel+.formsheet,.formsheet+.panel {margin-top:16px}
.panel h2,.formsheet h2 {font-size:1.65rem;margin-bottom:14px}
.form-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.type-opt {display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:8px;min-height:50px;background:white;padding:10px 11px;text-align:left;line-height:1.25;font-size:.95rem}
.type-opt svg {color:var(--muted)}
.type-opt[aria-pressed=true] {background:#eef3fc;border-color:#7f9bd1;color:#23499a;font-weight:600;box-shadow:inset 0 0 0 1px #b9cae9}
.type-opt[aria-pressed=true] svg {color:var(--blue)}
.field {margin-top:18px}
.field label,.field-title {display:block;font-size:.94rem;font-weight:650;margin-bottom:7px}
textarea {resize:vertical;min-height:98px;width:100%;padding:11px 13px;border:1px solid #bcc9da;border-radius:7px;background:white;color:var(--ink);line-height:1.48}
textarea::placeholder {color:#6a7a90}
.hint,.quiet {color:var(--muted);font-size:.9rem;line-height:1.5}
small.hint {display:block;margin-top:4px}
.filing {position:relative;overflow:hidden;background-color:#fdfcf9;border-radius:3px 12px 12px 3px;border:1px solid #dfdcd2;border-left:4px solid #879ec1;padding:clamp(19px,3vw,30px);color:#283a53}
.filing .to {text-align:right;margin-left:auto;max-width:28em;font-size:.85rem;line-height:1.45;color:#58657a}
.filing h3 {font:normal 1.75rem var(--serif);text-align:center;margin:20px 0 12px;letter-spacing:-.025em}
.filing .petition {font:normal 1.08rem/1.55 var(--serif)}
.filing .sign {display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;border-top:1px solid #dedfdc;padding-top:10px;margin-top:15px;color:#58657a;font-size:.82rem}
.form-preview {margin-top:18px}
.meta-line {display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:10px}
.meta-line .overline {margin:0}
.detail-date {font-size:.9rem;color:var(--muted);margin-top:6px}
.rule {border:0;border-top:1px solid var(--line);margin:17px 0}
.message {margin:10px 0;border-left:3px solid #94a9cd;background:#f4f7fb;border-radius:0 7px 7px 0;padding:13px 15px;overflow-wrap:anywhere}
.message.y {border-color:#86a29c;background:#f2f6f5}
.msg-by {font-size:.85rem;font-weight:650;color:#415575;line-height:1.45}
.message p,.quoted,.reason {white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}
.message p {margin-top:5px}
.inline-note {display:flex;align-items:flex-start;gap:8px;padding:13px 15px;background:var(--soft);border-radius:7px;line-height:1.45;font-size:.93rem;color:var(--ink);margin-top:14px}
.inline-note svg {flex:none;margin-top:1px}
.error {background:#faebed;color:#8a2c3c;padding:12px 14px;border-radius:7px;line-height:1.45;font-size:.93rem;margin:12px 0}
.error:empty,[hidden] {display:none!important}
.gate {padding-block:clamp(38px,9vh,92px);max-width:660px;margin:auto}
.gate .brand-mark {margin-bottom:22px}
.gate p {color:var(--muted);line-height:1.55;margin:14px 0 23px}
.demo-warning {font-size:.85rem;color:var(--muted);line-height:1.4}
@media(min-width:900px) { .folder{height:158px;top:calc(50% - 61px)} .hero{min-height:251px} }
@media(max-width:620px) {
  .mastinner {min-height:65px}
  .brand {font-size:16px;gap:9px}
  .brand-mark {width:40px;height:40px}
  .brand-mark b {bottom:8px}
  .layout {padding-top:18px}
  .hero {min-height:224px;padding:24px 19px;align-items:flex-start}
  .hero-copy {max-width:75%}
  .hero h1 {font-size:clamp(2.3rem,8.5vw,3rem);margin-bottom:10px}
  .hero p:not(.overline) {font-size:.94rem}
  .hero .btn {margin-top:17px}
  .hero .overline {font-size:.69rem}
  .hero-art {width:33%;opacity:.95}
  .folder {width:108%;height:86px;left:6%;top:calc(50% - 26px);transform:rotate(-13deg)}
  .folder-label {width:69%}
  .folder-label b {font-size:.56rem}
  .folder-back:before {height:12px;top:-11px}
  .folder-clip {height:24px;border-width:1.5px}
  .section {margin-top:26px}
  .case-row {gap:10px;padding:12px;grid-template-columns:36px 1fr auto}
  .doc-icon {width:35px;height:38px;border-radius:7px}
  .chev {display:none}
  .row-title {font-size:.94rem}
  .row-meta {font-size:.8rem}
  .status {font-size:.75rem;padding:5px 7px}
  .status svg {display:none}
  .filters {gap:5px}
  .filter {font-size:.84rem;padding:7px 9px}
  .demobar {margin-bottom:12px}
  .demobar label>span {display:none}
}
@media(max-width:400px) {
  .case-row {grid-template-columns:36px 1fr;gap:4px 10px}
  .case-row .doc-icon {grid-row:span 2}
  .case-row .status {grid-column:2}
  .hero-art {width:27%}
  .hero-copy {max-width:78%}
  .type-opt {font-size:.87rem;gap:6px;padding:9px 7px}
  .identity {font-size:.82rem}
  .identity-icon {width:31px;height:31px}
}
@media(prefers-reduced-motion:no-preference) {
  button,a,select {transition:background-color .15s,border-color .15s}
}
.case-petition {border:1px solid var(--line);border-radius:10px;background:#fff;padding:0 17px;margin:14px 0;color:var(--ink)}
.case-petition summary {cursor:pointer;padding:13px 0;font-weight:600}
.case-petition .filing {margin:0 0 14px}
.msg-time {display:block;font-size:.78rem;color:var(--muted);margin-top:2px}
.recover {margin:0 0 16px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#f8efd8;border:1px solid #e8d7ad;border-radius:8px;padding:12px 15px}
.recover p {font-size:.9rem;flex:1;min-width:175px}
