/* SantoStefano P3.6 — character dossier */
.gc36-page{--gold:#e6b778;--line:rgba(208,144,91,.29);--panel:#170e16;--muted:#b8a39a;min-width:0;color:#f4ddbd;font-family:Segoe UI,Tahoma,Arial,sans-serif}
.gc36-page *{box-sizing:border-box}
.gc36-page button{cursor:pointer;font-family:inherit}
.gc36-page button:focus-visible,.gc36-page input:focus-visible{outline:2px solid #e7bd82;outline-offset:2px}
.gc36-topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:13px;font-size:11px;color:#a99185}
.gc36-back{border:1px solid #775145;border-radius:6px;padding:8px 13px;background:#261821;color:#f3cf9e}
.gc36-back:hover{background:#4c2934}
.gc36-layout{display:grid;grid-template-columns:minmax(210px,250px) minmax(0,1fr);gap:14px;align-items:start}
.gc36-roster{position:sticky;top:16px;border:1px solid var(--line);border-radius:10px;background:linear-gradient(160deg,#23141d,#100b12);padding:14px;min-width:0;max-height:calc(100vh - 48px);display:flex;flex-direction:column}
.gc36-roster-head{display:flex;align-items:center;justify-content:space-between;color:#dbad74;font-size:10px;font-weight:800;letter-spacing:1.6px;margin:3px 0 12px}
.gc36-roster-head strong{font-size:15px;letter-spacing:0}
.gc36-roster input{width:100%;height:40px;border-radius:6px;border:1px solid #664747;background:#130c13;color:#f1dfc8;padding:0 11px;font-size:12px}
.gc36-roster-list{overflow-y:auto;min-height:120px;margin-top:12px;display:grid;align-content:start;gap:5px}
.gc36-roster-row{display:flex;gap:9px;align-items:center;text-align:left;width:100%;border:1px solid transparent;border-radius:7px;background:#21151e;color:#ead7c0;padding:9px 8px}
.gc36-roster-row:hover{border-color:#865c4e;background:#38202a}
.gc36-roster-row.selected{background:linear-gradient(95deg,#713039,#2a1822);border-color:#c28859;box-shadow:inset 3px 0 #efc27d}
.gc36-roster-row[hidden]{display:none}
.gc36-roster-avatar{width:37px;height:37px;display:grid;place-items:center;border:1px solid #865b45;background:radial-gradient(circle,#5b3440,#241720);border-radius:50%;color:#edbf81;flex-shrink:0}
.gc36-roster-row>span:nth-child(2){display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.gc36-roster-row strong{font-size:12px;overflow-wrap:anywhere}
.gc36-roster-row small{font-size:10px;color:#bba69a;line-height:1.3}
.gc36-main{min-width:0}
.gc36-profile-head{position:relative;display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:21px 23px;border:1px solid #95554d;border-radius:10px;background:linear-gradient(110deg,#2e1523,#170c15 75%);box-shadow:0 9px 30px #0005;overflow:hidden}
.gc36-profile-head:after{content:"";position:absolute;right:-80px;top:-100px;width:290px;height:290px;border:1px solid #d4a06a20;border-radius:50%;pointer-events:none}
.gc36-profile-badge{width:75px;height:75px;border:1px solid #c89562;background:radial-gradient(circle at 40% 25%,#664338,#2c1822 70%);border-radius:10px;display:grid;place-items:center;color:#f0c889;flex-shrink:0;box-shadow:inset 0 0 15px #c28b552b}
.gc36-profile-meta{flex:1;min-width:220px;z-index:1}
.gc36-profile-kicker{font-size:10px;color:#dbad74;letter-spacing:1.5px;font-weight:800}
.gc36-profile-meta h1{font:700 clamp(24px,2.6vw,35px)/1.15 Georgia,serif;color:#fbe3b9;margin:7px 0}
.gc36-profile-sub{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin:8px 0}
.gc36-profile-sub span{border:1px solid #6c4340;border-radius:5px;background:#422330;color:#e4c6a5;padding:5px 8px;font-size:11px}
.gc36-profile-meta>small{color:#bca39a;font-size:10px;line-height:1.5}
.gc36-head-actions{display:flex;flex-direction:column;align-items:stretch;gap:7px;min-width:130px;z-index:1}
.gc36-head-actions button{padding:10px 12px;border:1px solid #89614b;border-radius:6px;background:#2b1b24;color:#edcfa5;font-size:11px}
.gc36-head-actions button:hover{background:#4d3034}
.gc36-head-actions .gc36-primary{background:linear-gradient(120deg,#a36645,#e6b678);color:#1b0e11;border-color:#f0c58a;font-weight:750;display:flex;align-items:center;justify-content:center;gap:6px}
.gc36-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:thin;padding:12px 0}
.gc36-tabs button{white-space:nowrap;border:1px solid #6a4240;border-radius:6px;background:#21141c;color:#c7afa1;padding:11px 12px;font-size:11px;font-weight:700}
.gc36-tabs button:hover,.gc36-tabs button.active{background:linear-gradient(180deg,#853840,#49232b);color:#f9ddb4;border-color:#d49d65}
.gc36-tab-content{min-width:0}
.gc36-overview-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:12px}
.gc36-overview-main,.gc36-overview-side{display:grid;gap:12px;align-content:start;min-width:0}
.gc36-duo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.gc36-panel{background:linear-gradient(145deg,#21141d,#130d14);border:1px solid #6d4141;border-radius:10px;padding:14px;min-width:0;overflow:hidden}
.gc36-panel>header{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:32px;padding-bottom:11px;border-bottom:1px solid #5a383b;margin-bottom:13px}
.gc36-panel>header h3{display:flex;align-items:center;gap:8px;color:#f1c78c;font:700 16px Georgia,serif;margin:0}
.gc36-panel>header h3 svg{color:#d7a66d}
.gc36-panel>header>span{font-size:10px;color:#ac918b}
.gc36-hint{font-size:10px;line-height:1.55;color:#a9938d;margin:12px 0 0}
.gc36-mini-btn{padding:7px 9px;border-radius:5px;border:1px solid #926347;background:#3c2527;color:#f3d3a2;font-size:11px}
.gc36-mini-btn:hover{background:#63403b}
.gc36-doll{display:grid;grid-template-columns:minmax(65px,1fr) minmax(100px,1.55fr) minmax(65px,1fr);gap:7px;align-items:stretch;min-height:300px}
.gc36-doll-slots{display:flex;flex-direction:column;gap:6px;justify-content:center;min-width:0}
.gc36-portrait{min-height:290px;position:relative;border:1px solid #6f4b40;border-radius:7px;background:radial-gradient(ellipse at 50% 70%,#503029,#1d121b 50%,#100b12);display:flex;align-items:center;justify-content:center;overflow:hidden}
.gc36-portrait>img{height:100%;width:100%;object-fit:contain;position:absolute;inset:0}
.gc36-portrait-placeholder{display:flex;flex-direction:column;align-items:center;gap:9px;text-align:center;padding:10px}
.gc36-portrait-placeholder img{width:min(85%,150px);opacity:.5;filter:drop-shadow(0 0 20px #c7815c55)}
.gc36-portrait-placeholder strong{font:700 15px Georgia,serif;color:#e3bd88;overflow-wrap:anywhere}
.gc36-portrait-placeholder small{font-size:10px;color:#a38b85;line-height:1.4}
.gc36-slot{position:relative;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:3px;padding:7px 3px;min-height:58px;min-width:0;border:1px solid #6d4a43;border-radius:6px;background:linear-gradient(135deg,#3a2329,#1a111a);color:#bba99c;transition:background .15s,border-color .15s}
.gc36-slot:hover{border-color:#f0bd7b;background:#573334;z-index:4}
.gc36-slot.filled{border-color:#b88c52;color:#eacb9e;box-shadow:inset 0 0 10px #d49d4720}
.gc36-slot-art{display:grid;place-items:center;width:30px;height:30px;flex-shrink:0;color:#c29b6a}
.gc36-slot-art img{width:100%;height:100%;object-fit:contain;image-rendering:auto}
.gc36-slot-label{font-size:9px;color:#b49a91;line-height:1.2;text-align:center}
.gc36-slot-name{font-size:9px;color:#ead0ab;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gc36-slot-name.muted{color:#796c6a}
.gc36-enchant{position:absolute;top:1px;right:2px;background:#741f2e;border:1px solid #db795b;border-radius:3px;color:#ffe2bd;padding:1px 3px;font-size:10px}
.gc36-slot[data-tip]:hover:after,.gc36-slot[data-tip]:focus-visible:after{content:attr(data-tip);position:absolute;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%);z-index:50;width:max-content;max-width:min(290px,75vw);padding:11px 12px;white-space:pre-wrap;overflow-wrap:anywhere;background:#130e13;border:1px solid #d5a46b;box-shadow:0 9px 22px #000b;color:#f5dfc1;text-align:left;font-size:11px;line-height:1.55;border-radius:6px;pointer-events:none}
.gc36-extra-equip{margin-top:14px}.gc36-extra-equip h4{font:700 14px Georgia,serif;color:#dbb783;margin-bottom:9px}
.gc36-extra-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.gc36-sphere-stage{display:grid;grid-template-columns:75px minmax(0,1fr);gap:10px;min-height:300px;align-items:center}
.gc36-sphere-extras{display:flex;flex-direction:column;gap:9px;align-items:center}
.gc36-sphere-extras>span{font-size:9px;color:#c3a28d;text-align:center}
.gc36-sphere-extras .gc36-slot{width:69px;height:74px}
.gc36-sphere-extras .gc36-slot-label,.gc36-orbit-slot .gc36-slot-label{font-size:8px}
.gc36-sphere-extras .gc36-slot-name,.gc36-orbit-slot .gc36-slot-name{display:none}
.gc36-orbit{width:100%;max-width:310px;aspect-ratio:1;position:relative;display:grid;place-items:center;margin:auto}
.gc36-orbit-ring{position:absolute;inset:8%;border:2px solid #b78a4d;border-radius:50%;box-shadow:0 0 0 10px #b88d4920,inset 0 0 22px #bc804630,0 0 30px #d1a26422;background:repeating-conic-gradient(from 0deg,#9d74461c 0deg 4deg,transparent 4deg 20deg),radial-gradient(circle,transparent 34%,#704d2c25 35% 37%,transparent 38% 58%,#b38b4c55 59% 60%,transparent 61%)}
.gc36-orbit-ring:before{content:"";position:absolute;inset:17%;border:1px dashed #a88857;border-radius:50%}
.gc36-orbit-center{font:700 45px Georgia,serif;color:#a77c4d;opacity:.5}
.gc36-orbit-slot{position:absolute;width:74px}
.gc36-orbit-slot .gc36-slot{width:100%;height:72px;box-shadow:0 0 13px #0008}
.gc36-orbit-slot.top{top:0;left:50%;transform:translateX(-50%)}
.gc36-orbit-slot.left{left:0;top:29%}
.gc36-orbit-slot.right{right:0;top:29%}
.gc36-orbit-slot.bottom-left{bottom:0;left:15%}
.gc36-orbit-slot.bottom-right{bottom:0;right:15%}
.gc36-legacy{display:grid;gap:4px;border:1px solid #66483d;border-radius:7px;padding:10px;color:#cbb5a3;font-size:11px;margin-top:10px}
.gc36-legacy small{color:#a48b83}
.gc36-stat-group{margin-bottom:15px}
.gc36-stat-group h4{font:700 14px Georgia,serif;color:#e3bb87;margin:0 0 9px}
.gc36-stat-header,.gc36-stat-row{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(46px,.65fr) minmax(46px,.65fr);gap:7px;align-items:center}
.gc36-stat-header{color:#9d8a85;font-size:10px;padding-bottom:6px;border-bottom:1px solid #624447}
.gc36-stat-header span:not(:first-child){text-align:right}
.gc36-stat-row{padding:6px 0;border-bottom:1px solid #51383b65;color:#c9b2a0;font-size:11px}
.gc36-stat-row span{overflow-wrap:anywhere}.gc36-stat-row b{text-align:right;color:#f1d5ad;font-size:11px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.gc36-collection-list{display:grid;gap:7px}
.gc36-collection-item{display:flex;align-items:center;gap:10px;width:100%;border:1px solid #644448;background:#2a1b24;border-radius:7px;padding:10px;text-align:left;color:#f1d6b1}
.gc36-collection-item:hover{border-color:#d0a06d;background:#3e2930}
.gc36-collection-mark{width:34px;height:34px;display:grid;place-items:center;border-radius:7px;background:#69423855;color:#e3b17a;flex-shrink:0}
.gc36-collection-info{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}
.gc36-collection-info strong{font-size:12px;overflow-wrap:anywhere}.gc36-collection-info small{font-size:10px;color:#a99389;overflow-wrap:anywhere}
.gc36-collection-item>b{font:700 13px Georgia,serif;color:#f2ca8f;white-space:nowrap}
.gc36-collection-item>b small{display:block;font:400 10px Segoe UI,sans-serif;text-align:right;margin-top:4px}
.gc36-progress{display:block;height:4px;width:100%;border-radius:10px;background:#51363a;overflow:hidden}
.gc36-progress i{display:block;height:100%;background:linear-gradient(90deg,#8e4b40,#f0bd78)}
.gc36-empty{color:#a58e86;font-size:12px;padding:17px 6px}
.gc36-summary{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0;border:1px solid #a06c4b;border-radius:9px;background:linear-gradient(130deg,#311b25,#150e16);margin-top:12px;overflow:hidden}
.gc36-summary>div{padding:14px 9px;display:flex;flex-direction:column;gap:8px;align-items:center;border-right:1px solid #644348;min-width:0}
.gc36-summary>div:last-child{border-right:0}
.gc36-summary span{display:flex;align-items:center;gap:5px;color:#c3a38f;font-size:10px;text-align:center}
.gc36-summary span svg{color:#d9ac72;flex-shrink:0}
.gc36-summary strong{font:700 16px Georgia,serif;color:#f3d1a2;overflow-wrap:anywhere;text-align:center}
.gc36-history>h4{color:#d5b17d;font:700 15px Georgia,serif;margin:16px 0 8px}
.gc36-history-row{display:flex;align-items:center;gap:11px;border-bottom:1px solid #5d3b42;padding:11px 3px}
.gc36-history-row>span{color:#cda16b}.gc36-history-row>div{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}
.gc36-history-row strong{font-size:12px;color:#e8d2b3}.gc36-history-row small{font-size:10px;color:#a9968e;overflow-wrap:anywhere}
.gc36-history-row time{font-size:10px;color:#b99a7c}
.gc36-notes p{font-size:13px;line-height:1.65;white-space:pre-wrap;color:#d6c0ae}
.gc36-focus-layout{display:grid;gap:12px}
.gc36-focus-layout .gc36-doll{max-width:760px;margin:auto;width:100%;min-height:400px}
.gc36-focus-layout .gc36-portrait{min-height:400px}
.gc36-inspect{display:flex;align-items:center;gap:13px;margin:15px 0}
.gc36-inspect img{width:60px;height:60px;object-fit:contain}
.gc36-inspect-bonus{color:#f0c48b}
.gc36-current-icon{display:flex;align-items:center;gap:9px;font-size:11px;color:#c9aa8d}
.gc36-current-icon img{width:48px;height:48px;object-fit:contain}
.gc36-editor{max-width:630px}
.gc36-editor h2{font:700 24px Georgia,serif;color:#e9c38c;margin:10px 0 18px}
.gc36-editor form{display:grid;gap:12px}
.gc36-editor form label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#d3bca9}
.gc36-editor input:not([type=checkbox]),.gc36-editor select,.gc36-editor textarea{border:1px solid #765047;border-radius:6px;background:#1a1119;color:#f0d8bb;padding:9px 10px;width:100%;font:inherit}
.gc36-editor textarea{resize:vertical;min-height:75px}
.gc36-editor .gc36-check{display:flex;flex-direction:row;align-items:center;gap:9px}
.gc36-editor .gc36-check input{width:auto}
.gc36-editor-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.gc36-editor-actions button{padding:11px 14px}
.gc36-stat-edit{border:1px solid #644346;border-radius:7px;padding:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.gc36-stat-edit legend{color:#e6bd85;font:700 14px Georgia,serif;padding:0 8px}
.gc36-danger{color:#f2ac9f;border:1px solid #96504c;background:#3b1e25;border-radius:6px;padding:9px}
@media(max-width:1450px){.gc36-layout{grid-template-columns:200px minmax(0,1fr)}.gc36-overview-grid{grid-template-columns:1fr}.gc36-overview-side{grid-template-columns:repeat(2,minmax(0,1fr))}.gc36-duo{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1080px){.gc36-layout{grid-template-columns:1fr}.gc36-roster{position:static;max-height:240px}.gc36-roster-list{grid-template-columns:repeat(3,minmax(0,1fr))}.gc36-overview-side{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.gc36-profile-head{padding:15px}.gc36-profile-badge{width:53px;height:53px}.gc36-head-actions{flex-direction:row;flex-wrap:wrap;width:100%}.gc36-head-actions button{flex:1}.gc36-roster-list{grid-template-columns:repeat(2,minmax(0,1fr))}.gc36-overview-side,.gc36-duo{grid-template-columns:1fr}.gc36-summary{grid-template-columns:repeat(4,minmax(0,1fr))}.gc36-summary>div{border-bottom:1px solid #644348}.gc36-extra-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:490px){.gc36-roster-list{grid-template-columns:1fr}.gc36-doll{grid-template-columns:65px minmax(0,1fr) 65px;gap:4px}.gc36-doll-slots{gap:5px}.gc36-slot{padding:5px 2px;min-height:53px}.gc36-slot-art{width:23px;height:23px}.gc36-slot-label{font-size:8px}.gc36-slot-name{font-size:8px}.gc36-sphere-stage{grid-template-columns:58px minmax(0,1fr);gap:5px}.gc36-sphere-extras .gc36-slot{width:55px;height:58px}.gc36-orbit-slot{width:57px}.gc36-orbit-slot .gc36-slot{height:60px}.gc36-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.gc36-stat-edit{grid-template-columns:1fr}.gc36-topbar{align-items:start;flex-direction:column}}

.gc36-member-link{appearance:none;border:0;background:transparent;color:#f3d6b2;padding:0;text-align:left;font:inherit;font-weight:700;cursor:pointer;overflow-wrap:anywhere}
.gc36-member-link:hover{color:#ffe5ae;text-decoration:underline;text-underline-offset:3px}

/* Allow full item tooltips to escape the equipment and sphere frames. */
.gc36-equip,.gc36-spheres{overflow:visible}

/* Character edit dialogs share the dossier's palette instead of legacy green. */
.modal:has(.gc36-editor){background:linear-gradient(145deg,#271721,#130d15);border-color:#a57351;width:min(760px,100%)}
.modal:has(.gc36-editor) .close{color:#e5bb8a;border-color:#745147;background:#39232a}
.modal:has(.gc36-editor) .gc36-editor form label{color:#dec3ab}
