@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@700;800&display=swap');

:root { --purple:#681e5b; --purple-dark:#421039; --purple-soft:#f5eaf2; --gold:#d29703; --gold-soft:#fff2cf; --ink:#182523; --muted:#6b7775; --line:#e2e9e7; --paper:#fff; --wash:#f3f6f5; }
* { box-sizing: border-box; }
html { background: var(--wash); }
body { margin:0; min-height:100vh; color:var(--ink); background:var(--wash); font-family:"DM Sans",system-ui,sans-serif; -webkit-font-smoothing:antialiased; }
button,input,select { font:inherit; }
button { color:inherit; }
a { color:var(--purple); text-decoration:none; }
.hidden { display:none !important; }
.no-scroll { overflow:hidden; }

.login-view { min-height:100vh; display:grid; place-items:center; padding:24px; background:radial-gradient(circle at 88% 12%,rgba(210,151,3,.23),transparent 28%),linear-gradient(135deg,#3d0d35,#681e5b 58%,#7b2e6d); }
.login-card { width:min(440px,100%); padding:31px 34px 30px; background:rgba(255,255,255,.97); border:1px solid rgba(255,255,255,.4); border-radius:22px; box-shadow:0 28px 80px rgba(32,4,28,.3); }
.login-card img { width:190px; height:74px; display:block; margin:13px auto 22px; object-fit:contain; }
.back-link { font-size:12px; font-weight:700; }
.kicker { margin:0 0 8px; color:var(--gold); font-size:10px; font-weight:700; letter-spacing:.17em; }
.login-card .kicker { text-align:center; }
.login-card h1 { margin:0; color:var(--purple-dark); text-align:center; font:800 27px/1.2 "Manrope",sans-serif; letter-spacing:-.035em; }
.login-copy { margin:10px auto 23px; color:var(--muted); text-align:center; font-size:13px; line-height:1.55; }
.login-card form { display:grid; gap:14px; }
.login-card label,.filters label { display:grid; gap:7px; color:#40504e; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.07em; }
.login-card input,.filters input,.filters select { width:100%; height:47px; padding:0 14px; color:var(--ink); background:#fbfcfc; border:1px solid #d4dfdd; border-radius:10px; outline:none; text-transform:none; letter-spacing:normal; }
.login-card input:focus,.filters input:focus,.filters select:focus { border-color:#a36196; box-shadow:0 0 0 3px rgba(104,30,91,.1); }
.login-card button { height:47px; margin-top:5px; color:#fff; background:var(--purple); border:0; border-radius:10px; font-weight:700; cursor:pointer; }
.login-card button:hover { background:#551749; }
.login-card button:disabled { opacity:.65; cursor:wait; }
.form-message { min-height:18px; margin:12px 0 0; color:#a43d34; text-align:center; font-size:12px; }
.privacy-note { margin-top:13px; padding:11px; color:#665064; background:var(--purple-soft); border-radius:9px; text-align:center; font-size:10px; line-height:1.5; }

.topbar { height:86px; display:flex; align-items:center; justify-content:space-between; padding:0 max(4vw,24px); background:rgba(255,255,255,.96); border-bottom:3px solid var(--gold); }
.brand { display:flex; align-items:center; gap:12px; }
.brand img { width:174px; height:65px; object-fit:contain; }
.brand > span { width:1px; height:38px; background:#e2d5df; }
.brand strong { color:var(--purple); font:800 14px/1.15 "Manrope",sans-serif; }
.brand small { display:block; margin-top:3px; color:var(--muted); font:700 9px "DM Sans",sans-serif; letter-spacing:.12em; text-transform:uppercase; }
.session { display:flex; align-items:center; gap:12px; color:var(--muted); font-size:11px; }
.session button,.secondary { padding:9px 12px; color:var(--purple); background:var(--purple-soft); border:0; border-radius:8px; font-weight:700; cursor:pointer; }

.page-head { min-height:255px; display:flex; align-items:center; justify-content:space-between; gap:40px; padding:46px max(7vw,30px) 65px; color:#fff; background:radial-gradient(circle at 84% 14%,rgba(210,151,3,.24),transparent 29%),linear-gradient(122deg,#3f1037,#681e5b 58%,#7b2c6d); }
.page-head h1 { margin:0; font:800 clamp(34px,4vw,50px)/1.08 "Manrope",sans-serif; letter-spacing:-.045em; }
.page-head > div:first-child > p:last-child { max-width:580px; margin:14px 0 0; color:rgba(255,255,255,.72); font-size:14px; line-height:1.6; }
.summary { min-width:380px; display:grid; grid-template-columns:repeat(3,1fr); gap:1px; padding:18px; border:1px solid rgba(255,255,255,.17); border-radius:16px; background:rgba(55,9,48,.38); backdrop-filter:blur(10px); }
.summary div { display:grid; gap:4px; padding:0 12px; border-right:1px solid rgba(255,255,255,.14); }
.summary div:last-child { border:0; }
.summary strong { color:#f2cc6b; font:800 27px "Manrope",sans-serif; }
.summary span { color:rgba(255,255,255,.62); font-size:9px; text-transform:uppercase; letter-spacing:.1em; }

.workspace { width:min(1240px,calc(100% - 46px)); margin:-27px auto 0; position:relative; z-index:2; }
.filters-card,.results-card { background:#fff; border:1px solid #dce6e3; border-radius:17px; box-shadow:0 15px 50px rgba(33,56,52,.08); }
.filters-card { padding:23px 25px 25px; }
.section-title { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; }
.section-title h2 { margin:0; font:800 18px "Manrope",sans-serif; letter-spacing:-.025em; }
.section-title p { margin:5px 0 0; color:var(--muted); font-size:12px; }
.filters { display:grid; grid-template-columns:1fr 1.25fr 1fr; gap:13px; margin-top:19px; }
.filters select { appearance:none; background:#fbfcfc linear-gradient(45deg,transparent 50%,#74807e 50%) no-repeat calc(100% - 16px) 20px/6px 6px; padding-right:32px; }
.results-card { margin-top:17px; overflow:hidden; }
.results-head { padding:23px 25px 18px; border-bottom:1px solid var(--line); }
#last-update { color:#7b8785; font-size:10px; }
.table-wrap { overflow-x:auto; }
table { width:100%; min-width:880px; border-collapse:collapse; }
th { padding:12px 19px; color:#71807d; background:#f8faf9; border-bottom:1px solid var(--line); text-align:left; font-size:9px; text-transform:uppercase; letter-spacing:.09em; }
td { padding:16px 19px; color:#344542; border-bottom:1px solid #ebf0ef; font-size:12px; }
tbody tr { cursor:pointer; outline:none; transition:background .18s; }
tbody tr:hover,tbody tr:focus { background:#faf6f9; }
tbody tr:last-child td { border-bottom:0; }
.person { min-width:255px; display:flex; align-items:center; gap:11px; }
.avatar,.profile-avatar { flex:0 0 auto; display:grid; place-items:center; color:var(--purple); background:var(--purple-soft); font-weight:800; }
.avatar { width:37px; height:37px; border-radius:10px; font-size:11px; }
.person strong,td > strong { display:block; color:var(--ink); font-size:12px; }
.person small,td > small { display:block; margin-top:3px; color:#7f8b89; font-size:10px; }
.status { display:inline-flex; align-items:center; gap:6px; padding:6px 9px; border-radius:99px; white-space:nowrap; font-size:10px; font-weight:700; }
.status i { width:6px; height:6px; border-radius:50%; background:currentColor; }
.status--ready { color:#176a4d; background:#e3f5ec; }
.status--delivered { color:#39738a; background:#e2f2f7; }
.status--signing { color:#8a601a; background:#fff1d6; }
.status--pending { color:#80534f; background:#f8e7e4; }
.detail-button { width:32px; height:32px; display:grid; place-items:center; color:var(--purple); background:transparent; border:0; border-radius:8px; font-size:21px; cursor:pointer; }
.detail-button:hover { background:var(--purple-soft); }
.mobile-list { display:none; }
.state { min-height:280px; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:36px; text-align:center; }
.state p { max-width:460px; margin:8px 0 0; color:var(--muted); font-size:12px; }
.state h3 { margin:14px 0 0; font:800 16px "Manrope",sans-serif; }
.state button { margin-top:15px; padding:10px 14px; color:#fff; background:var(--purple); border:0; border-radius:9px; font-weight:700; cursor:pointer; }
.state-icon { width:50px; height:50px; display:grid; place-items:center; color:var(--purple); background:var(--purple-soft); border-radius:14px; font-size:24px; font-weight:800; }
.spinner { width:26px; height:26px; border:3px solid #eadfe7; border-top-color:var(--purple); border-radius:50%; animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }

body > .app-view > footer { width:min(1240px,calc(100% - 46px)); margin:20px auto 0; padding:15px 0 28px; display:flex; justify-content:space-between; color:#788481; font-size:10px; }
.overlay { position:fixed; inset:0; z-index:20; display:flex; justify-content:flex-end; background:rgba(19,9,17,.48); backdrop-filter:blur(3px); }
.drawer { width:min(505px,100%); height:100%; overflow-y:auto; background:#fff; box-shadow:-20px 0 60px rgba(40,10,35,.2); }
.drawer-head { display:flex; justify-content:space-between; align-items:flex-start; padding:25px 27px 20px; border-bottom:1px solid var(--line); }
.drawer-head h2 { margin:0; font:800 19px "Manrope",sans-serif; }
.drawer-head button { width:37px; height:37px; display:grid; place-items:center; color:#5f6b69; background:#fff; border:1px solid var(--line); border-radius:9px; font-size:24px; cursor:pointer; }
.profile { display:flex; align-items:center; gap:14px; padding:23px 27px; }
.profile-avatar { width:51px; height:51px; border-radius:14px; font-size:14px; }
.profile h3 { margin:0; font:800 16px/1.35 "Manrope",sans-serif; }
.profile p { margin:4px 0 0; color:var(--muted); font-size:11px; }
.current-status { margin:0 27px 23px; padding:13px 14px; display:flex; justify-content:space-between; align-items:center; background:#f7f9f8; border:1px solid var(--line); border-radius:10px; font-size:11px; }
.detail-section { margin:0 27px; padding:21px 0; border-top:1px solid var(--line); }
.detail-section h4 { margin:0 0 14px; font:800 10px "Manrope",sans-serif; text-transform:uppercase; letter-spacing:.1em; }
.detail-row { display:grid; gap:3px; margin-top:13px; }
.detail-row span { color:#82908d; font-size:9px; text-transform:uppercase; letter-spacing:.07em; }
.detail-row strong { color:#293b38; font-size:12px; word-break:break-word; }
.notice { margin:1px 27px 0; padding:14px; color:#744f17; background:var(--gold-soft); border:1px solid #ecd39f; border-radius:11px; }
.notice strong { font-size:11px; }
.notice p { margin:5px 0 0; font-size:10px; line-height:1.5; }

@media (max-width:900px) {
  .page-head { flex-direction:column; align-items:flex-start; padding-top:40px; }
  .summary { width:100%; min-width:0; }
}
@media (max-width:680px) {
  .login-card { padding:27px 22px; }
  .topbar { height:71px; padding:0 15px; }
  .brand img { width:138px; height:52px; }
  .brand > span,.brand strong,.session span { display:none; }
  .session button { padding:8px 10px; font-size:10px; }
  .page-head { padding:37px 21px 49px; }
  .page-head h1 { font-size:36px; }
  .summary { padding:14px 8px; }
  .summary strong { font-size:22px; }
  .workspace { width:calc(100% - 27px); margin-top:-21px; }
  .filters-card { padding:19px 17px; }
  .section-title { align-items:center; }
  .secondary { padding:8px; font-size:10px; }
  .filters { grid-template-columns:1fr; }
  .results-head { padding:20px 17px 16px; }
  #last-update { display:none; }
  .table-wrap { display:none; }
  .mobile-list { display:grid; gap:9px; padding:12px; }
  .mobile-record { width:100%; padding:15px; background:#fff; border:1px solid var(--line); border-radius:12px; text-align:left; cursor:pointer; }
  .mobile-record > div { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:12px; }
  .mobile-record > strong { display:block; font-size:12px; }
  .mobile-record > small { display:block; margin-top:4px; color:var(--muted); font-size:10px; }
  .mobile-record > span { margin-top:11px; padding-top:11px; display:flex; justify-content:space-between; color:var(--purple); border-top:1px solid #edf1f0; font-size:11px; font-weight:700; }
  body > .app-view > footer { width:calc(100% - 34px); flex-direction:column; gap:5px; }
  .drawer-head,.profile { padding-left:20px; padding-right:20px; }
  .current-status,.detail-section,.notice { margin-left:20px; margin-right:20px; }
}

@media (prefers-reduced-motion:reduce) { * { animation-duration:.01ms !important; transition-duration:.01ms !important; } }
