/* Creator Records — restrained graphite / soft-blue design system */
:root{
  color-scheme:dark;
  --bg:#101319;
  --panel:#1a2028;
  --card:#202832;
  --line:#36414e;
  --text:#f0f2f5;
  --muted:#a9b3c1;
  --accent:#9dbbe9;
  --accent2:#b9cbec;
  --bad:#e2a0a5;
  --warn:#dec08a;
  --ok:#83c4a6;
  --shadow:0 8px 24px #00000027;
}
html{background:var(--bg);max-width:100%;-webkit-text-size-adjust:100%}
body{
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:15px;
  line-height:1.5;
}
.shell{max-width:1000px}
.top{padding:5px 0 9px;margin-bottom:10px}
.logo{background:#303d50;color:#d6e5fc;box-shadow:none;border-radius:11px}
.brand{color:#f4f5f7;font-weight:760;letter-spacing:-.35px}
h1,h2,h3{color:#f3f5f7;letter-spacing:-.45px}
h1{font-weight:760;line-height:1.18}
h2{font-weight:740}
.lead{color:#b8c3cf}
a{color:var(--accent2)}
.hero{
  border-radius:16px;
  background:#202833;
  border:1px solid #3b4857;
  box-shadow:none;
  padding:23px 25px;
}
.panel{
  background:#1b222b;
  border-color:#384553;
  border-radius:15px;
  box-shadow:none;
}
.card{background:#212a35;border:1px solid #364350;border-radius:13px}
.card:hover{border-color:#5e7188}
.nav{gap:7px}
.nav button{
  border-radius:10px;
  border:1px solid #3b4654;
  background:#1b222a;
  color:#cad3df;
  min-height:42px;
  font-weight:650;
  transition:background .15s,border-color .15s;
  box-shadow:none;
}
.nav button:hover{background:#283240;color:#f3f5f7}
.nav button.active{
  background:#354560;
  color:#edf3ff;
  border-color:#6685b7;
  box-shadow:none;
}
.nav .ui-icon{color:inherit}
.btn,.btn:visited{
  background:#a1bce8;
  color:#1c2a3c;
  font-weight:760;
  border-radius:10px;
  border:1px solid transparent;
  box-shadow:none;
}
.btn:hover{filter:brightness(1.045)}
.btn.secondary{background:#2c3847;color:#dbe7f6;border-color:#4d6074}
.btn.ghost{background:#202833;color:#c9d4df;border-color:#45515e}
.btn.danger{background:#3e2a31;color:#f5c4c7;border-color:#76505b}
.btn.sm{border-radius:9px}
.cr-primary{background:#a1bce8!important;color:#1c2a3c!important;font-weight:760!important}
.cr-steps button{
  border-radius:12px;
  background:#202935;
  border-color:#364655;
  color:#eef2f6;
}
.cr-steps button:hover,.cr-steps button:focus-visible{border-color:#879ebb}
.cr-steps strong{background:#34465e;color:#d9e7ff;border-radius:9px}
.cr-steps small{color:#afbdcb}
.stats .card{background:#202832}
.stats .card strong{color:#e6ebf1}
.pill{background:#2b3642;color:#cfdae4;font-weight:700}
.pill.ok{background:#263b35;color:#b3e0cc}
.pill.warn{background:#40372b;color:#f3d6a6}
.pill.bad{background:#462f36;color:#f4bdc3}
.steps{gap:8px}
.step{border-radius:8px;background:#293342;color:#bdc9d7;padding:7px 10px;font-weight:650}
.step.current{background:#3a4e6b;color:#edf3ff}
.step.complete{background:#293c37;color:#b5d9c8}
.alert{
  border-radius:10px;
  background:#3a3127;
  border-color:#695640;
  color:#f2dbb5;
}
.alert.negative{background:#3c2a30;border-color:#79505b;color:#f5c8cc}
.alert.good{background:#263d35;border-color:#467463;color:#c4ebd8}
.alert.info{background:#273440;border-color:#52677b;color:#d1e2f1}
.checkrow{background:#202b37;border-color:#374958}
.subtle{background:#202832;border-color:#404d5b;border-radius:11px}
.empty{border-color:#475464;border-radius:12px}
.secure{background:#29333f;border-color:#455a6c;color:#d0dae5}
.field label{color:#dce3eb;font-weight:660}
.field .hint{color:#aab7c5}
.field input:not([type=checkbox]):not([type=radio]),
.field textarea,.field select,
#recordsSuite select,#recordsSuite input{
  background:#141a22;
  color:#f1f4f7;
  border:1px solid #465566;
  border-radius:10px;
  padding:12px 14px;
  box-shadow:none;
}
.field input:focus,.field textarea:focus,.field select:focus{
  border-color:#91b0db;
  box-shadow:0 0 0 2px #90b0d52a;
}
::placeholder{color:#899aaa;opacity:1}
input[type=file]::file-selector-button{
  background:#364759;color:#e0e9f3;border-radius:8px;
}
.signature{border-color:#657384;border-radius:9px}
.filebadge{background:#293b39;border-color:#536e68;color:#c3e4d8}
.foot{color:#909eab;line-height:1.6}
.meter>div{background:#91b1e0}
.cr-sync-panel,.cr-bio-panel{
  background:#1c2530;
  border:1px solid #3d4d5d;
  border-radius:13px;
  box-shadow:none;
}
.cr-sync-icon{background:#303f50;color:#dce8f7;border-radius:10px}
.cr-sync-text small,.cr-bio-row small{color:#b8c7d4}
.cr-sync-status{background:#343f4c;color:#d3dce7}
.cr-sync-status.ok{background:#28423a;color:#c8e7d8}
.cr-sync-status.warn{background:#4a3d2f;color:#f0d3a3}
.cr-sync-alert{background:#3e3429;border-color:#d1ab77}
.cr-sync-alert strong{color:#f5d9ae}
.cr-sync-alert p{color:#d5c1a5}
.cr-sync-extra{background:#151d25;border-color:#405064;border-radius:10px}
.cr-modal{background:#202833;border-color:#526478;border-radius:16px;box-shadow:0 16px 40px #0007}
.cr-overline{color:#acbfdc}
.cr-input{background:#131c25;color:#f0f3f7;border-color:#596a7a}
.cr-input:focus{border-color:#97b5df}
.cr-close{color:#d0dce7}
#recordsSuite{background:#1c242e}
#recordsSuite .subtle{background:#242e3a;border-color:#445262}
.consent-summary>div{border-color:#3d4b59}
.consent-summary b{color:#bdcbd9}
.consent-summary span{color:#f0f3f7}
.consent-form .consent-summary{background:#202a35;border-color:#455362}
.consent-statements .tick-and-help{background:#242e3b;border-color:#435567;border-radius:10px}
.consent-statements .tick{color:#e3e9ef}
.tick input{accent-color:#8cb4e9}
p.muted,.muted{color:var(--muted)}
/* Prevent iOS date inputs and long form labels from pushing outside cards. */
#app,.panel,.card,.field,.formgrid,.tick-and-help{min-width:0}
#app{max-width:100%}
.panel,.card{max-width:100%}
.formgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
.formgrid>*{min-width:0;max-width:100%}
.field input:not([type=checkbox]):not([type=radio]),
.field textarea,.field select{
  width:100%;
  max-width:100%;
  min-inline-size:0;
  box-sizing:border-box;
  display:block;
}
.field input[type=date]{
  min-width:0!important;
  max-width:100%!important;
  inline-size:100%;
  box-sizing:border-box;
  overflow:hidden;
}
.field-title{min-width:0;flex-wrap:wrap}
.field-title label{min-width:0;overflow-wrap:anywhere}
.tick-and-help{min-width:0}
.tick-and-help .tick{min-width:0}
.tick-and-help span{overflow-wrap:anywhere}
/* A question mark opens a readable, centered sheet rather than an offscreen popover. */
.help-trigger{
  display:inline-grid;
  place-items:center;
  flex:none;
  width:25px;height:25px;
  min-width:25px;
  padding:0;
  border:1px solid #657a91;
  border-radius:50%;
  background:#2b3643;
  color:#d9e5f4;
  font:700 13px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  cursor:pointer;
}
.help-trigger:hover,.help-trigger:focus-visible{
  outline:2px solid #a1bce8;
  outline-offset:2px;
  background:#394c60;
}
.cr-help-dialog{
  position:fixed;
  inset:0;
  margin:auto;
  width:min(440px,calc(100vw - 32px));
  max-width:calc(100vw - 32px);
  max-height:calc(100dvh - 32px);
  padding:0;
  color:#f3f5f7;
  background:#242e3a;
  border:1px solid #61738a;
  border-radius:15px;
  box-shadow:0 24px 72px #0008;
  overflow:auto;
}
.cr-help-dialog::backdrop{background:rgba(4,8,13,.72)}
.cr-help-content{padding:25px 25px 20px}
.cr-help-eyebrow{
  display:block;
  font-size:10px;
  font-weight:760;
  letter-spacing:1.2px;
  color:#b3c8e2;
  margin-bottom:9px;
}
.cr-help-dialog h2{font-size:20px;margin:0 0 10px;color:#f5f7fa}
.cr-help-dialog p{font-size:15px;line-height:1.58;color:#d2dce6;margin:0 0 20px;overflow-wrap:anywhere}
.cr-help-close{width:100%}
@media(max-width:650px){
  .formgrid{grid-template-columns:minmax(0,1fr)}
  .panel{padding:17px}
  .hero{padding:20px}
  .shell{padding:15px 12px 92px}
  .stats .card{padding:13px}
  .cr-sync-panel,.cr-bio-panel{padding:13px 15px}
  .cr-help-dialog{
    inset:auto 12px max(12px,env(safe-area-inset-bottom)) 12px;
    width:auto;
    max-width:none;
    max-height:min(72dvh,530px);
    margin:0;
    border-radius:16px;
  }
  .cr-help-content{padding:23px 20px 19px}
  .cr-help-dialog h2{font-size:20px}
  .cr-help-dialog p{font-size:15px}
  .field input[type=date]{-webkit-appearance: none;appearance:none}
}
@media print{
  :root{color-scheme:light}
  body{background:#fff!important;color:#111!important}
}
