.profile-rails {
  display:contents;--drawer-duration:340ms;--drawer-ease:cubic-bezier(.25,.7,.25,1);
  --backdrop-duration:420ms;
}
.profile-backdrop {display:none}
body > .profile-rails > .profile-backdrop {
  display:block;position:fixed;inset:0;z-index:120;
  pointer-events:none;visibility:hidden;background:transparent;backdrop-filter:blur(0px);
  transition:background-color var(--backdrop-duration) ease-in-out,
    backdrop-filter var(--backdrop-duration) ease-in-out,visibility 0s linear var(--backdrop-duration);
}
body > .profile-rails[data-open=true] > .profile-backdrop {
  pointer-events:auto;visibility:visible;transition-delay:0s;
  background:rgb(17 13 10 / 43%);
  backdrop-filter:blur(7px);
}
body > .profile-rails[data-layered] > :is(.hero-sheet,.friends-drawer,.empty-character-sheet) {z-index:121}
html[data-ui=v3] body:has(> .profile-rails[data-layered]) #copilot-dock {z-index:122}
html:has(.profile-rails[data-open=true]) {overflow:hidden}
.empty-character-sheet {
  display:block;position:fixed;right:0;top:calc(var(--nav-height) + var(--command-height) + 12px);
  width:clamp(275px,28vw,420px);padding:18px;border:1px solid #927547;border-radius:7px 0 0 7px;
  color:#f6eace;background:#2d261f;
}
.empty-character-sheet header {display:flex;align-items:center;justify-content:space-between}
.empty-character-sheet h2,.empty-character-sheet p {margin:0}
.empty-character-sheet p {margin-top:12px;color:#cebea3}
.empty-character-sheet button {cursor:pointer;background:transparent;border:0;color:inherit}
.hero-sheet,.friends-drawer {
  --sheet-top:calc(var(--nav-height) + var(--sheet-dock-height,var(--command-height)) + 12px);
  --sheet-width:clamp(340px,28vw,420px);
  position:fixed;z-index:77;top:var(--sheet-top);right:0;width:0;height:0;
  color:#f6eace;font:14px/1.45 var(--sans,'Segoe UI',sans-serif);
}
.hero-sheet[data-open=false][data-rail=false] {display:none}
.hero-sheet[data-discover=true] .sheet-tab-hero::after {
  --sheet-rim:inset 0 0 7px #ffd170b3,0 0 0 2px #ffe5a0;
  content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;
  box-shadow:var(--sheet-rim),
    -2px 0 12px 4px #ffba46e6,-7px 0 30px 9px #ff981b99,-15px 0 54px 13px #ee760052;
}
@media (prefers-reduced-motion:no-preference) {
  .hero-sheet[data-discover=true] .sheet-tab-hero::after {animation:sheet-welcome 3s ease-in-out 2}
  @keyframes sheet-welcome {
    20% {box-shadow:var(--sheet-rim),
      -1px 0 5px 1px #ffba4680,-3px 0 12px 3px #ff981b45,-5px 0 24px 5px #ee760024}
    65% {box-shadow:var(--sheet-rim),
      -4px 0 17px 5px #ffd076f2,-11px 0 41px 13px #ffac35bd,-21px 0 70px 18px #f7821678}
  }
}
.sheet-tabs {
  position:absolute;top:12px;right:0;display:grid;justify-items:end;gap:3px;
  transition:transform var(--drawer-duration) var(--drawer-ease);z-index:1;
}
.sheet-tab {
  position:relative;width:44px;height:38px;display:grid;place-items:center;
  padding:4px 6px 4px 5px;background:linear-gradient(120deg,#493b28,#241c16 75%);
  border:1px solid #a27e48;border-right:0;border-radius:8px 0 0 8px;color:#cfb581;
  box-shadow:0 5px 16px #05030080,inset 0 1px #f5d9a326;
  transition:width .18s,transform .25s,border-color .18s;
}
.sheet-tab-hero {width:61px;height:57px;border-radius:29px 0 0 26px;margin-bottom:3px}
.friends-drawer {left:0;right:auto;--sheet-width:clamp(275px,23vw,340px);--panel-offscreen:calc(-100% - 40px)}
.friends-tabs.sheet-tabs {left:0;right:auto;justify-items:start}
.friends-drawer[data-open=true] .friends-tabs {transform:translateX(var(--sheet-width))}
.friends-tabs .friend-tab {
  width:50px;height:47px;cursor:pointer;border:1px solid #94805b;border-left:none;border-radius:0 12px 12px 0;
  background:linear-gradient(100deg,#232c29,#35423a);color:#e6d4a8;
}
.friends-tabs .friend-tab:is(:hover,:focus-visible) {width:57px;border-color:#edce8f}
.friends-tabs .friend-tab[aria-expanded=true] {background:linear-gradient(100deg,#304135,#48553e)}
.friends-tabs [data-friend-tab=roster] {height:51px;gap:1px;align-content:center;font:600 10px var(--sans)}
.friends-tabs .friend-tab img {width:33px;height:33px;object-fit:cover;border:1px solid #c5a467;border-radius:50%}
.friends-tabs .sheet-tab-label {left:calc(100% + 5px);right:auto}
.friends-drawer .friends-panel {
  left:0;right:auto;border:1px solid #927547;border-left:0;border-radius:0 7px 7px 0;
  box-shadow:inset -3px 0 0 #59453285,10px 10px 30px #08060462;
}
.friends-preview {display:grid;gap:9px}
.friends-preview>p,.friend-row small,.friend-item small {font:12px/1.45 var(--sans);color:#c8bba5}
.friends-preview>p {margin:0 0 5px}
.friend-row,.friend-item,.friend-skill,.friend-recipe {display:flex;align-items:center;gap:12px}
.friend-row {width:100%;text-align:left;padding:10px;border-radius:5px;border:1px solid #816a476b;background:linear-gradient(110deg,#3a3024,#25211c);color:#ffe7bd}
.friend-row:hover,.friend-row:focus-visible {border-color:#d5b676;background:#413426}
.friend-row strong {display:block;font:600 22px/1.15 var(--study-font,Georgia);margin:0}
.friend-row small,.friend-item small {display:block}
.friend-row>.icon {margin-left:auto;width:14px}
.friend-portrait {width:47px;height:52px;object-fit:cover;object-position:center 25%;border:1px solid #967a52;border-radius:4px}
.friends-panel header:has(.friend-portrait) {align-items:center;justify-content:start;gap:13px;background:linear-gradient(105deg,#3c4635aa,transparent)}
.friends-panel header .friend-portrait {width:70px;height:80px;border-radius:12px 3px;box-shadow:0 2px 9px #0006}
.friends-panel header button {margin-left:auto;align-self:flex-start}
.friends-drawer button {cursor:pointer}
.friend-back,.friend-mention,.friend-unpin {width:max-content;padding:5px 0;background:none;border:0;color:#e9ca91}
.friend-back {margin-bottom:9px}
.friend-unpin {margin-top:5px;color:#b9ada0;font-size:12px}
.friend-mention {margin:3px 0;padding:7px 11px;border:1px solid #91749c;background:#382d3b;color:#f2e0fc;border-radius:4px}
.friend-group {border-top:1px solid #8d714650;padding-top:9px}
.friend-group h3 {font:600 16px var(--study-font,Georgia);margin:0 0 5px;color:#ebce97}
.friend-item,.friend-skill,.friend-recipe {padding:5px 0;font:13px/1.4 var(--sans);color:#f2e7d6}
.friend-item img {width:32px;height:32px;border:1px solid #a78b63;border-radius:3px}
.friend-skill {justify-content:space-between}.friend-skill span {color:#c7bea9}
.friend-recipe .icon {width:14px;color:#baa77c}
.friend-options:not([hidden]) {display:grid;margin:4px 0 7px;padding:5px 8px;background:#231e19;border:1px solid #8b734d;border-radius:4px}
.friend-options>small {padding:2px 6px;color:#d7c19b;font:12px var(--sans)}
.friend-options button {display:flex;align-items:center;gap:8px;padding:3px 6px;background:none;border:0;color:#f2e5c9;text-align:left}
.friend-options button[aria-selected=true],.friend-options button:hover {background:#4b3b2b}
.friend-options .friend-portrait {width:25px;height:26px}
.friend-options button small {margin-left:auto;color:#c7b8a1}
.sheet-tab[aria-expanded=true] {border-color:#e3c184;background:linear-gradient(90deg,#665033,#34291d);color:#fff0ca}
.sheet-tab:hover,.sheet-tab:focus-visible {width:51px;border-color:#f7d78e;color:#ffebbb}
.sheet-tab-hero:hover,.sheet-tab-hero:focus-visible {width:66px}
.sheet-tabs .sheet-tab>.icon {width:20px;height:20px}
.sheet-tab-label {position:absolute;right:calc(100% + 5px);top:50%;transform:translateY(-50%);opacity:0;pointer-events:none;
  padding:4px 8px;background:#211b17;color:#f4dfb6;box-shadow:0 2px 8px #0805038a;border:1px solid #8e7249;border-radius:4px;white-space:nowrap;font:12px var(--sans,sans-serif)}
.sheet-tab:is(:hover,:focus-visible) .sheet-tab-label {opacity:1}
.sheet-tab .hero-portrait {width:45px;height:45px;overflow:visible;border-radius:50%}
.sheet-tab img {width:100%;height:100%;border-radius:50%;object-fit:cover;object-position:center 27%;border:1px solid #c79b5e}
.sheet-tab .portrait-level {right:-4px;bottom:-3px;font-size:10px}
.hero-sheet[data-open=true] .sheet-tabs {transform:translateX(calc(-1 * var(--sheet-width)))}
.sheet-panel {
  position:absolute;right:0;top:0;width:var(--sheet-width);display:flex;flex-direction:column;
  max-height:calc(100dvh - var(--sheet-top) - 10px);overflow:hidden;
  background:linear-gradient(150deg,#342a20ee,#1c1916f5 55%),url('/assets/images/walnut.svg') #231c16;
  border:1px solid #927547;border-right:none;border-radius:7px 0 0 7px;
  box-shadow:inset 3px 0 0 #59453285,-10px 10px 30px #08050262;
}
.sheet-panel,.empty-character-sheet {
  transform:translateX(var(--panel-offscreen,calc(100% + 40px)));visibility:hidden;
  transition:transform var(--drawer-duration) var(--drawer-ease),visibility 0s linear var(--drawer-duration);
}
:is(.hero-sheet,.friends-drawer)[data-open=true] .sheet-panel,.profile-rails[data-open=true] .empty-character-sheet {
  transform:translateX(0);visibility:visible;transition-delay:0s;
}
.sheet-panel header {padding:15px 18px 13px;border-bottom:1px solid #a48c5b56;display:flex;align-items:start;justify-content:space-between}
.sheet-panel header h2 {font:normal 28px/1.1 var(--study-font);letter-spacing:-.02em;color:#ffe5b3}
.sheet-panel header p {margin-top:4px;color:#cebea3;font-size:12px}
.sheet-panel header button,.sheet-chip button {display:grid;place-items:center;color:inherit;border:0;background:transparent}
.sheet-panel header button {width:30px;height:30px;border:1px solid #9c825e66;border-radius:3px}
.sheet-panel header button:hover {background:#a7865933}
.sheet-scroll {min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-color:#776144 #211a15;scrollbar-width:thin;padding:14px}
.sheet-paperdoll {--cell:clamp(30px,4.5vh,41px);display:grid;grid-template-columns:var(--cell) minmax(0,1fr) var(--cell);gap:9px}
.sheet-rail {display:grid;grid-template-rows:repeat(8,var(--cell));gap:5px}
.sheet-slot {position:relative;display:block;width:var(--cell);height:var(--cell);border:1px solid #8b8067;background:#171511;border-radius:4px}
.sheet-slot[data-quality="2"] {border-color:#84aa65}
.sheet-slot[data-quality="3"] {border-color:#679bd3}
.sheet-slot[data-quality="4"] {border-color:#ad78da}
.sheet-slot[data-quality="5"] {border-color:#cf924c}
.sheet-slot .sheet-inspect {display:block;padding:1px;width:100%;height:100%;background:transparent;border:0;border-radius:4px}
.sheet-slot img {display:block;width:100%;height:100%;border-radius:3px;object-fit:cover}
.sheet-slot.vacant {border-style:dashed;border-color:#75634a7a}
.sheet-slot.vacant img {opacity:.16;filter:grayscale(1)}
.sheet-inspect[aria-pressed=true] {outline:2px solid #efcd8d;outline-offset:1px}
.sheet-slot[data-sheet-entry]:is(:hover,:focus-within) {
  z-index:2;border-color:#dcc6ff;
  box-shadow:0 0 0 1px #bda1f5,0 0 8px 3px #ad86f6b5,0 0 18px 4px #8569d36b;
}
.sheet-slot[data-sheet-entry]:is(:hover,:focus-within)::after {
  content:"";position:absolute;inset:1px;border-radius:3px;pointer-events:none;
  background:linear-gradient(120deg,transparent 24%,#c6a6fc70 45%,#e8e4fd9c 49%,transparent 67%);
  background-size:300% 100%;animation:sheet-enchant 1.35s ease-out both;
}
@keyframes sheet-enchant {from{background-position:100% 0}to{background-position:0 0}}
.sheet-slot .sheet-add {z-index:1}
.sheet-add {
  position:absolute;top:-5px;right:-5px;display:grid;place-items:center;width:21px;height:21px;
  padding:0;border-radius:50%;border:1px solid #dccaf6;background:#493e61;color:#fcf4ff;
  box-shadow:0 2px 4px #120c18;opacity:0;transition:opacity .12s,transform .12s;transform:scale(.83);
}
.sheet-slot:is(:hover,:focus-within) .sheet-add,.sheet-stat:is(:hover,:focus-within) .sheet-add,
.sheet-add[aria-disabled=true] {opacity:1;transform:none}
.sheet-add[aria-disabled=true] {background:#344638;border-color:#a1b38d;color:#e4eed3}
.sheet-add:hover {background:#685587}
.sheet-add .icon {width:13px;height:13px}
.sheet-figure {position:relative;isolation:isolate;overflow:hidden;border:1px solid #8c754b66;border-radius:24% 24% 3px 3px;background:#211910}
.sheet-figure>img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 36%}
.sheet-figure:has(.sheet-game-render) {background:radial-gradient(ellipse at 50% 47%,#5a4831,#2c241a 62%,#1b1713)}
.sheet-figure>.sheet-game-render {position:absolute;inset:12px 4px 46px;width:calc(100% - 8px);height:calc(100% - 58px);object-fit:contain;object-position:center}
.sheet-figure::after {content:'';position:absolute;inset:0;z-index:0;pointer-events:none;box-shadow:inset 0 0 22px #130f0bad;background:linear-gradient(0deg,#120f0e 0%,transparent 34%)}
.sheet-weapons {position:absolute;z-index:1;inset:auto 0 9px;display:flex;justify-content:center;gap:7px}
.sheet-detail {margin:12px 0 0;padding:12px 13px 9px;background:#171511;border:1px solid #8a754952;border-radius:4px}
.sheet-detail:empty {display:none}
.sheet-item-heading {display:flex;align-items:center;gap:9px;margin-bottom:8px}
.sheet-item-heading .sheet-item-icon {width:24px;height:24px;border:1px solid #967b55;border-radius:3px}
.sheet-item-heading h3,.sheet-stats h3 {margin:0;color:#f0d9a8;font:normal 18px/1.15 var(--study-font)}
.sheet-detail dl,.sheet-answer dl {margin:0;font-size:12px}
.sheet-detail dl div,.sheet-answer dl div {display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:3px 0}
.sheet-detail dt,.sheet-detail small {color:#bfb09a}
.sheet-detail dd,.sheet-answer dd {margin:0;text-align:right}
.sheet-detail small {display:block;margin-top:7px;font-size:10px}
.sheet-stats {margin-top:15px}
.sheet-stats h3 {margin:0 0 6px}
.sheet-stat {position:relative;display:flex;border-top:1px solid #a78a5538}
.sheet-stat>button:first-child {display:flex;align-items:center;gap:8px;width:100%;background:none;color:#f1e5cd;border:0;padding:7px 29px 7px 1px;text-align:left}
.sheet-stat small {margin-left:auto;color:#cebf9e}
.sheet-stat .sheet-add {top:6px;right:0}
.sheet-stat:hover,.sheet-stat:focus-within {background:linear-gradient(90deg,#9476d52e,transparent);box-shadow:inset 2px 0 #b59ae7}
.sheet-record[hidden],.sheet-bag-group[hidden],.sheet-no-match[hidden] {display:none}
.sheet-bag-group + .sheet-bag-group {margin-top:15px}
.sheet-bag-group h3 {font:normal 17px var(--study-font);color:#e4cc9c;margin:0 0 5px}
.sheet-bag-group h3 small,.sheet-source-note {color:#b9aa93;font:11px var(--sans,sans-serif)}
.sheet-source-note {display:block;margin-top:12px}
.sheet-search {display:flex;gap:6px;align-items:center;color:#bdac8e;margin-bottom:12px;padding:3px 8px;border:1px solid #8b745357;border-radius:4px;background:#161412}
.sheet-search input {min-width:0;width:100%;border:0;background:transparent;color:inherit;padding:4px}
.sheet-collection .sheet-stat>button:first-child {min-height:36px;min-width:0}
.sheet-stat>button:first-child>span {overflow-wrap:anywhere}
.sheet-stat small {flex:none}
.sheet-bag-group .sheet-note,.sheet-no-match {font-size:12px;color:#cab99f}
.sheet-record .sheet-detail {margin:0 0 8px}
.sheet-note {color:#cfc0aa;padding-top:7px}
html[data-ui=v3][data-study] #copilot-dock:has(.sheet-command-inner) {height:auto}
html[data-ui=v3][data-study] .workspace {padding-top:calc(var(--nav-height) + var(--sheet-dock-height,var(--command-height)))}
html[data-study] .sheet-command-inner {
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:var(--command-height) auto;
  row-gap:0;height:auto;align-items:center;
}
html[data-study] .sheet-command-inner:has(>.command-context) {grid-template-columns:auto minmax(0,1fr) auto auto}
.sheet-dock-attachments {
  grid-column:2/-1;grid-row:2;min-width:0;max-width:min(100%,800px);
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:5px 8px;
  overflow-x:hidden;overflow-y:auto;max-height:min(124px,18vh);padding:3px 4px 8px;scrollbar-width:thin;
}
.sheet-dock-attachments .sheet-chip {width:100%;max-width:100%;box-sizing:border-box}
.sheet-dock-attachments .sheet-chip button {margin-left:auto}
.sheet-command-inner .sheet-preview {max-width:min(32%,240px);flex-shrink:0}
.sheet-command-inner:has(.sheet-just-added) .candle-avatar {animation:sheet-received .7s ease-out}
.sheet-just-added {animation:sheet-received .85s ease-out}
@keyframes sheet-received {
  0%,18% {background-color:#6d5887;box-shadow:0 0 0 1px #f0e2ff,0 0 12px #bd8cf5bf;filter:brightness(1.3)}
  100% {box-shadow:0 0 0 transparent;filter:brightness(1)}
}
html[data-study] #conversation-composer .context-attachments {flex-wrap:wrap;max-height:18vh;overflow-y:auto;overflow-x:hidden}
.sheet-chip {display:inline-flex;align-items:center;gap:5px;padding:5px 6px;font:12px/1.35 var(--sans,'Segoe UI',sans-serif);
  border:1px solid #a69bbb80;border-radius:4px;background:#302b3f;color:#f3ebff;flex:none;max-width:195px}
.sheet-chip>span {white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sheet-chip button {height:20px;width:20px;flex:none;cursor:pointer}
.sheet-chip .icon,.sheet-chip .sheet-item-icon,.context-attachment .sheet-item-icon,.command-facts .sheet-item-icon {width:17px;height:17px;object-fit:cover;border-radius:2px;vertical-align:middle}
.sheet-chip button .icon {width:12px;height:12px}
.sheet-preview {opacity:.78;border-style:dashed}
.sheet-preview[hidden] {display:none}
.sheet-answer {margin:9px 0;padding:10px 13px;border:1px solid #998d7366;border-radius:4px}
/* Inventory and journal pages in the character drawer. */
.sheet-atlases {position:absolute;pointer-events:none}
.sheet-sprite {display:inline-block;flex:none;overflow:hidden}
.sheet-collection .sheet-bag-group h3 {display:flex;align-items:center;gap:7px;margin:14px 0 7px;font:600 13px/1.25 var(--sans,sans-serif);color:#f0d296}
.sheet-bag-group h3::after {content:'';height:1px;flex:1;background:linear-gradient(90deg,#8e734e70,transparent)}
.sheet-bag-group h3 small {font-variant-numeric:tabular-nums}
.sheet-slot .sheet-sprite,.sheet-slot .sheet-missing-art {display:grid;width:100%;height:100%;border-radius:3px}
.sheet-missing-art {display:inline-grid;place-items:center;background:linear-gradient(140deg,#363028,#211c17);color:#baa789}
.sheet-missing-art .icon {width:55%;height:55%;opacity:.72}
.sheet-pack-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(35px,1fr));gap:4px;max-width:100%}
.sheet-pack-cell {min-width:0}
.sheet-pack-grid .sheet-stat {position:relative;aspect-ratio:1;border:1px solid #80776b;border-radius:4px;background:#191511;box-shadow:0 2px 4px #120e0b80}
.sheet-pack-grid [data-quality="0"] {border-color:#716e69}
.sheet-pack-grid [data-quality="2"] {border-color:#7ca557}
.sheet-pack-grid [data-quality="3"] {border-color:#5b9cd9}
.sheet-pack-grid [data-quality="4"] {border-color:#b484df}
.sheet-pack-grid [data-quality="5"] {border-color:#d59143}
.sheet-pack-grid .sheet-stat>button:first-child {position:relative;display:block;padding:2px;min-height:0;height:100%;border-radius:3px;color:white}
.sheet-pack-grid .sheet-item-icon {display:block;width:100%;height:100%;object-fit:cover;border-radius:2px}
.sheet-pack-grid b {position:absolute;bottom:1px;right:2px;padding:1px 2px 0;border-radius:2px;background:#100c0b99;color:#fff7e5;font:bold 12px/1.1 var(--sans,sans-serif);text-shadow:0 1px 2px black}
.sheet-pack-grid .sheet-add {top:-3px;right:-3px;width:18px;height:18px;z-index:2}
.sheet-pack-grid [data-inspect-entry][aria-pressed=true] {outline:2px solid #ffdf94;outline-offset:1px}
.sheet-pack-grid .sheet-stat:has([aria-pressed=true]) {box-shadow:0 0 8px #e2ad4866}
.sheet-pack-grid [data-inspect-entry]:hover .sheet-item-icon {filter:brightness(1.18)}
.sheet-pack-grid [data-inspect-entry]:focus-visible {box-shadow:inset 0 0 0 2px #fff;z-index:1}
.sheet-pack-inspector {flex:none;box-sizing:border-box;max-height:min(32vh,235px);overflow:auto;overscroll-behavior:contain;
  padding:12px 15px;background:linear-gradient(110deg,#3a2e20,#272019);border-top:1px solid #a78952;
  box-shadow:0 -4px 12px #100c0840;scrollbar-width:thin}
.sheet-reference {font:11px/1.3 var(--sans,sans-serif);color:#d5bc91;white-space:nowrap}
.sheet-pack-heading {display:grid;grid-template-columns:40px minmax(0,1fr) 24px;align-items:center;gap:10px}
.sheet-pack-heading button {align-self:start;display:grid;place-items:center;width:24px;height:24px;background:transparent;border:0;color:#d7bc8a}
.sheet-pack-heading button:hover {color:#ffedcc}
.sheet-pack-inspector dl {display:grid;gap:4px;margin:8px 0 0;font:12px/1.4 var(--sans,sans-serif)}
.sheet-pack-inspector dl div {display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.sheet-pack-inspector dt {color:#bda98b}
.sheet-pack-inspector dd {margin:0;text-align:right;color:#f0dfc0;overflow-wrap:anywhere}
.sheet-pack-inspector>.sheet-reference {display:inline-block;margin-top:7px}
.sheet-pack-inspector[hidden] {display:none}
.sheet-pack-inspector .sheet-item-icon {width:40px;height:40px;border-radius:3px;border:1px solid #ae8b54}
.sheet-pack-inspector strong,.sheet-reading-copy>strong {color:#f7e6bf;font:600 15px/1.2 var(--study-font)}
.sheet-pack-inspector small {display:block;font-size:11px;color:#d9c7a6}
.sheet-capacity {display:flex;align-items:center;gap:6px;border-top:1px solid #9b79434a;margin-top:13px;padding-top:10px;font-size:12px;color:#cdbda0}
.sheet-capacity strong {margin-left:auto;color:#eedbb6}
.sheet-capacity .icon {width:16px;height:16px}
.sheet-reading {--track-color:#b38847;isolation:isolate}
.sheet-reading>button:first-child {cursor:pointer}
.sheet-reading-copy {display:grid;flex:1;min-width:0;gap:5px}
.sheet-reading-copy>.sheet-description {font-size:12px;line-height:1.4;color:#d7c7ae}
.sheet-wallet {border:1px solid #8b704d70;border-radius:5px;margin-bottom:8px;background:linear-gradient(105deg,#3d3021,#27211c 70%);box-shadow:inset 0 1px #ddbe8021}
.sheet-wallet>button:first-child,.sheet-profession>button:first-child {align-items:center;gap:12px;padding:12px 29px 12px 11px}
.sheet-wallet .sheet-item-icon,.sheet-profession .sheet-item-icon {flex:none;width:41px;height:41px;border:1px solid #b2925f;border-radius:5px;box-shadow:0 2px 5px #130d07}
.sheet-reading .sheet-add {right:5px;top:6px}
.sheet-balance {display:flex;align-items:center;flex-wrap:wrap;gap:9px;font:600 18px/1.1 var(--study-font);font-variant-numeric:tabular-nums;color:#ffe3a9}
.sheet-coin {display:inline-flex;align-items:center;gap:4px}
.sheet-coin i {display:inline-block;width:10px;height:10px;border-radius:50%;border:1px solid #c29843;background:radial-gradient(at 32% 25%,#fff1a5,#c08b29 70%,#6e4a1e);box-shadow:0 0 0 1px #241a10}
.sheet-coin.coin-1 i {filter:grayscale(1)}
.sheet-coin.coin-2 i {filter:sepia(.45) hue-rotate(338deg) brightness(.76)}
.sheet-standing>button:first-child,.sheet-proficiency>button:first-child {padding:9px 31px 9px 2px}
.sheet-readout {display:flex;align-items:baseline;justify-content:space-between;gap:4px;font:11px/1.2 var(--sans,sans-serif);color:#cebaa0}
.sheet-readout b {font-weight:500;color:#f5e4c9;font-variant-numeric:tabular-nums}
.sheet-meter {appearance:none;border:0;width:100%;display:block;overflow:hidden;height:6px;border-radius:2px;background:#151410;box-shadow:inset 0 0 0 1px #ac926638}
.sheet-meter::-webkit-progress-bar {background:#151410}
.sheet-meter::-webkit-progress-value {background:linear-gradient(0deg,color-mix(in srgb,var(--track-color),#171511 35%),var(--track-color))}
.sheet-meter::-moz-progress-bar {background:var(--track-color)}
.sheet-standing:is([data-standing="5"],[data-standing="6"],[data-standing="7"],[data-standing="8"]) {--track-color:#81a467}
.sheet-standing:is([data-standing="1"],[data-standing="2"],[data-standing="3"]) {--track-color:#b66e51}
.sheet-profession {overflow:visible;border:1px solid #89734775;border-radius:5px;background:#30271f;margin-bottom:6px}
.sheet-profession::before {content:'';position:absolute;inset:0;z-index:-1;border-radius:4px;background:linear-gradient(90deg,#211b17 8%,#211b17e0 45%,#211b17a1),var(--profession-scene,linear-gradient(135deg,#44372a,#28251f)) center right / cover no-repeat;pointer-events:none}
.sheet-profession:is([data-skill="164"],[data-skill="186"],[data-skill="202"]) {--profession-scene:url('/assets/images/idea-forge-v3.png')}
.sheet-profession[data-skill="356"] {--profession-scene:url('/assets/images/idea-river-v3.png')}
.sheet-profession[data-skill="129"] {--profession-scene:url('/assets/images/first-aid.jpg')}
.sheet-profession[data-skill="185"] {--profession-scene:url('/assets/images/evening-food.jpg')}
.sheet-profession .sheet-reading-copy {grid-template-columns:1fr auto;align-items:baseline}
.sheet-profession .sheet-meter {grid-column:1/-1}
.sheet-proficiency {--track-color:#759ab2}
.sheet-proficiency .sheet-reading-copy {grid-template-columns:1fr auto;align-items:baseline}
.sheet-proficiency .sheet-meter {grid-column:1/-1;height:4px}
.sheet-readout em {font-style:normal;color:#aace88}
.sheet-wallet:focus-within,.sheet-profession:focus-within {outline:1px solid #c6a5df}

@media (max-height:680px) {
  .sheet-tabs {gap:2px;top:4px}
  .sheet-tab:not(.sheet-tab-hero) {height:30px}
}
@media (prefers-reduced-motion:reduce) {
  .profile-rails {--drawer-duration:0s;--backdrop-duration:0s}
  .sheet-panel,.sheet-tabs,.sheet-tab,.sheet-add {transition:none}
  .sheet-slot[data-sheet-entry]:is(:hover,:focus-within)::after {animation:none;background:none}
  .sheet-command-inner:has(.sheet-just-added) .candle-avatar,.sheet-just-added {animation:none}
  .sheet-chip.sheet-just-added {border-color:#e2cafc}
}

.item-name-language { font:600 .65rem system-ui; color:#c0ad8b; vertical-align:middle }
.wh-preview { position:fixed; inset:auto; margin:0; padding:0; width:min(330px,calc(100vw - 16px)); min-height:40px; max-height:85vh; border:1px solid #806642; background:#181512; border-radius:5px; pointer-events:none; box-shadow:0 8px 24px #0006 }
.wh-preview strong,.wh-preview small {display:block;margin:10px 14px;color:var(--cream,#ffedc2)}
.wh-preview small {color:var(--muted)}
.wh-preview small:empty,.wh-preview[data-ready] :is(strong,small) {display:none}
.wh-preview iframe {position:absolute;inset:0;display:block;width:100%;height:100%;border:0;opacity:0}
.wh-preview[data-ready] iframe {opacity:1}
