/* Author room folios and account controls share the archive typography and palette. */
#fc-account-root {
  --folio-gold:#dfb982;
  --folio-rule:#6c4b3c;
  --folio-paper:#eee0c9;
}
#fc-account-root .fc-settings-card {
  padding:clamp(1rem,3vw,2rem);
  min-width:0;
  border:1px solid var(--folio-rule);
  border-radius:8px;
  background:linear-gradient(135deg,#271b18,#1b1614 80%);
}
#fc-account-root .fc-settings-card > h2 { margin:0 0 .7rem; color:var(--folio-paper); }
#fc-account-root .fc-settings-nav, #fc-account-root .fc-author-nav { gap:.45rem; }
#fc-account-root :is(.fc-settings-nav,.fc-author-nav) button { min-height:44px; padding:.5rem .85rem; border-radius:3px; }
#fc-account-root :is(.fc-settings-nav,.fc-author-nav) button[aria-pressed="true"] {
  background:#52282e;
  border-color:#b78961;
  color:#ffe8c1;
  box-shadow:inset 0 -2px #c7a36f;
}
#fc-account-root :is(.fc-settings-panel,.fc-author-room-body) :is(input,textarea,select,button,summary):focus-visible {
  outline:2px solid #f2ca8c;
  outline-offset:3px;
}
#fc-account-root .fc-settings-profile { gap:clamp(.8rem,2vw,1.5rem); }
#fc-account-root .fc-settings-showcase { padding:.75rem; margin-top:.6rem; border-radius:4px; min-width:0; }
#fc-account-root .fc-showcase-option {
  gap:.6rem;
  min-height:46px;
  border-color:#624736;
  color:#f5e5cc;
  padding:.55rem;
  overflow-wrap:anywhere;
}
#fc-account-root .fc-showcase-option:has(:checked) { border-color:#af8059; background:#492e23; }
#fc-account-root .fc-showcase-option input[type="checkbox"], .fc-member-dossier .fc-member-restrict input[type="checkbox"] {
  appearance:none;
  width:20px;
  height:20px;
  min-height:20px;
  flex:none;
  padding:0;
  display:inline-grid;
  place-items:center;
  border:1px solid #b29368;
  border-radius:4px;
  background:#211719;
  color:#221616;
}
:is(#fc-account-root .fc-showcase-option,.fc-member-dossier .fc-member-restrict) input[type="checkbox"]:checked {
  border-color:#f2cb8e;
  background:#e4bd82;
}
:is(#fc-account-root .fc-showcase-option,.fc-member-dossier .fc-member-restrict) input[type="checkbox"]:checked::after {
  content:"";
  width:5px;
  height:9px;
  transform:translateY(-1px) rotate(43deg);
  border:solid currentColor;
  border-width:0 2px 2px 0;
}
#fc-account-root .fc-settings-toggle { min-height:56px; cursor:pointer; }
#fc-account-root .fc-settings-toggle input[type="checkbox"] {
  appearance:none;
  display:flex;
  align-items:center;
  width:45px;
  min-width:45px;
  height:25px;
  min-height:25px;
  padding:3px;
  border:1px solid #a58b6c;
  border-radius:24px;
  background:#161113;
  transition:background .16s ease;
  cursor:pointer;
}
#fc-account-root .fc-settings-toggle input[type="checkbox"]::after {
  content:"";
  width:17px;
  height:17px;
  background:#c4a98a;
  border-radius:50%;
  transition:transform .16s ease;
}
#fc-account-root .fc-settings-toggle input[type="checkbox"]:checked { background:#d5a46b; border-color:#f6cf99; }
#fc-account-root .fc-settings-toggle input[type="checkbox"]:checked::after { background:#412322; transform:translateX(20px); }
#fc-account-root :is(.fc-settings-card,.fc-editor-work,.fc-editor-index,.fc-maintenance-form) :is(input:not([type="checkbox"]),select,textarea),
.fc-security-dialog :is(input,select) {
  box-sizing:border-box;
  width:100%;
  min-width:0;
  min-height:44px;
  padding:.6rem .75rem;
  border:1px solid #795c40;
  border-radius:4px;
  color:#f5e4ca;
  background:#191413;
  font:inherit;
  color-scheme:dark;
}
#fc-account-root :is(.fc-settings-card,.fc-editor-work,.fc-editor-index,.fc-maintenance-form) select,
.fc-security-dialog select {
  appearance:none;
  padding-right:2rem;
  background:#191413 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3.5 5 3.5 4 3.5-4' fill='none' stroke='%23dfb982' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right .65rem center;
}
#fc-account-root .fc-editor-masthead { margin-bottom:1.1rem; padding-bottom:.9rem; border-bottom:1px solid #684937; }
#fc-account-root .fc-editor-masthead > h2 { color:#f2d8ad; }
#fc-account-root .fc-editor-masthead > p { max-width:68ch; color:#ddc5a6; }
#fc-account-root .fc-editor-masthead > label { max-width:25rem; }
.fc-editor-layout { display:grid; grid-template-columns:minmax(13rem,.82fr) minmax(0,2fr); align-items:start; gap:clamp(.65rem,1.8vw,1.2rem); }
.fc-editor-layout[hidden] { display:none; }
.fc-editor-index,.fc-editor-work {
  min-width:0;
  padding:clamp(.8rem,2.6vw,1.5rem);
  border:1px solid #71513b;
  border-radius:8px;
  background:linear-gradient(150deg,#211719,#181312 80%);
}
.fc-editor-index { background:linear-gradient(160deg,#30201f,#1b1415 85%); }
.fc-editor-index-tools,.fc-editor-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.7rem; margin:0 0 .6rem; }
.fc-editor-heading > :is(h2,h3,p),.fc-editor-index-tools h3 { margin:0; }
.fc-editor-list { display:grid; gap:.35rem; max-height: min(65vh,42rem); overflow:auto; padding:.15rem .25rem .3rem .15rem; margin:.65rem 0; overscroll-behavior:contain; }
#fc-account-root .fc-editor-file {
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:start;
  gap:.7rem;
  padding:.65rem;
  text-align:left;
  border:1px solid #664b3b;
  border-radius:4px;
  background:#211817;
  white-space:normal;
  overflow-wrap:anywhere;
}
.fc-editor-file strong { color:#efdfc4; font-weight:600; }
.fc-editor-file small { flex:0 0 auto; max-width:48%; text-align:right; color:#dbb88c; }
#fc-account-root .fc-editor-file[aria-pressed="true"] { background:#4b272c; border-color:#c29768; }
.fc-editor-field,.fc-security-field { display:grid!important; gap:.3rem; margin:.7rem 0; font-size:.94rem; }
.fc-editor-field > span,.fc-security-field > span:first-child { color:#edcfaa; font-weight:550; }
.fc-editor-status { color:#f0c991; min-height:1.25rem; overflow-wrap:anywhere; }
.fc-editor-actions { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem .65rem; margin:.8rem 0; }
.fc-editor-actions > .fc-editor-field { flex:1 1 12rem; }
.fc-editor-actions > :is(button,a),.fc-member-row button { min-height:44px; }
.fc-editor-actions a { display:inline-grid; place-items:center; }
.fc-editor-history { margin-top:1rem; border-top:1px solid #7b5740; padding-top:.65rem; }
.fc-editor-history summary { cursor:pointer; color:#edc992; padding:.45rem 0; }
.fc-editor-history div,.fc-security-row {
  display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center;
  gap:.5rem; padding:.6rem 0; border-top:1px solid #694a38;
}
.fc-editor-preview:empty,.fc-editor-image:empty { display:none; }
.fc-editor-preview { border:1px dashed #b38861; border-radius:4px; padding:.85rem; margin-top:1rem; }
.fc-editor-preview article { padding:.95rem; }
.fc-editor-text,.fc-content-entry p,.fc-content-details dd,[data-cms-copy].fc-content-text-colored { white-space:pre-wrap; overflow-wrap:anywhere; }
.fc-content-entry img { display:block; width:100%; height:auto; max-height:19rem; object-fit:contain; margin-bottom:.75rem; }
.fc-editor-media,.fc-editor-colors,.fc-editor-relations { display:grid; gap:.65rem; }
.fc-editor-media,.fc-editor-relations:not(:empty) { background:#211716; border:1px solid #694937; border-radius:4px; padding:.75rem; }
.fc-editor-image img { max-width:100%; max-height:13rem; object-fit:contain; }
.fc-editor-colors { grid-template-columns:repeat(2,minmax(0,1fr)); }
#fc-account-root .fc-editor-colors input[type="color"] { min-height:40px; padding:.2rem; }
.fc-editor-relation { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) auto; align-items:end; gap:.55rem; }
.fc-editor-dialog,.fc-security-dialog,.fc-member-dossier {
  box-sizing:border-box;
  width:min(44rem,calc(100% - 1.3rem));
  max-height:calc(100dvh - 1.7rem);
  overflow:auto;
  padding:clamp(1rem,4vw,2rem);
  background:#251817;
  color:#f3e2c7;
  border:1px solid #b08761;
  border-radius:8px;
}
.fc-editor-dialog h2,.fc-member-dossier h2,.fc-security-dialog h2 { color:#f3cc98; }
.fc-editor-dialog::backdrop,.fc-member-dossier::backdrop,.fc-security-dialog::backdrop { background:#100a0be8; }
.fc-security-layout { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:1rem; }
.fc-password-field { display:flex; align-items:stretch; }
.fc-password-field button { flex:none; }
.fc-security-row small,.fc-security-row time { display:block; color:#dcc2a2; }
.fc-security-row :is(span,strong) { overflow-wrap:anywhere; }
.fc-mfa-qr { background:#fff; padding:.65rem; }
.fc-mfa-secret { display:block; padding:.55rem; background:#180e0c; overflow-wrap:anywhere; }
.fc-member-list { display:grid; gap:.45rem; margin:1rem 0; }
.fc-member-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(6rem,.42fr) auto;
  gap:.6rem;
  align-items:center;
  padding:.75rem;
  background:linear-gradient(110deg,#32201d,#201516);
  border:1px solid #77543b;
  border-radius:4px;
}
.fc-member-row h3 { margin:.1rem 0; overflow-wrap:anywhere; }
.fc-member-row small,.fc-member-feedback small { display:block; color:#d7bda0; }
.fc-member-flag { color:#f3ce99; font-size:.9rem; }
.fc-member-flag[data-state="restricted"] { color:#ffad9e; }
.fc-member-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; }
.fc-member-metrics > div { border:1px solid #795c40; padding:.55rem .7rem; }
.fc-member-metrics dt { color:#d5b491; font-size:.88rem; }
.fc-member-metrics dd { margin:0; font-weight:700; color:#f8e4bb; }
.fc-member-dossier progress { width:100%; accent-color:#c2996e; }
.fc-member-feedback { padding-left:1.3rem; }
.fc-member-restrict { display:flex; flex-wrap:wrap; gap:.6rem; align-items:center; }
.fc-member-restrict label { display:flex; align-items:center; gap:.5rem; }
.fc-library-summary { color:#dfcebb; overflow-wrap:anywhere; }
.fc-content-title-colored :is(h1,h2,.library-book-name,.catalog-card-label strong) { color:var(--fc-entry-title, revert-layer); }
.fc-content-text-colored :is(.fc-encyclopedia-copy,.fc-content-details dd,.term-copy p,.catalog-field p,.fc-library-summary) { color:var(--fc-entry-text, revert-layer); }
[data-cms-copy].fc-content-text-colored { color:var(--fc-entry-text, revert-layer); }
.fc-content-details { display:grid; gap:.25rem .75rem; grid-template-columns:max-content minmax(0,1fr); }
.fc-content-details dt { color:#dcad79; }
.fc-content-details dd { margin:0 0 .35rem; }
.fc-character-bonds a { color:#fad5a3; text-decoration:underline; }
.fc-reader-privacy { color:inherit; font-size:.9rem; margin:.45rem 0; }
.fc-feedback-group-panel {
  min-width:0;
  padding:.7rem;
  margin:.3rem 0;
  border:1px solid #775640;
  border-left:3px solid #a57b53;
  border-radius:4px;
  background:#251a18;
}
#fc-account-root .fc-archive-stats > div,
#fc-account-root .fc-dashboard-kpi {
  color:#efe0ca;
  background:linear-gradient(145deg,#392722,#201715);
  border-color:#79543e;
}
#fc-account-root :is(.fc-archive-stats,.fc-dashboard-kpis) dt { color:#e8cb9f; }
#fc-account-root :is(.fc-archive-stats,.fc-dashboard-kpis) dd { color:#fff0cc; }
@media(max-width:850px){
  .fc-editor-layout,.fc-security-layout { grid-template-columns:minmax(0,1fr); }
  .fc-editor-list { max-height:16rem; }
}
@media(max-width:500px){
  .fc-member-row { grid-template-columns:minmax(0,1fr) minmax(5rem,.6fr); }
  .fc-member-row button { grid-column:1 / -1; }
  .fc-editor-relation { grid-template-columns:minmax(0,1fr); }
}
@media(prefers-reduced-motion:reduce){#fc-account-root .fc-settings-toggle input, #fc-account-root .fc-settings-toggle input::after{transition:none}}

:is(h1,h2)[data-cms-copy].fc-content-title-colored {color:var(--fc-entry-title);white-space:pre-wrap;}

.fc-security-stack {display:grid;gap:.8rem;min-width:0;align-content:start;}
.fc-security-layout {gap:.85rem;}
