:root { color-scheme:dark; --ink:#f2efe6; --muted:#9b9d96; --gold:#cfa859; --gold-light:#f0d695; --line:#ffffff1f; --surface:#101312; --surface-raised:#171a17; --orange:#ffb24f; --pink:#f49bb5; }
* { box-sizing:border-box; }
[hidden],.hidden { display:none!important; }
body { margin:0; padding:10px; min-height:100vh; color:var(--ink); font-family:"Segoe UI",Arial,sans-serif; text-align:center; background:radial-gradient(ellipse at 50% -10%,#8d672423,transparent 58%),radial-gradient(circle at 1px 1px,#cfa8590c 1px,transparent 1.2px),#080a0a; background-size:auto,28px 28px,auto; background-attachment:fixed; }
button,input,select { font:inherit; -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
a { color:var(--gold); }
button:disabled { cursor:wait; opacity:.55; transform:none!important; }
button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible,summary:focus-visible,.table-wrapper:focus-visible { outline:2px solid var(--gold-light); outline-offset:3px; }
.container { position:relative; display:inline-block; width:100%; max-width:1000px; margin:14px auto; padding:18px; background:linear-gradient(145deg,#101312,#101312 45%); border:1px solid var(--line); border-radius:14px; box-shadow:0 24px 70px #0008,0 1px 0 #cfa85912 inset; vertical-align:top; animation:brand-enter .35s ease both; }
.container::before,.owner-card::before { content:""; position:absolute; height:2px; left:18px; right:18px; top:-1px; border-radius:5px; background:linear-gradient(90deg,transparent,#a17e42 25%,#f0d695 50%,#a17e42 75%,transparent); }
.auth-box { max-width:350px; margin:38px auto; padding:20px; }
.logo-box { position:relative; display:flex; align-items:center; justify-content:center; min-height:125px; margin-bottom:20px; padding:24px 16px; isolation:isolate; overflow:hidden; border:1px solid #46381f; border-bottom:2px solid #b58d47; border-radius:9px; background:radial-gradient(ellipse at 10% 10%,#ac874127,transparent 65%),linear-gradient(120deg,#17150f,#080a0a); box-shadow:0 8px 20px #0004; }
.logo-box::before,.logo-box::after { content:""; position:absolute; z-index:-1; pointer-events:none; width:210px; height:210px; border:1px solid #cfa85920; border-radius:50%; right:-80px; top:-115px; }
.logo-box::after { right:auto; left:-100px; top:38px; width:280px; height:280px; border-color:#cfa85910; box-shadow:0 0 0 18px #cfa85904,0 0 0 36px #cfa85903; }
.brand-lockup { display:flex; align-items:center; justify-content:center; gap:13px; }
.brand-emblem { width:52px; height:52px; flex-shrink:0; display:block; filter:drop-shadow(0 3px 9px #0006); }
.brand-type { display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
.brand-wordmark { color:var(--gold-light); font:bold 36px/1.08 Georgia,"Times New Roman",serif; letter-spacing:-1.1px; text-shadow:0 2px 15px #cfa8590c; }
.brand-subline { color:#b69b67; font-size:10px; font-weight:500; letter-spacing:2.5px; line-height:1.4; }
.auth-box .logo-box { min-height:128px; margin-bottom:22px; }
.auth-box .brand-wordmark { font-size:32px; }
.auth-box .brand-emblem { width:46px; height:46px; }
.auth-box .brand-subline { font-size:9px; letter-spacing:2px; }
h2 { margin:20px 0 14px; font-size:24px; line-height:1.35; font-weight:600; }
h3 { margin:23px 0 15px; font-size:21px; font-weight:600; letter-spacing:-.3px; }
input,select { width:100%; min-height:46px; margin:10px 0; padding:12px; color:var(--ink); background:#191814; border:1px solid #3b3428; border-radius:7px; font-size:16px; transition:border-color .15s,background .15s; }
input::placeholder { color:#918570; opacity:1; }
input:hover,select:hover { border-color:#78613c; }
input:focus,select:focus { border-color:var(--gold); background:#1c1a14; }
input:-webkit-autofill { -webkit-text-fill-color:var(--ink); box-shadow:0 0 0 1000px #191814 inset; caret-color:var(--ink); }
.remember-label { display:flex; align-items:center; justify-content:center; gap:8px; margin:10px 0 20px; font-size:14px; color:#c0b29a; }
.remember-label input { width:16px; min-height:0; height:16px; margin:0; accent-color:var(--gold); }
.btn,.button { display:inline-flex; align-items:center; justify-content:center; width:100%; min-height:46px; padding:12px; border:1px solid transparent; border-radius:7px; font-weight:600; font-size:16px; line-height:1.25; text-decoration:none; transition:background .2s,box-shadow .2s,transform .2s; }
.btn-green,.button.primary { color:#171107; background:linear-gradient(115deg,#e8cc94,#c39b55); border-color:#e0bc7b; box-shadow:0 4px 18px #bf934319,inset 0 1px 0 #fff6d15e; }
.btn-green:hover,.button.primary:hover { background:linear-gradient(115deg,#f5dda8,#d3ae69); box-shadow:0 5px 22px #bf934329; transform:translateY(-1px); }
.btn-green:active,.button.primary:active { transform:translateY(0); }
.button.secondary { width:auto; border:1px solid #4a3d28; background:#1c1912; color:var(--gold-light); }
.button.secondary:hover { background:#282217; }
.text-button { display:inline-block; padding:2px 0; border:0; background:transparent; color:#c7ab79; font-size:14px; line-height:1.5; text-decoration:underline; text-underline-offset:4px; }
.text-button:hover { color:var(--gold-light); }
.auth-link-row { margin:15px 0 9px; }
.auth-link-row:last-child { margin:10px 0 6px; }
.signup-caption { color:var(--muted); font-size:13px; line-height:1.65; margin:-4px 0 14px; }
.auth-brand-note { display:flex; align-items:center; justify-content:center; gap:9px; color:#9e865a; letter-spacing:1.2px; font-size:9px; margin-top:26px; }
.auth-brand-note span { width:24px; height:1px; background:#5d4b2d; }
.owner-entry { display:inline-block; margin:17px 0 1px; color:#b8a486; font-size:12px; text-decoration:none; }
.owner-entry:hover { color:var(--gold-light); text-decoration:underline; text-underline-offset:4px; }
.header-actions { position:absolute; right:12px; top:12px; display:flex; gap:6px; }
.logout-button,.header-button { min-height:31px; padding:7px 11px; border-radius:5px; border:1px solid #5c492c; color:#e2c997; background:#252016; font-size:12px; font-weight:600; line-height:1.3; }
.logout-button:hover,.header-button:hover { background:#372c1a; border-color:#a08149; }
#welcomeText { margin:23px 0 18px; color:var(--ink); font-size:25px; letter-spacing:-.5px; overflow-wrap:anywhere; }
.date-controls { display:flex; align-items:center; justify-content:center; width:min(100%,302px); margin:0 auto; gap:8px; padding:8px; background:#0c0c0b; border:1px solid #403421; border-radius:10px; box-shadow:inset 0 1px 0 #cfa85909; }
.date-controls input { flex:1; width:160px; min-width:0; margin:0; font-size:16px; }
.date-controls .show-button { flex:0 0 100px; width:100px; }
.table-wrapper { width:100%; overflow-x:auto; margin-top:20px; border:1px solid #4c3d24; border-radius:7px; scrollbar-color:#8f713f #13110e; }
.table-wrapper:empty { border:0; }
.research-table { width:100%; min-width:750px; border-collapse:collapse; table-layout:auto; background:#101312; }
.research-table th,.research-table td { padding:10px; border:1px solid #342f25; text-align:center; font-size:13px; line-height:1.5; }
.research-table th { padding:13px 10px; color:#efd49d; background:linear-gradient(180deg,#2b2417,#201b12); border-color:#4b3c24; border-bottom:2px solid #96733c; font-weight:600; white-space:nowrap; }
.research-table td { color:#ded4c1; overflow-wrap:anywhere; }
.research-table td:first-child { color:#e3c890; font-weight:600; font-variant-numeric:tabular-nums; white-space:nowrap; }
.research-table tbody tr:nth-child(even) { background:#151710; }
.research-table tbody tr:hover { background:#242014; }
.highlight-orange { background:var(--orange)!important; color:#573210!important; font-weight:600; box-shadow:inset 3px 0 #e58b27; }
.highlight-pink { background:var(--pink)!important; color:#65243b!important; font-weight:600; box-shadow:inset 3px 0 #ce6284; }
.dashboard-footer { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-top:20px; padding:16px 2px 1px; border-top:1px solid var(--line); }
.footer-brand { display:inline-flex; align-items:center; gap:8px; text-align:left; }
.footer-brand b { display:grid; place-items:center; width:26px; height:28px; border:1px solid #9a7a43; border-radius:7px; color:#ddbd80; font:bold 18px Georgia,serif; background:#1e1911; }
.footer-brand>span { color:#d3b57f; font:bold 14px Georgia,serif; }
.footer-brand small { display:block; color:#94805b; font:8px "Segoe UI",Arial,sans-serif; margin-top:3px; letter-spacing:1.2px; }
.footer-actions { display:flex; align-items:center; gap:15px; }
.dashboard-footer .text-button { color:#b6a080; font-size:12px; }
.table-error { margin:14px; color:#f0aa96; font-size:14px; }
#watermark { position:fixed; inset:0; z-index:50; display:flex; flex-wrap:wrap; align-content:center; justify-content:center; overflow:hidden; pointer-events:none; opacity:.045; user-select:none; }
.wm-text { margin:55px; color:#f0d695; font-size:16px; font-weight:bold; transform:rotate(-45deg); }
#loader-overlay { position:fixed; inset:0; z-index:200; display:flex; flex-direction:column; align-items:center; justify-content:center; background:#080a0adb; }
.spinner { width:50px; height:50px; border:4px solid #3f3523; border-top-color:var(--gold-light); border-radius:50%; animation:spin .9s linear infinite; }
.loader-text { margin-top:15px; color:var(--gold-light); font-size:15px; font-weight:600; }
.form-message { margin:10px 0 14px; padding:11px 12px; background:#291a16; border:1px solid #6f3a2a; border-radius:7px; color:#f0b39d; font-size:14px; text-align:left; line-height:1.6; }
.form-message.success { color:#c9d8ad; border-color:#4c5934; background:#1d2415; }
.toast { position:fixed; z-index:250; right:18px; bottom:18px; padding:13px 18px; max-width:min(440px,calc(100% - 36px)); border:1px solid #8d6e3a; border-radius:8px; background:#272014; color:#f0dbaa; box-shadow:0 8px 30px #0008; text-align:left; font-size:14px; line-height:1.5; }
.toast.error { background:#301b16; border-color:#864a33; color:#f2b39f; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; clip:rect(0,0,0,0); overflow:hidden; white-space:nowrap; border:0; }
.icon-defs { position:absolute; width:0; height:0; overflow:hidden; }
.icon { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.muted { color:var(--muted); font-size:14px; line-height:1.65; }
.small-label { font-size:11px; letter-spacing:1.8px; font-weight:600; color:#b6965d; }
.form-stack { display:grid; gap:14px; }
.form-stack label { display:block; font-size:14px; font-weight:600; text-align:left; color:#ded0b5; }
.form-stack input,.form-stack select { margin:7px 0 0; font-weight:400; }
.form-stack .form-message { margin:0; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
.modal { position:relative; width:min(440px,calc(100% - 30px)); max-height:calc(100dvh - 30px); margin:auto; padding:30px; border:1px solid #6b5330; border-radius:13px; box-shadow:0 20px 90px #000a; background:#101312; color:var(--ink); text-align:left; overflow-y:auto; }
.modal::backdrop { background:#000b; }
.modal h2 { font-size:23px; margin:5px 0 12px; }
.modal .form-stack { margin-top:22px; }
.modal-close { position:absolute; right:10px; top:10px; width:31px; height:31px; padding:4px; background:#292319; border:1px solid #473b28; border-radius:5px; color:var(--gold); }
.modal-icon { display:grid; place-items:center; width:40px; height:40px; margin-bottom:15px; color:var(--gold); background:#292216; border:1px solid #4b3c23; border-radius:9px; }
.admin-container { text-align:left; }
.admin-nav { display:flex; gap:8px; padding:1px 0 16px; margin-bottom:5px; border-bottom:1px solid var(--line); }
.admin-nav button { border:1px solid var(--line); border-radius:6px; padding:10px 15px; color:var(--muted); background:#101312; font-size:14px; }
.admin-nav button.selected { background:#2b2316; border-color:#876a3b; color:var(--gold-light); }
.page { padding:10px 3px 0; }
.page-heading { display:flex; justify-content:space-between; gap:15px; align-items:center; margin:13px 0 21px; }
.page-heading h1 { margin:6px 0; font:600 29px/1.25 Georgia,serif; color:var(--gold-light); }
.page-heading p { margin:4px 0 0; }
.stats-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-bottom:20px; }
.stat { display:flex; align-items:center; gap:10px; padding:14px; border:1px solid var(--line); border-radius:8px; background:#181610; }
.stat-icon { display:grid; place-items:center; width:32px; height:32px; background:#2c2416; color:var(--gold); border-radius:6px; }
.stat-number { font-size:22px; font-weight:600; color:var(--gold-light); }
.stat-label { margin-top:4px; color:var(--muted); font-size:12px; }
.panel { border:1px solid var(--line); border-radius:9px; background:#141310; margin-bottom:20px; overflow:hidden; }
.panel-heading { display:flex; justify-content:space-between; align-items:center; gap:15px; padding:18px; border-bottom:1px solid var(--line); }
.panel-heading h2 { font-size:18px; margin:0; }
.panel-heading p { margin:5px 0 0; }
.padded { padding:20px; }
.member-toolbar { display:flex; gap:15px; justify-content:space-between; align-items:center; padding:15px; border-bottom:1px solid var(--line); }
.search-field { position:relative; flex:1; max-width:100%; }
.search-field input { padding-left:37px; margin:0; }
.search-field .icon { position:absolute; left:11px; top:14px; width:16px; height:16px; color:var(--muted); }
.table-scroll { max-width:100%; overflow-x:auto; }
.members-table { width:100%; min-width:650px; border-collapse:collapse; font-size:13px; }
.members-table th,.members-table td { text-align:left; padding:12px; border-bottom:1px solid var(--line); }
.members-table th { color:#d8ba84; background:#241e14; font-weight:600; white-space:nowrap; }
.members-table tbody tr:last-child td { border:0; }
.member-name { font-weight:600; }
.member-email { margin-top:4px; color:var(--muted); font-size:12px; max-width:230px; overflow-wrap:anywhere; }
.member-actions { display:flex; gap:6px; }
.mini-button { padding:6px 8px; border:1px solid #67502e; border-radius:5px; background:#241e14; color:var(--gold-light); font-size:12px; white-space:nowrap; }
.mini-button:hover { background:#332917; }
.status-badge { display:inline-block; padding:3px 6px; border:1px solid #71572e; border-radius:4px; color:#e3c791; background:#302615; font-size:12px; }
.panel-footer { padding:12px 16px; border-top:1px solid var(--line); color:var(--muted); font-size:12px; }
.empty-table { padding:30px!important; text-align:center!important; color:var(--muted); }
.request-row { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:15px 18px; border-bottom:1px solid var(--line); font-size:14px; }
.request-row:last-child { border:0; }
.request-row small { display:block; margin-top:4px; color:var(--muted); font-size:12px; }
.data-layout { display:grid; grid-template-columns:1.2fr 1fr; gap:20px; align-items:start; }
.import-panel { padding:24px; }
.import-panel h2 { font-size:21px; margin:0 0 12px; }
.import-panel .form-stack { margin:20px 0; }
.import-symbol { display:grid; place-items:center; width:40px; height:40px; margin-bottom:18px; border:1px solid #5f4929; border-radius:8px; background:#2c2416; color:var(--gold); }
.micro-note { margin:0; font-size:12px; color:var(--muted); line-height:1.7; }
.data-source-note { display:flex; gap:12px; color:var(--muted); font-size:14px; line-height:1.6; }
.data-source-note .icon { margin-top:4px; color:var(--gold); }
.data-source-note p { margin:5px 0; }
.owner-screen { display:flex; flex-direction:column; align-items:center; padding:28px 15px; text-align:left; }
.owner-card { position:relative; width:min(560px,100%); margin:0 auto; padding:25px; border:1px solid #4e3e26; border-radius:15px; background:linear-gradient(145deg,#18160f,#101312 55%); box-shadow:0 25px 90px #0009; }
.owner-logo { text-decoration:none; margin-bottom:28px; min-height:116px; }
.owner-card h1 { margin:10px 0; color:var(--gold-light); font:600 30px/1.25 Georgia,serif; letter-spacing:-.5px; }
.owner-intro { margin:0 0 24px; }
.owner-tabs { display:flex; gap:5px; padding:5px; margin:0 0 23px; border:1px solid var(--line); border-radius:8px; background:#0b0b0a; }
.owner-tabs button { flex:1; padding:11px 5px; border:1px solid transparent; border-radius:5px; color:var(--muted); background:transparent; font-size:14px; }
.owner-tabs button[aria-selected="true"] { border-color:#705632; color:var(--gold-light); background:#2b2316; }
.owner-help { padding:14px; color:#e1c58f; border:1px solid #514026; border-radius:7px; background:#211c12; font-size:13px; line-height:1.7; }
.owner-help p { margin:5px 0 0; color:#b4a486; }
.owner-help code { color:#e1c58f; font-size:12px; overflow-wrap:anywhere; }
.owner-password-note { margin-top:-4px; }
.new-owner-details { padding:12px 14px; border:1px solid var(--line); border-radius:7px; background:#11110e; }
.new-owner-details summary { color:#c6ad80; cursor:pointer; font-size:13px; line-height:1.5; }
.new-owner-details .form-grid { margin-top:14px; }
.owner-back { display:inline-block; margin-top:25px; color:#b49c73; font-size:13px; text-decoration:none; }
.owner-back:hover { color:var(--gold-light); }
.noscript-message { padding:20px; color:var(--gold-light); }
@keyframes spin { to { transform:rotate(360deg); } }
@keyframes brand-enter { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:translateY(0); } }
@media(max-width:600px) {
  body { padding:10px; }
  .container { margin:10px auto; padding:12px; }
  .auth-box { padding:18px; margin:24px auto; }
  .dashboard-logo { min-height:150px; justify-content:center; padding:42px 12px 20px; }
  .dashboard-logo .brand-wordmark { font-size:32px; }
  .brand-lockup { gap:11px; }
  .brand-emblem { width:46px; height:46px; }
  .brand-subline { font-size:9px; letter-spacing:2px; }
  .header-actions { top:11px; right:10px; gap:4px; }
  .header-button,.logout-button { padding:7px 8px; font-size:11px; }
  #welcomeText { font-size:22px; line-height:1.45; margin:21px 0 17px; }
  .date-controls input { padding:11px 9px; }
  .research-table th,.research-table td { padding:10px; }
  .dashboard-footer { margin-top:18px; }
  .footer-actions { gap:12px; }
  .form-grid,.data-layout { grid-template-columns:1fr; }
  .stats-grid { gap:8px; }
  .stat { padding:12px 9px; gap:7px; }
  .page-heading { align-items:flex-start; flex-wrap:wrap; }
  .page-heading h1 { font-size:25px; }
  .member-toolbar { flex-wrap:wrap; gap:10px; }
  .search-field { flex-basis:100%; }
  .panel-heading { align-items:flex-start; flex-wrap:wrap; }
  .request-row { flex-wrap:wrap; }
  .padded { padding:16px; }
  .modal { padding:25px; }
  .owner-screen { padding:18px 12px; }
  .owner-card { padding:20px; }
  .owner-card h1 { font-size:27px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none!important; animation:none!important; } .btn-green:hover,.button.primary:hover { transform:none; } }

/* Official Dhokiya's artwork and colors, as used on dhokiyas.com. */
.brand-lockup { flex-direction:column; gap:8px; }
.official-logo { display:block; width:240px; max-width:100%; height:auto; object-fit:contain; }
.brand-subline { color:var(--gold); font-size:9px; letter-spacing:2.2px; }
.logo-box { min-height:148px; padding:20px; background:radial-gradient(ellipse at 5% 10%,#47230b55,transparent 70%),linear-gradient(115deg,#101312,#080a0a); }
.auth-box .official-logo { width:225px; }
.auth-box .logo-box { min-height:151px; }
.owner-logo .official-logo { width:240px; }
.footer-brand { flex-direction:column; gap:6px; align-items:flex-start; }
.footer-logo { width:119px; height:auto; display:block; }
.footer-tagline { font-size:7px; letter-spacing:.8px; color:var(--muted); }
.btn-green,.button.primary { background:linear-gradient(110deg,#f0d695,#cfa859); border-color:#cfa859; }
.btn-green:hover,.button.primary:hover { background:linear-gradient(110deg,#f7e4b6,#d9b668); }
.owner-card h1,.page-heading h1 { font-family:"Segoe UI",Arial,sans-serif; font-weight:650; }
.dashboard-shell { display:grid; grid-template-columns:218px minmax(0,1fr) 252px; align-items:start; gap:16px; width:100%; max-width:1580px; margin:14px auto; text-align:left; }
.dashboard-main { width:100%; max-width:none; min-width:0; margin:0; text-align:center; padding:17px; }
.member-sidebar { display:grid; gap:15px; min-width:0; }
.rail-card { padding:17px; background:linear-gradient(135deg,#141714,#101312); border:1px solid #ffffff1f; border-radius:12px; box-shadow:0 8px 25px #0003; text-align:left; min-width:0; }
.rail-card h3 { margin:0; font-size:15px; font-weight:600; letter-spacing:-.2px; line-height:1.4; color:#f2efe6; }
.rail-eyebrow { display:block; margin:0 0 12px; color:#cfa859; font-size:9px; letter-spacing:1.6px; font-weight:600; }
.member-profile { border-top:2px solid #cfa859; padding-top:18px; background:radial-gradient(circle at top left,#cfa85916,transparent 80%),#101312; }
.member-profile h3 { font-size:20px; margin:0 0 9px; overflow-wrap:anywhere; }
.member-profile p { margin:0 0 15px; color:#9b9d96; font-size:11px; line-height:1.6; }
.member-access { display:inline-flex; align-items:center; gap:6px; color:#b7c4a9; font-size:10px; }
.member-access::before { content:""; width:5px; height:5px; border-radius:50%; background:#8eb479; box-shadow:0 0 8px #8eb47933; }
.rail-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:15px; }
.rail-heading .icon { width:16px; height:16px; color:#b99857; }
.rail-caption { color:#9b9d96; font-size:11px; line-height:1.7; margin:12px 0 0; }
.rail-caption strong { color:#e2d4b2; }
.calendar-navigation { display:flex; align-items:center; justify-content:space-between; gap:4px; margin:2px 0 13px; }
.calendar-navigation span { color:#d9c49b; font-size:11px; font-weight:600; text-align:center; }
.calendar-navigation button { display:grid; place-items:center; width:26px; height:29px; border:1px solid #ffffff1f; background:#1b1e19; color:#cfa859; font-size:20px; border-radius:5px; }
.calendar-navigation button:hover { border-color:#cfa859; }
.calendar-weekdays,.research-calendar { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:3px; }
.calendar-weekdays { margin-bottom:6px; }
.calendar-weekdays span { text-align:center; color:#74796e; font-size:9px; line-height:20px; }
.calendar-day { position:relative; height:32px; min-width:0; padding:3px 0 7px; border:1px solid transparent; border-radius:5px; color:#c8cbc1; background:transparent; font-size:11px; text-align:center; }
.calendar-day:hover { background:#ffffff0a; border-color:#cfa85980; }
.calendar-day.is-today { border-color:#5f5334; color:#f0d695; }
.calendar-day.is-selected { background:#cfa859; border-color:#cfa859; color:#101312; font-weight:700; }
.calendar-dot { display:inline-block; width:4px; height:4px; border-radius:50%; background:#cfa859; vertical-align:middle; }
.calendar-day .calendar-dot { position:absolute; left:calc(50% - 2px); bottom:3px; }
.calendar-day.is-selected .calendar-dot { background:#1b2115; }
.calendar-day b { position:absolute; font-size:6px; right:2px; top:1px; color:#cfa859; }
.calendar-day.is-selected b { color:#23271d; }
.quick-date-buttons { display:flex; gap:5px; margin-top:16px; }
.quick-date-buttons button { flex:1; min-width:0; padding:7px 2px; color:#d4bf92; border:1px solid #cfa85940; background:#1a1e16; font-size:10px; border-radius:5px; }
.quick-date-buttons button:hover { border-color:#cfa859; }
.rail-count { display:inline-grid; place-items:center; min-width:21px; height:21px; padding:0 5px; color:#cfa859; background:#cfa85913; border:1px solid #cfa85933; border-radius:5px; font-size:10px; }
.saved-dates-list { max-height:238px; overflow-y:auto; scrollbar-color:#826831 #101312; }
.saved-date-row { display:flex; gap:5px; align-items:center; border-bottom:1px solid #ffffff0d; padding:4px 0; }
.saved-date-row>button:first-child { flex:1; min-width:0; padding:7px 0; text-align:left; border:0; background:transparent; color:#d5d7cb; font-size:11px; }
.saved-date-row>button:first-child span { margin-right:7px; color:#cfa859; font-size:10px; }
.saved-date-row .remove-saved-date { width:24px; height:25px; padding:0; color:#898e80; border:0; border-radius:5px; background:transparent; font-size:18px; }
.saved-date-row button:hover { color:#f0d695; background:#ffffff05; }
#workspace-status { margin-top:12px; font-size:10px; }
#workspace-retry { margin-top:10px; }
.date-summary-title { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; margin-bottom:15px; }
.date-summary-title h3 { font-size:17px; line-height:1.45; }
.save-date-button { flex-shrink:0; padding:6px 7px; border:1px solid #cfa85950; border-radius:5px; background:#cfa8590c; color:#d4b575; font-size:10px; white-space:nowrap; }
.save-date-button[aria-pressed="true"] { background:#cfa85925; border-color:#cfa859; color:#f0d695; }
.save-date-button:disabled,.rail-button:disabled { cursor:default; }
.snapshot-list { margin:0; }
.snapshot-list>div { display:flex; flex-direction:column; gap:4px; margin-bottom:11px; padding-bottom:9px; border-bottom:1px solid #ffffff0c; }
.snapshot-list>div:last-child { margin-bottom:0; }
.snapshot-list dt { font-size:10px; color:#949b8d; }
.snapshot-list dd { margin:0; color:#e2d7bd; font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
.snapshot-list>div:first-child dd { color:#f0d695; font-size:13px; }
.range-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:14px; }
.range-summary span { display:flex; flex-direction:column; gap:5px; color:#909789; font-size:9px; line-height:1.5; }
.range-summary b { color:#d9bc80; font-size:21px; font-weight:600; }
.personal-notes .rail-heading { margin-bottom:6px; }
.personal-notes .rail-caption { margin:0 0 13px; }
.personal-notes textarea { display:block; width:100%; min-height:135px; resize:vertical; padding:12px; border:1px solid #ffffff26; border-radius:7px; background:#080a0a; color:#e3dece; font:12px/1.75 "Segoe UI",Arial,sans-serif; }
.personal-notes textarea:focus { outline:2px solid #cfa859; outline-offset:2px; }
.personal-notes textarea::placeholder { color:#7b8273; }
.personal-notes textarea:disabled { opacity:.6; }
.note-actions { display:flex; flex-direction:column; align-items:flex-end; gap:10px; margin-top:10px; }
.note-actions>span { align-self:flex-start; color:#9b9d96; font-size:10px; line-height:1.7; overflow-wrap:anywhere; }
.rail-button { width:auto; padding:7px 12px; border:1px solid #cfa85970; border-radius:5px; background:#cfa859; color:#111611; font-size:11px; font-weight:600; }
.rail-button:hover { background:#e0be7b; }
.legend-row { display:flex; align-items:flex-start; gap:11px; margin:15px 0; }
.legend-swatch { flex-shrink:0; width:15px; height:15px; margin-top:3px; border-radius:4px; }
.legend-swatch.orange { background:var(--orange); }
.legend-swatch.pink { background:var(--pink); }
.legend-row p { margin:0; color:#babfb2; font-size:11px; line-height:1.8; }
.table-tools { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:25px; padding:12px 0 0; border-top:1px solid #ffffff1f; text-align:left; }
.table-search { position:relative; flex:1; min-width:170px; }
.table-search input { margin:0; min-height:35px; padding:9px 10px 9px 32px; font-size:12px; border-color:#ffffff24; background:#111611; }
.table-search .icon { position:absolute; width:14px; height:14px; top:11px; left:10px; color:#999d90; }
.table-tools select { width:148px; min-height:35px; margin:0; padding:8px; border-color:#ffffff24; background:#111611; font-size:11px; }
.table-actions { display:flex; gap:5px; }
.table-actions button { min-height:35px; padding:8px 10px; border:1px solid #cfa85940; border-radius:6px; background:#191d15; color:#d5bd8b; font-size:11px; white-space:nowrap; }
.table-actions button:hover { background:#252b1c; border-color:#cfa859; }
.table-range { margin:15px 0 -6px; text-align:left; color:#92988a; font-size:11px; line-height:1.7; }
.table-range:empty { display:none; }
.research-table th { font-size:12px; }
.research-table td { font-size:12px; }
.dashboard-shell.focus-mode { display:block; max-width:1280px; }
.dashboard-shell.focus-mode .member-sidebar { display:none; }
.dashboard-shell.focus-mode .dashboard-main { width:100%; }
@media(min-width:1600px) { .member-sidebar { position:sticky; top:16px; } }
@media(max-width:1260px) {
  .dashboard-shell { max-width:1000px; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dashboard-main { grid-column:1/-1; grid-row:1; }
  .left-sidebar { grid-column:1; grid-row:2; }
  .right-sidebar { grid-column:2; grid-row:2; }
  .rail-card { padding:20px; }
  .calendar-day { height:40px; font-size:13px; }
  .calendar-weekdays span { font-size:11px; }
  .calendar-navigation span { font-size:14px; }
  .quick-date-buttons button { font-size:12px; padding:9px; }
}
@media(max-width:600px) {
  .dashboard-shell { display:flex; flex-direction:column; gap:14px; margin:10px auto; }
  .dashboard-main { padding:12px; }
  .member-sidebar { width:100%; }
  .logo-box.dashboard-logo { padding:42px 12px 20px; min-height:173px; }
  .dashboard-logo .official-logo { width:235px; }
  .auth-box .official-logo { width:215px; }
  .table-tools { gap:9px; margin-top:21px; }
  .table-search { flex-basis:100%; }
  .table-tools select { flex:1; min-width:130px; }
  .table-actions { gap:4px; }
  .table-actions button { padding:8px; font-size:10px; }
  .footer-actions { gap:10px; }
  .footer-tagline { font-size:6px; }
  .footer-logo { width:105px; }
  .rail-card h3 { font-size:16px; }
  .member-profile h3 { font-size:21px; }
  .calendar-day { height:43px; }
  .calendar-weekdays span { line-height:24px; }
  .personal-notes textarea { font-size:16px; min-height:150px; }
  .note-actions { flex-direction:row; align-items:center; justify-content:space-between; }
}
@media print {
  :root { color-scheme:light; }
  body { padding:0!important; background:#fff!important; color:#151515; }
  .auth-box,.member-sidebar,.header-actions,.date-controls,.table-tools,.footer-actions,#adminPanel,.toast,dialog,#loader-overlay,.preview-bar,#preview-owner { display:none!important; }
  .dashboard-shell { display:block!important; max-width:none; margin:0; }
  .dashboard-main { padding:0; background:#fff; border:0; box-shadow:none; }
  .container::before { display:none; }
  .logo-box { min-height:0; padding:12px; background:#101312!important; box-shadow:none; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  .official-logo { width:180px; }
  #welcomeText { color:#111; font-size:18px; margin:12px 0; }
  .table-range { color:#444; margin:8px 0; }
  .table-wrapper { overflow:visible; border:0; margin-top:8px; }
  .research-table { min-width:0; width:100%; background:#fff; }
  .research-table th,.research-table td { font-size:9px; padding:6px; color:#151515; border-color:#bbb; }
  .research-table th { background:#e8dfcb!important; color:#251a0a; }
  .research-table td:first-child { color:#251a0a; }
  .research-table tbody tr:nth-child(even) { background:#f7f7f4; }
  .highlight-orange,.highlight-pink { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  thead { display:table-header-group; } tr { break-inside:avoid; }
  .dashboard-footer { border-color:#ddd; }
  .footer-brand { padding:8px; background:#101312!important; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  .wm-text { color:#777; }
  @page { size:A4 landscape; margin:12mm; }
}
@media(min-width:1261px) {
  .member-sidebar { position:sticky; top:16px; max-height:calc(100dvh - 32px); overflow-y:auto; scrollbar-width:thin; scrollbar-color:#655432 #101312; padding-bottom:1px; }
}
