.trpg-records{--ink:#111;--muted:#747474;--line:#d9d9d9;--paper:#fff;--soft:#f5f5f5;max-width:1320px;margin:0 auto;padding:48px 28px 120px;color:var(--ink);font-family:Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.6}.records-profile{display:flex;align-items:center;gap:20px;padding:0 0 28px;border-bottom:1px solid var(--ink)}.records-profile img{width:88px;height:88px;object-fit:cover;border:1px solid var(--ink);border-radius:4px}.records-profile p,.section-heading span{margin:0 0 3px;font:700 11px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.13em;color:var(--muted)}.records-profile h1{margin:0;font-size:clamp(30px,4vw,48px);line-height:1;letter-spacing:-.04em}.trpg-records-nav{position:sticky;top:0;z-index:20;display:flex;gap:4px;padding:12px 0;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);overflow-x:auto}.trpg-records-nav a{flex:0 0 auto;padding:10px 14px;color:var(--muted);font-weight:700;text-decoration:none;border-radius:2px}.trpg-records-nav a:hover,.trpg-records-nav a.active{color:#fff;background:var(--ink)}.record-view{display:none;padding-top:42px}.record-view.active{display:block}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px}.section-heading h2{margin:0;font-size:28px;line-height:1.2;letter-spacing:-.035em}.section-heading button,.solid{min-height:44px;padding:0 18px;color:#fff;background:#111;border:1px solid #111;font-weight:700}.overview-summary{display:flex;align-items:baseline;gap:18px;padding:32px;border:1px solid #111;background:#111;color:#fff;margin-bottom:18px}.overview-summary strong{font-size:52px;line-height:1}.overview-summary span{font-weight:700}.record-grid{display:grid;gap:18px}.record-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.record-card{padding:24px;border:1px solid var(--line);background:var(--paper)}.record-card h3{margin:0 0 16px;font-size:18px}.mini-list{display:grid}.mini-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:11px 0;border-top:1px solid #e7e7e7}.mini-row:first-child{border-top:0}.mini-row small{display:block;color:var(--muted);font-weight:400}.mini-row time,.mini-row>span:last-child{flex:none;color:var(--muted);font-size:13px}.record-subnav,.role-filters{display:flex;gap:6px;overflow-x:auto}.record-subnav{margin-bottom:16px}.record-subnav button,.role-filters button{min-height:40px;padding:0 14px;border:1px solid var(--line);background:#fff;white-space:nowrap}.record-subnav button.active,.role-filters button.active{color:#fff;background:#111;border-color:#111}.preference-section{margin-bottom:14px}.preference-section header{display:flex;align-items:center;justify-content:space-between}.preference-section header button,.scenario-item>button,.library-item button,.play-item>button{min-height:36px;padding:0 12px;border:1px solid #bbb;background:#fff}.preference-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));border-top:1px solid #e7e7e7}.preference-row span{padding:10px 8px}.preference-row .bool{font-weight:800}.record-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.record-toolbar input{width:min(420px,100%);min-height:44px;padding:0 14px;border:1px solid #aaa;background:#fff}.scenario-toolbar{align-items:flex-end;flex-wrap:wrap}.scenario-toolbar .record-subnav{margin:0}.library-list,.play-list{border-top:1px solid #111}.library-item,.play-item{display:grid;align-items:center;gap:20px;padding:17px 8px;border-bottom:1px solid var(--line)}.library-item{grid-template-columns:minmax(0,1fr) auto}.library-item h3,.play-item h3,.scenario-item h3{margin:2px 0;font-size:17px;line-height:1.35}.library-item p,.play-item p,.scenario-item p{margin:2px 0;color:var(--muted);font-size:14px}.library-item>div:last-child{display:flex;gap:8px;align-items:center}.library-item a{font-weight:700;color:#111}.scenario-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.scenario-item{position:relative;min-height:160px;padding:18px;border:1px solid var(--line);background:#fff}.scenario-item header{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:12px}.scenario-item>button{position:absolute;right:14px;bottom:14px}.role{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:27px;padding:0 8px;font-size:12px;border:1px solid #111}.role.gm{color:#fff;background:#111}.role.pl{color:#111;background:#fff}.play-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border:1px solid #111;margin-bottom:18px}.play-stats>div{padding:16px;border-left:1px solid #ddd}.play-stats>div:first-child{border-left:0}.play-stats span{display:block;color:var(--muted);font-size:12px}.play-stats strong{font-size:20px}.play-item{grid-template-columns:150px minmax(0,1fr) 180px auto}.play-item>time{color:var(--muted);font-size:13px}.play-meta{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:4px 10px}.play-meta small{grid-column:2;color:var(--muted)}.record-more{display:block;min-height:46px;width:100%;margin-top:16px;border:1px solid #111;background:#fff;font-weight:700}.empty{padding:34px;text-align:center;color:var(--muted)}.calendar-toolbar{display:grid;grid-template-columns:44px auto 1fr 44px;align-items:center;gap:8px;margin-bottom:12px}.calendar-toolbar button{min-height:44px;border:1px solid #aaa;background:#fff}.calendar-toolbar strong{text-align:center}.timeline-scroll{overflow:auto;border:1px solid #111}.timeline-calendar{min-width:920px}.timeline-head{position:sticky;top:0;z-index:3;display:grid;grid-template-columns:70px repeat(7,1fr);background:#fff;border-bottom:1px solid #111}.timeline-head>div{padding:12px;text-align:center;border-left:1px solid var(--line)}.timeline-head b{display:block}.timeline-head .today{color:#fff;background:#111}.timeline-body{display:grid;grid-template-columns:70px 1fr;height:1152px}.timeline-hours>div{height:48px;padding:4px 7px;border-bottom:1px solid var(--line);font-size:11px;color:var(--muted)}.timeline-days{display:grid;grid-template-columns:repeat(7,1fr)}.timeline-day{position:relative;border-left:1px solid var(--line);background:repeating-linear-gradient(to bottom,#fff 0,#fff 47px,#eee 48px)}.timeline-event{position:absolute;left:4px;right:4px;z-index:2;min-height:36px;padding:5px 7px;border:0;border-radius:2px;color:#fff;text-align:left;overflow:hidden}.timeline-event strong,.timeline-event small{display:block}.calendar-note{color:var(--muted);font-size:13px}.record-dialog{width:min(620px,calc(100% - 28px));max-height:88vh;padding:0;border:1px solid #111;box-shadow:10px 10px 0 rgba(0,0,0,.12)}.record-dialog::backdrop{background:rgba(255,255,255,.82)}.record-dialog form{display:grid;gap:14px;padding:26px}.record-dialog h2{margin:0 0 4px}.record-dialog label{display:grid;gap:5px;font-weight:700;font-size:13px}.record-dialog input,.record-dialog select,.record-dialog textarea{width:100%;min-height:44px;padding:10px;border:1px solid #aaa;background:#f7f7f7;font:inherit}.record-dialog textarea{min-height:110px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}.dialog-actions button{min-height:44px;padding:0 18px;border:1px solid #111;background:#fff}.dialog-actions .solid{color:#fff;background:#111}.dialog-actions .danger{margin-right:auto;color:#a00}.color-palette{display:flex;gap:8px;flex-wrap:wrap}.color-palette button{width:38px;height:38px;border:3px solid #fff;outline:1px solid #bbb}.color-palette button.selected{outline:3px solid #111}
@media(max-width:800px){.trpg-records{padding:26px 14px 100px;font-size:15px}.records-profile{gap:14px;padding-bottom:20px}.records-profile img{width:68px;height:68px}.trpg-records-nav{margin:0 -14px;padding:10px 14px}.record-view{padding-top:30px}.section-heading{align-items:center}.section-heading h2{font-size:23px}.overview-summary{display:grid;gap:7px;padding:22px}.overview-summary strong{font-size:42px}.record-grid.two{grid-template-columns:1fr}.scenario-list{grid-template-columns:1fr 1fr}.play-stats{grid-template-columns:repeat(2,1fr)}.play-stats>div{border-bottom:1px solid #ddd}.play-stats>div:last-child{grid-column:1/-1}.play-item{grid-template-columns:1fr auto;gap:10px}.play-item>time{grid-column:1/-1}.play-meta{justify-items:end}.play-item>button{grid-column:1/-1;justify-self:end}.record-toolbar{align-items:stretch;flex-direction:column}.record-toolbar input{width:100%}.scenario-toolbar{align-items:stretch}.role-filters{order:3}.form-grid{grid-template-columns:1fr}}
@media(max-width:480px){.scenario-list{grid-template-columns:1fr}.preference-row{grid-template-columns:1fr}.library-item{grid-template-columns:1fr}.library-item>div:last-child{justify-content:flex-end}.calendar-toolbar{grid-template-columns:44px 1fr 44px}.calendar-toolbar #week-today{grid-row:2;grid-column:1/-1}.calendar-toolbar strong{font-size:12px}.play-stats strong{font-size:17px}}

/* Portfolio-style overview and preference resume */
#overview.record-view,#preferences.record-view{padding-top:28px}.overview-summary{display:grid;grid-template-columns:auto minmax(130px,.65fr) 1fr 1.4fr;align-items:center;gap:22px;padding:28px 32px}.overview-summary>span{align-self:start;color:#aaa;font-size:14px}.overview-summary>strong{font-size:72px;letter-spacing:-.06em}.overview-summary>div{display:grid;gap:2px;padding-left:24px;border-left:1px solid #444}.overview-summary>div b{font-size:24px;line-height:1.2}.overview-summary>div small{color:#aaa;font-size:12px}.rule-ranking{display:grid}.rule-row{display:grid;grid-template-columns:minmax(150px,1fr) 58px 130px;align-items:center;gap:16px;padding:12px 0;border-top:1px solid #e6e6e6}.rule-row:first-child{border-top:0}.rule-name{display:grid;gap:6px;min-width:0}.rule-name b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rule-name span{display:block;width:var(--rule-width);height:3px;background:#111}.rule-row>strong{text-align:right;font-size:23px;line-height:1}.rule-row>strong small{font-size:11px;margin-left:2px}.rule-row>time{text-align:right;color:#666;font-size:13px}.preference-section{padding:0;border-color:#cfcfcf}.preference-section>header{padding:17px 20px;border-bottom:1px solid #111;background:#111;color:#fff}.preference-section>header h3{margin:0}.preference-section>header button{color:#fff;background:#111;border-color:#666}.preference-section>div{padding:18px 20px}.preference-row{display:flex;flex-wrap:wrap;gap:8px;padding:12px 0;border-top:1px solid #e6e6e6}.preference-row:first-child{border-top:0}.trait{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:7px 11px;border:1px solid #cfcfcf;background:#fff;white-space:pre-line}.trait i{font-style:normal;font-size:10px}.trait.yes{border-color:#111;font-weight:700}.trait.no{color:#888;background:#f5f5f5}.trait.text{white-space:normal}.preference-copy{flex:1 1 100%;margin:0;padding:16px;border-left:3px solid #111;background:#f5f5f5;line-height:1.8;white-space:normal;overflow-wrap:anywhere}.profile-resume{display:grid;grid-template-columns:minmax(190px,.65fr) 1.5fr;gap:18px}.profile-identity{display:flex;flex-direction:column;justify-content:center;padding:20px;background:#111;color:#fff}.profile-identity b{font-size:28px}.profile-identity a{color:#bbb;text-decoration:none;font-size:13px}.profile-resume dl{margin:0;padding:18px;border:1px solid #ddd}.profile-resume dt{color:#777;font-size:12px}.profile-resume dd{margin:4px 0 0;font-weight:700;white-space:pre-line}.profile-resume>p{grid-column:1/-1;margin:0;padding:18px;border:1px solid #ddd;line-height:1.85;overflow-wrap:anywhere}.memo-hint{position:relative;display:inline-flex;vertical-align:middle;margin-left:5px}.memo-hint>b{display:inline-flex;align-items:center;min-height:25px;padding:0 7px;color:#fff;background:#555;font-size:10px;letter-spacing:.04em}.memo-hint>span{position:absolute;z-index:30;right:0;top:calc(100% + 7px);width:max-content;max-width:min(320px,75vw);padding:11px 13px;color:#fff;background:#111;font-size:12px;line-height:1.55;white-space:normal;box-shadow:6px 6px 0 rgba(0,0,0,.15);opacity:0;visibility:hidden;transform:translateY(-4px);transition:.15s}.memo-hint:hover>span,.memo-hint:focus>span,.memo-hint:focus-within>span{opacity:1;visibility:visible;transform:none}.scenario-item header>span:last-child{display:flex;align-items:center;gap:4px}.scenario-item .memo-hint{margin:0}
@media(max-width:800px){.overview-summary{grid-template-columns:auto 1fr;padding:22px}.overview-summary>span{grid-column:1/-1}.overview-summary>strong{font-size:58px}.overview-summary>div{padding-left:16px}.overview-summary>div:last-child{grid-column:1/-1;padding:14px 0 0;border-left:0;border-top:1px solid #444}.rule-row{grid-template-columns:minmax(110px,1fr) 48px 105px;gap:8px}.rule-row>strong{font-size:20px}.profile-resume{grid-template-columns:1fr}.profile-resume>p{grid-column:auto}.preference-section>div{padding:12px}.trait{white-space:normal}}
@media(max-width:480px){.overview-summary{grid-template-columns:1fr 1fr}.overview-summary>strong{grid-column:1/-1}.overview-summary>div{padding:12px 0 0;border-left:0;border-top:1px solid #444}.rule-row{grid-template-columns:minmax(90px,1fr) 42px}.rule-row>time{grid-column:1/-1;text-align:left}.preference-row{display:grid;grid-template-columns:1fr}.trait{width:100%}}

/* Compact tab content, searchable toolbars and rule-based library */
.section-actions{display:flex;justify-content:flex-end;min-height:0;margin-bottom:14px}.section-actions:empty{display:none}.toolbar-controls{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto}.search-field{position:relative;display:block;width:min(420px,48vw)}.search-field svg{position:absolute;left:14px;top:50%;width:18px;height:18px;fill:none;stroke:#555;stroke-width:2;transform:translateY(-50%);pointer-events:none}.record-toolbar .search-field input{width:100%;padding-left:42px}.sort-field{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 10px;border:1px solid #aaa;background:#fff}.sort-field>span{color:#666;font-size:12px;white-space:nowrap}.sort-field select{min-height:40px;border:0;background:#fff;font:inherit;font-weight:700}.library-rule-index{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;border-top:0}.library-rule-index>button{display:grid;grid-template-columns:1fr auto;gap:5px 12px;padding:18px;text-align:left;border:1px solid #ccc;background:#fff}.library-rule-index>button:hover{border-color:#111}.library-rule-index b{font-size:18px}.library-rule-index span{color:#777;font-size:12px}.library-rule-index strong{grid-row:1/3;grid-column:2;align-self:center;font-size:25px}.library-rule-index strong small{display:block;color:#777;font-size:10px;text-align:right}.book-group{margin-bottom:14px;border:1px solid #ccc}.book-group>header{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:14px 16px;color:#fff;background:#111}.book-group>header span{font-size:12px;color:#bbb}.book-group>header h3{margin:0;font-size:17px}.book-group>header b{font-size:12px}.book-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;padding:14px 16px;border-top:1px solid #e2e2e2}.book-entry:first-child{border-top:0}.book-entry h4{margin:0;font-size:15px}.book-entry p{margin:3px 0 0;color:#666;font-size:13px;white-space:normal;overflow-wrap:anywhere}.book-entry>div:last-child{display:flex;align-items:center;gap:7px}.book-entry a,.book-entry button{padding:7px 10px;border:1px solid #aaa;background:#fff;color:#111;font-weight:700;text-decoration:none}.calendar-view-switch{display:flex;justify-content:flex-end;gap:5px;margin-bottom:10px}.calendar-view-switch button{min-height:40px;padding:0 16px;border:1px solid #aaa;background:#fff;font-weight:700}.calendar-view-switch button.active{color:#fff;background:#111;border-color:#111}.timeline-event{background:var(--event-color,#111)!important}.month-view{min-width:840px}.month-weekdays,.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.month-weekdays b{padding:10px;text-align:center;border-bottom:1px solid #111}.month-grid{border-top:0}.month-day{min-height:126px;padding:8px;border-right:1px solid #ddd;border-bottom:1px solid #ddd;background:#fff}.month-day:nth-child(7n){border-right:0}.month-day.outside{color:#aaa;background:#f7f7f7}.month-day.today>header{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;color:#fff;background:#111;border-radius:50%}.month-day>div{display:grid;gap:4px;margin-top:5px}.month-day button{display:flex;gap:4px;min-width:0;padding:5px 7px;border:0;border-left:4px solid var(--event-color,#111);background:#f0f0f0;text-align:left;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.month-day button span{flex:none}.month-day small{color:#666;font-size:10px}
@media(max-width:800px){.section-actions{margin-bottom:10px}.toolbar-controls{width:100%;margin-left:0}.search-field{width:auto;flex:1}.sort-field{flex:none}.library-rule-index{grid-template-columns:repeat(2,minmax(0,1fr))}.book-entry{grid-template-columns:1fr}.book-entry>div:last-child{justify-content:flex-end}.calendar-view-switch{justify-content:stretch}.calendar-view-switch button{flex:1}.month-view{min-width:720px}}
@media(max-width:480px){.toolbar-controls{align-items:stretch;flex-direction:column}.search-field{width:100%}.sort-field{justify-content:space-between}.sort-field select{flex:1}.library-rule-index{grid-template-columns:1fr}.library-rule-index>button{padding:14px}.book-group>header{grid-template-columns:1fr auto}.book-group>header span{grid-column:1/-1}.month-view{min-width:650px}}
.preference-section>header h3{color:#fff}.preference-table-wrap{width:100%;overflow-x:auto}.preference-table{width:100%;border-collapse:collapse;background:#fff;font-size:14px}.preference-table th,.preference-table td{padding:12px 14px;border:1px solid #ddd;text-align:left;vertical-align:top;line-height:1.65;overflow-wrap:anywhere}.preference-table th{width:1%;min-width:110px;background:#f2f2f2;font-weight:800;white-space:normal}.preference-table td{min-width:150px}.preference-table .table-section th{color:#fff;background:#333;border-color:#333;font-size:15px}.preference-table .choice{min-width:130px}.preference-table .choice i{margin-right:8px;font-style:normal}.preference-table .choice.yes{font-weight:800}.preference-table .choice.no{color:#999;background:#f7f7f7}.profile-dialog{width:min(900px,calc(100% - 28px))}.profile-edit-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:12px 0;border-top:1px solid #ddd}.profile-edit-row:first-child{border-top:0}.profile-edit-cells{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:7px}.profile-edit-cells textarea{min-height:44px!important;resize:vertical}.profile-row-actions{display:flex;align-items:flex-start;gap:5px}.profile-row-actions button,.add-profile-row{min-height:40px;padding:0 11px;border:1px solid #aaa;background:#fff}.add-profile-row{justify-self:start}.play-total{grid-column:1/-1;margin-top:3px;padding-top:5px;border-top:1px solid #ddd;color:#111!important;font-weight:700}@media(max-width:600px){.preference-table{font-size:13px}.preference-table th,.preference-table td{padding:9px 10px}.profile-edit-row{grid-template-columns:1fr}.profile-row-actions{justify-content:flex-end}}

.library-toolbar{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;gap:10px}.library-toolbar .record-subnav{width:100%;margin:0;padding-bottom:3px}.library-toolbar .toolbar-controls{width:100%;margin:0}.library-toolbar .search-field{width:auto;flex:1}

.calendar-toolbar button{padding-left:12px;padding-right:12px;white-space:nowrap}.calendar-toolbar #week-today{min-width:64px}

.preference-table{table-layout:fixed}.preference-table th{width:190px}.preference-table td{width:auto}.preference-table .choice-row>td{padding:0}.preference-choice-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.preference-choice-grid .choice{display:flex;align-items:flex-start;gap:9px;min-width:0;min-height:66px;padding:14px;border-right:1px solid #ddd;border-bottom:1px solid #ddd;background:#fff}.preference-choice-grid .choice:nth-child(4n){border-right:0}.preference-choice-grid .choice i{flex:none;margin:1px 0 0;font-style:normal}.preference-choice-grid .choice b{min-width:0;line-height:1.5;overflow-wrap:anywhere}.preference-choice-grid .choice.no{color:#999;background:#f7f7f7}.preference-choice-grid .choice-label{grid-column:1/-1;padding:10px 14px;color:#fff;background:#333}
@media(max-width:800px){.preference-table th{width:150px}.preference-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.preference-choice-grid .choice:nth-child(4n){border-right:1px solid #ddd}.preference-choice-grid .choice:nth-child(2n){border-right:0}}
@media(max-width:480px){.preference-table th,.preference-table td{display:block;width:100%}.preference-choice-grid{grid-template-columns:1fr}.preference-choice-grid .choice{border-right:0}.preference-choice-grid .choice:nth-child(2n){border-right:0}}

.overview-profile-card{margin-bottom:18px}.overview-profile-card>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.overview-profile-card>header h3{margin:0}.overview-profile-card>header button{min-height:36px;padding:0 12px;border:1px solid #bbb;background:#fff}.preference-table td>span,.preference-table th>span,.preference-choice-grid b>span,.profile-copy>span,.profile-resume dd>span{display:block}.preference-table ul,.profile-copy ul,.profile-resume dd ul{margin:8px 0;padding-left:20px}.preference-table li,.profile-copy li,.profile-resume dd li{margin:4px 0}.profile-copy{grid-column:1/-1;line-height:1.75}
.section-label-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:18px}.section-label-grid>span{display:block}.wide-copy{padding:18px!important;line-height:1.75;background:#fff!important}

/* Spreadsheet-derived preference layouts */
.sheet-intro{padding:18px 20px;border:1px solid #ddd;background:#fafafa;line-height:1.75}.sheet-intro>span{display:block}.sheet-intro ul{margin:8px 0;padding-left:20px}.tendency-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid #ccc}.tendency-panel{min-width:0;border-right:1px solid #ddd}.tendency-panel:last-child{border-right:0}.tendency-panel h4,.checklist-board h4,.session-tendency-board>h4,.tuning-board>h4,.rating-board h4{margin:0;padding:14px 16px;color:#fff;background:#333}.tendency-panel h5,.checklist-board h5{margin:0;padding:10px 14px;border-top:1px solid #ddd;border-bottom:1px solid #ddd;background:#f1f1f1}.tendency-panel dl{margin:0}.sheet-pair{display:grid;grid-template-columns:minmax(72px,.42fr) minmax(0,1fr);border-bottom:1px solid #e5e5e5}.sheet-pair dt,.sheet-pair dd{margin:0;padding:12px;line-height:1.55}.sheet-pair dt{font-weight:700;background:#fafafa}.sheet-pair dd>span,.sheet-note>span{display:block}.sheet-note{padding:12px;border-bottom:1px solid #e5e5e5}.session-tendency-board{border:1px solid #ccc}.session-tendency-row{display:grid;grid-template-columns:190px minmax(0,1fr);border-top:1px solid #ddd}.session-tendency-row>strong{padding:13px 15px;background:#f5f5f5}.session-tendency-row>div{display:flex;flex-wrap:wrap;gap:8px;padding:10px 12px}.sheet-choice,.sheet-value{display:inline-flex;align-items:flex-start;gap:7px;padding:7px 10px;border:1px solid #ccc;background:#fff;line-height:1.45}.sheet-choice i{font-style:normal}.sheet-choice.no{color:#999;background:#f7f7f7}.tuning-board{border:1px solid #ccc}.tuning-group{display:grid;grid-template-columns:170px minmax(0,1fr);border-top:1px solid #ddd}.tuning-group>strong{padding:12px 14px;background:#f3f3f3}.tuning-question{display:grid;grid-template-columns:minmax(260px,1fr) minmax(150px,.55fr);border-bottom:1px solid #ddd}.tuning-question:last-child{border-bottom:0}.tuning-question>*{padding:11px 13px}.tuning-question b{border-left:1px solid #ddd}.checklist-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.checklist-board>section{border:1px solid #ccc}.check-row{padding:9px 12px;border-bottom:1px solid #e5e5e5}.check-row .sheet-choice{border:0;padding:0}.check-row small{display:block;margin:5px 0 0 25px;color:#666;line-height:1.5}.ng-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #ccc;border-top:0}.ng-card-grid .sheet-choice{min-height:64px;border:0;border-right:1px solid #ddd;border-bottom:1px solid #ddd;padding:13px}.ng-legend{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.ng-legend span{padding:7px 10px;border:1px solid #ccc}.ng-matrix-wrap{overflow:auto;border:1px solid #bbb}.ng-matrix{width:100%;min-width:860px;border-collapse:collapse}.ng-matrix th,.ng-matrix td{padding:10px;border-right:1px solid #ddd;border-bottom:1px solid #ddd;text-align:center}.ng-matrix tbody th{width:220px;max-width:220px;background:#f3f3f3;text-align:left;vertical-align:top;line-height:1.55}.ng-matrix tbody td:nth-child(2){min-width:270px;text-align:left}.ng-level{display:inline-flex;min-width:30px;justify-content:center}.rating-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:18px}.rating-board>section{border:1px solid #ccc}.rating-row{display:grid;grid-template-columns:minmax(150px,.7fr) minmax(0,1fr);border-top:1px solid #ddd}.rating-row>strong{padding:12px;background:#f3f3f3}.rating-row>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.rating-row .sheet-choice{border:0;border-left:1px solid #ddd;border-radius:0;padding:10px 8px;font-size:12px}
@media(max-width:900px){.tendency-board{grid-template-columns:repeat(2,minmax(0,1fr))}.tendency-panel:nth-child(2){border-right:0}.checklist-board,.rating-board{grid-template-columns:1fr}.ng-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.tendency-board,.ng-card-grid{grid-template-columns:1fr}.tendency-panel{border-right:0}.session-tendency-row,.tuning-group,.rating-row{grid-template-columns:1fr}.tuning-question{grid-template-columns:minmax(0,1fr) minmax(105px,.45fr)}.tuning-question b{background:#fafafa}.rating-row>div{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Curated site profile: selected and answered data only */
.selected-only.preference-choice-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));border-top:1px solid #ddd}.selected-only .choice,.selected-profile .sheet-choice{min-height:auto;background:#fff;color:#111}.compact-preference .table-section th{padding:11px 14px;background:#222}.selected-profile .session-tendency-row{grid-template-columns:180px minmax(0,1fr)}.selected-profile .session-tendency-row:first-child{border-top:0}.curated-board>h4{letter-spacing:.01em}.tuning-group>strong{display:flex;align-items:flex-start}.tuning-question.answer-only{grid-template-columns:1fr}.tuning-question.answer-only b{border-left:0}.checklist-board>section{background:#fff}.check-group+ .check-group{border-top:10px solid #fff}.check-group h5{background:#eee;color:#111}.ng-card-grid.selected-only{border-top:1px solid #ccc}.ng-card-grid.selected-only .sheet-choice{background:#fff;color:#111}.ng-legend.concise{margin-top:0}.ng-legend.concise span{display:inline-flex;gap:7px;align-items:center}.ng-legend.concise b{display:inline-flex;width:24px;height:24px;align-items:center;justify-content:center;color:#fff;background:#111}.rating-board.selected-profile .rating-row>div{display:flex;flex-wrap:wrap;gap:7px;padding:8px}.rating-board.selected-profile .sheet-choice{border:1px solid #ccc;padding:6px 9px}.preference-section>div:empty{display:none}
.session-stat{display:grid;gap:3px;min-width:120px;padding:8px 11px;border:1px solid #ccc}.session-stat small{color:#666}.session-stat b{font-size:16px}
@media(max-width:700px){.selected-profile .session-tendency-row{grid-template-columns:1fr}.selected-only.preference-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rating-board.selected-profile .rating-row>div{display:flex}}
@media(max-width:420px){.selected-only.preference-choice-grid{grid-template-columns:1fr}}

/* Preference readability pass: keep the monochrome site language while giving
   long answers enough width and making each section scannable. */
#preferences .record-subnav{gap:0;margin-bottom:22px;border-bottom:1px solid #111}
#preferences .record-subnav button{position:relative;min-height:46px;padding:0 20px;border:0;border-bottom:3px solid transparent;color:#666;background:#fff;font-weight:800}
#preferences .record-subnav button:hover{color:#111;background:#f4f4f4}
#preferences .record-subnav button.active{color:#111;background:#fff;border-bottom-color:#111}
#preferences .preference-section{margin-bottom:24px;border:1px solid #cfcfcf}
#preferences .preference-section>header{min-height:66px;padding:16px 20px}
#preferences .preference-section>header h3{font-size:18px;letter-spacing:-.02em}
#preferences .preference-section>div{padding:20px}
#preferences .selected-only.preference-choice-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border:1px solid #d5d5d5}
#preferences .selected-only.preference-choice-grid .choice{min-height:68px;padding:15px 16px;border:0;border-right:1px solid #ddd;border-bottom:1px solid #ddd;font-size:15px}
#preferences .selected-only.preference-choice-grid .choice:nth-child(4n){border-right:0}
#preferences .selected-only.preference-choice-grid .choice i,
#preferences .selected-profile .sheet-choice i{font-size:9px;transform:translateY(3px)}
#preferences .tendency-board{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;border:0}
#preferences .tendency-panel{border:1px solid #cfcfcf}
#preferences .tendency-panel:nth-child(2n){border-right:1px solid #cfcfcf}
#preferences .tendency-panel h4{padding:15px 18px;font-size:16px;background:#222}
#preferences .tendency-panel h5{padding:10px 16px;color:#444;background:#f0f0f0;font-size:13px}
#preferences .sheet-pair{grid-template-columns:126px minmax(0,1fr)}
#preferences .sheet-pair dt{padding:13px 15px;color:#444;font-size:13px}
#preferences .sheet-pair dd{padding:13px 16px;line-height:1.7}
#preferences .sheet-pair dd ul{margin:0;padding-left:18px}
#preferences .sheet-pair dd li+li{margin-top:7px}
#preferences .sheet-note{padding:13px 16px;line-height:1.7}
#preferences .session-tendency-board,
#preferences .tuning-board{border-color:#bbb}
#preferences .session-tendency-row{grid-template-columns:210px minmax(0,1fr);min-height:58px}
#preferences .session-tendency-row>strong,
#preferences .tuning-group>strong,
#preferences .rating-row>strong{display:flex;align-items:center;padding:14px 16px;color:#333;background:#f2f2f2;font-size:13px}
#preferences .session-tendency-row>div{gap:7px;padding:11px 13px}
#preferences .sheet-choice,#preferences .sheet-value{padding:8px 11px;border-color:#c9c9c9}
#preferences .session-stat{min-width:126px;padding:10px 12px;border:1px solid #ccc;background:#fff}
#preferences .session-stat small{display:block;color:#777;font-size:11px}
#preferences .session-stat b{display:block;margin-top:2px;font-size:17px}
#preferences .tuning-group{grid-template-columns:190px minmax(0,1fr)}
#preferences .tuning-question>*{padding:13px 15px;line-height:1.65}
#preferences .checklist-board{gap:16px}
#preferences .checklist-board>section{border-color:#bbb}
#preferences .checklist-board h4{padding:15px 17px;background:#222}
#preferences .check-group h5{padding:10px 14px;color:#444;background:#eee;font-size:13px}
#preferences .check-row{padding:11px 14px}
#preferences .check-row small{margin-top:7px;line-height:1.65}
#preferences .ng-card-grid.selected-only{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));border-color:#bbb}
#preferences .ng-card-grid.selected-only .sheet-choice{min-height:58px;padding:13px 15px}
#preferences .ng-legend.concise{padding:10px 0 2px}
#preferences .ng-matrix th,#preferences .ng-matrix td{padding:12px}
#preferences .rating-board{gap:16px}
#preferences .rating-board>section{border-color:#bbb}
#preferences .rating-board h4{padding:15px 17px;background:#222}
#preferences .rating-row{grid-template-columns:190px minmax(0,1fr);min-height:58px}

@media(max-width:900px){
  #preferences .selected-only.preference-choice-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  #preferences .selected-only.preference-choice-grid .choice:nth-child(4n){border-right:1px solid #ddd}
  #preferences .selected-only.preference-choice-grid .choice:nth-child(3n){border-right:0}
}
@media(max-width:700px){
  #preferences .record-subnav button{padding:0 15px}
  #preferences .preference-section>div{padding:12px}
  #preferences .selected-only.preference-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #preferences .selected-only.preference-choice-grid .choice:nth-child(3n){border-right:1px solid #ddd}
  #preferences .selected-only.preference-choice-grid .choice:nth-child(2n){border-right:0}
  #preferences .tendency-board{grid-template-columns:1fr}
  #preferences .session-tendency-row,
  #preferences .tuning-group,
  #preferences .rating-row{grid-template-columns:1fr}
  #preferences .session-tendency-row>strong,
  #preferences .tuning-group>strong,
  #preferences .rating-row>strong{border-bottom:1px solid #ddd}
}
@media(max-width:440px){
  #preferences .selected-only.preference-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #preferences .selected-only.preference-choice-grid .choice:nth-child(odd){border-right:1px solid #ddd!important}
  #preferences .selected-only.preference-choice-grid .choice:nth-child(even){border-right:0!important}
  #preferences .sheet-pair{grid-template-columns:104px minmax(0,1fr)}
  #preferences .sheet-pair dt,#preferences .sheet-pair dd{padding:11px}
  #preferences .ng-card-grid.selected-only{grid-template-columns:1fr}
}
@media(max-width:340px){
  #preferences .selected-only.preference-choice-grid{grid-template-columns:1fr}
  #preferences .selected-only.preference-choice-grid .choice{border-right:0!important}
}

.sheet-followup{margin:9px 0 0;padding:10px 12px;background:#f1f1f1;color:#444;line-height:1.7}

/* Owned rulebooks imported from the profile sheet */
.owned-library{margin-bottom:24px}.owned-library>header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;color:#fff;background:#111}.owned-library>header h3{margin:0;font-size:17px}.owned-library>header span{color:#bbb;font-size:12px}.owned-rule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid #ccc;border-top:0}.owned-rule-card{min-width:0;padding:17px 18px;border-right:1px solid #ddd;border-bottom:1px solid #ddd}.owned-rule-card:nth-child(2n){border-right:0}.owned-rule-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.owned-rule-head h4{margin:0;font-size:17px;line-height:1.45;word-break:keep-all}.owned-rule-head>div{display:flex;flex:none;flex-wrap:wrap;justify-content:flex-end;gap:5px}.mastery-tag,.gm-ready-tag{display:inline-flex;align-items:center;min-height:28px;padding:4px 8px;border:1px solid #111;font-size:11px;font-weight:800;line-height:1.4;white-space:nowrap}.mastery-tag{color:#fff;background:#111}.owned-rule-card ul{display:grid;gap:7px;margin:14px 0 0;padding:0;list-style:none}.owned-rule-card li{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:9px;padding-top:7px;border-top:1px solid #e5e5e5}.owned-rule-card li span{color:#777;font-size:11px;white-space:nowrap}.owned-rule-card li b{font-size:13px;line-height:1.55;word-break:keep-all;overflow-wrap:anywhere}.no-supplement{margin:13px 0 0;color:#999;font-size:12px}
.mastery-tag[data-level*="입문"]{color:#666;border-color:#bbb;background:#fff}.mastery-tag[data-level*="미숙"]{color:#333;border-color:#aaa;background:#e5e5e5}.mastery-tag[data-level*="보통"]{color:#fff;border-color:#777;background:#777}.mastery-tag[data-level*="능숙"]{color:#fff;border-color:#111;background:#111}

/* Let preference tags grow with their text instead of clipping glyphs. */
.preference-choice-grid .choice,.sheet-choice,.trait{height:auto!important;max-height:none!important;overflow:visible!important;line-height:1.55}.preference-choice-grid .choice b,.sheet-choice,.trait{word-break:keep-all;overflow-wrap:anywhere}.sheet-choice i,.trait i{line-height:inherit}
@media(max-width:700px){.owned-rule-grid{grid-template-columns:1fr}.owned-rule-card{border-right:0}.owned-rule-head{display:grid}.owned-rule-head>div{justify-content:flex-start}}
.duration-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0;padding:0;border:0}
.duration-fields legend{grid-column:1/-1;margin-bottom:5px;font-weight:700;font-size:13px}
.duration-fields label{position:relative}
.duration-fields label::after{position:absolute;right:12px;bottom:12px;color:#777;font-size:13px}
.duration-fields label:first-of-type::after{content:'시간'}
.duration-fields label:last-of-type::after{content:'분'}
.duration-fields input{padding-right:44px!important}
@media(max-width:440px){.duration-fields{grid-template-columns:1fr 1fr;gap:8px}}
.play-group-field{padding:14px;border:1px solid #d2d2d2;background:#fafafa}.play-group-field select{background:#fff!important}.play-group-field>small{color:#666;font-size:11px;font-weight:400;line-height:1.5}
.play-candidates{display:grid;gap:9px;padding:14px;border:1px solid #111;background:#fff}.play-candidates[hidden]{display:none}.play-candidates>strong{font-size:13px}.play-candidates>div{display:grid;gap:7px}.play-candidates button{display:grid;gap:2px;padding:10px 12px;border:1px solid #d0d0d0;background:#fafafa;text-align:left}.play-candidates button:hover{border-color:#111;background:#fff}.play-candidates b{font-size:14px}.play-candidates span,.play-candidates small{color:#666;font-size:12px}
.play-group-item{align-items:start}.play-group-details{margin-top:9px;border-top:1px solid #e1e1e1}.play-group-details summary{cursor:pointer;display:inline-flex;align-items:center;gap:6px;margin-top:8px;padding:4px 0;font-size:12px;font-weight:800;color:#111}.play-group-details summary::before{content:'▸';font-size:10px}.play-group-details[open] summary::before{content:'▾'}.play-group-details>div{display:grid;gap:0;margin-top:4px;border:1px solid #e3e3e3;background:#fff}.play-session-row{border-top:1px solid #eee;font-size:12px}.play-session-row:first-child{border-top:0}.play-session-row>summary{cursor:pointer;display:grid;grid-template-columns:52px 94px 86px minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px 10px;list-style:none}.play-session-row>summary::-webkit-details-marker{display:none}.play-session-row>summary::before{content:'▸';grid-column:1;margin-right:4px;font-size:10px}.play-session-row[open]>summary::before{content:'▾'}.play-session-row>summary b{grid-column:1;margin-left:14px}.play-session-row time,.play-session-row small{color:#666}.play-session-row em{font-style:normal;color:#666;white-space:nowrap}.play-session-detail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:8px 12px;padding:10px 12px 12px 78px;background:#fafafa;border-top:1px solid #eee}.play-session-detail span{display:grid;gap:1px;color:#333}.play-session-detail span b{color:#777;font-size:10px}.play-session-detail button{align-self:end;justify-self:end;min-height:32px;padding:0 10px;border:1px solid #aaa;background:#fff;font-weight:800}
.play-toolbar{align-items:flex-end;flex-wrap:wrap}.play-status-tabs{margin:0}.play-status-tabs button{display:inline-flex;align-items:center;gap:7px}.play-status-tabs small{display:inline-flex;min-width:20px;justify-content:center;color:#666;font-size:10px}.play-status-tabs .active small{color:#ccc}@media(max-width:800px){.play-toolbar .play-status-tabs,.play-toolbar .toolbar-controls{width:100%}.play-session-row>summary{grid-template-columns:52px 1fr auto}.play-session-row>summary small{grid-column:1/-1}.play-session-row>summary em{grid-column:3}.play-session-detail{grid-template-columns:1fr;padding-left:12px}.play-session-detail button{justify-self:start}}
.record-share-button{margin-left:auto;min-height:42px;padding:0 16px;border:1px solid #111;color:#fff;background:#111;font-weight:800;white-space:nowrap}.record-share-button:hover{color:#111;background:#fff}.overview-books{margin-top:28px}.overview-books>header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.overview-books>header h3{margin:0;font-size:20px}.overview-books .library-list{background:#fff}#owned-library-list .owned-library{margin-bottom:0}@media(max-width:800px){.records-profile{flex-wrap:wrap}.record-share-button{margin-left:0}.overview-books>header{align-items:center}}
.overview-summary{grid-template-columns:auto minmax(110px,.55fr) minmax(180px,1fr) minmax(170px,1.1fr)}.overview-summary>div b{font-size:21px}@media(max-width:800px){.overview-summary{grid-template-columns:auto 1fr}.overview-summary>div:last-child{grid-column:1/-1}}@media(max-width:480px){.overview-summary{grid-template-columns:1fr 1fr}.overview-summary>div{grid-column:1/-1}}

/* Curated preference archive: calm section colors and lightweight orientation cues. */
.overview-owned-library{margin-top:28px}
#preferences #preference-tabs{position:sticky;top:61px;z-index:19;margin:-12px 0 16px;padding:12px 0;background:rgba(255,255,255,.97);border-bottom:1px solid #ddd}
#preferences .preference-section>header{position:sticky;top:116px;z-index:18;box-shadow:0 5px 12px rgba(0,0,0,.06)}
.session-tendency-board{display:grid;gap:22px;background:#f7f7f7}
.session-tendency-section{--tag-accent:#555;border:1px solid #d8d8d8;background:#fff}
.session-tendency-section.tone-blue{--tag-accent:#316f9f}.session-tendency-section.tone-violet{--tag-accent:#72559b}.session-tendency-section.tone-green{--tag-accent:#397654}.session-tendency-section.tone-orange{--tag-accent:#9b6427}.session-tendency-section.tone-pink{--tag-accent:#9b5062}
.session-tendency-section>h4{position:sticky;top:174px;z-index:3;margin:0;padding:12px 16px;border-bottom:1px solid #c9c9c9;background:#f3f3f3;font-size:14px;letter-spacing:.02em}
.session-tendency-section>.session-tendency-row,.session-tendency-section>div>.session-tendency-row{border-left:4px solid transparent;background:#fff;transition:background-color .12s ease,border-color .12s ease}
.session-tendency-section>div>.session-tendency-row:hover,.session-tendency-section>div>.session-tendency-row:focus-within{border-left-color:#111;background:#fafafa}
.session-tendency-row>strong{align-self:stretch;display:flex;align-items:center;background:#f4f4f4;word-break:keep-all}
.session-tendency-row>div{align-items:stretch}
.session-tendency-row .sheet-choice{border-color:#d2d2d2;background:#fff}
.session-tendency-row .sheet-choice i{color:var(--tag-accent)}
.genre-cluster>strong{background:#f4f4f4;font-size:14px}
.genre-cluster .sheet-choice{border-color:#d2d2d2;background:#fff}
.tone-violet .genre-cluster:nth-child(1){--tag-accent:#bf5264}.tone-violet .genre-cluster:nth-child(2){--tag-accent:#8a5bb1}.tone-violet .genre-cluster:nth-child(3){--tag-accent:#aa742f}.tone-violet .genre-cluster:nth-child(4){--tag-accent:#397da3}.tone-violet .genre-cluster:nth-child(5){--tag-accent:#4c8765}.tone-violet .genre-cluster:nth-child(6){--tag-accent:#9a4b46}
.session-time-row .session-stat{min-width:130px;border:1px solid #d6d6d6;background:#fff}
@media(prefers-reduced-motion:reduce){.session-tendency-section>div>.session-tendency-row{transition:none}}
@media(max-width:800px){#preferences #preference-tabs{top:53px}#preferences .preference-section>header{top:105px}.session-tendency-section>h4{top:161px}.session-tendency-board{gap:14px}.session-tendency-row>strong{align-items:flex-start}.genre-cluster>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.genre-cluster>div{grid-template-columns:1fr}.session-tendency-section>h4{top:156px}}

/* Keep the monochrome structure legible; color belongs to selected markers. */
.owned-library>header h3{color:#fff}.owned-library>header span{color:#ccc}
.overview-summary{grid-template-columns:auto minmax(130px,.65fr) 1fr 1.4fr}
.rule-role-ratio{display:grid!important;grid-template-columns:minmax(110px,1fr) auto auto;align-items:center;gap:9px;color:#666;font-size:11px;font-weight:600}
.record-more[hidden]{display:none!important}
.rule-role-ratio i{position:relative;display:block;height:6px;overflow:hidden;background:transparent}
.rule-role-ratio i::before{content:"";position:absolute;inset:0 auto 0 0;width:max(4px,var(--rule-width));background:#111}
.rule-role-ratio em{font-style:normal;white-space:nowrap}
.rule-role-ratio em b{color:#111;font-variant-numeric:tabular-nums}

/* Only the navigation layers stay fixed. Inner card headings must not cover content. */
.trpg-records-nav{top:52px}
#preferences #preference-tabs{top:113px}
#preferences .preference-section>header,.session-tendency-section>h4{position:static;box-shadow:none}
@media(max-width:800px){.trpg-records-nav{top:0}#preferences #preference-tabs{top:53px}.overview-summary{grid-template-columns:auto 1fr}.rule-role-ratio{grid-template-columns:minmax(70px,1fr) auto auto;gap:7px}}
@media(max-width:480px){.overview-summary{grid-template-columns:1fr 1fr}}

/* The page menu scrolls away. Only the current preference section title stays
   visible, so it never competes with the navigation for the same sticky slot. */
.trpg-records-nav{position:static;top:auto;z-index:auto;background:#fff}
.record-view{scroll-margin-top:80px}
#preferences #preference-tabs{position:static;top:auto;z-index:auto;margin:0 0 16px;padding:0 0 12px;background:#fff}
#preferences .preference-section>header{position:sticky;top:0;z-index:18;box-shadow:0 5px 12px rgba(0,0,0,.06)}
.session-tendency-section>h4{position:static}
@media(max-width:800px){.record-view{scroll-margin-top:64px}#preferences #preference-tabs{top:auto}#preferences .preference-section>header{top:0}}

/* Keep role totals readable on narrow screens. */
.rule-row>strong{white-space:nowrap}
@media(max-width:480px){.rule-row{grid-template-columns:minmax(0,1fr) auto;column-gap:12px}}

/* Reuse the main calendar editor without rendering its duplicate mini calendar. */
.trpg-calendar-editor-host{position:absolute;width:0;height:0;overflow:visible}
.trpg-calendar-editor-host>:not(.google-calendar-modal){display:none!important}
.timeline-day,.month-day{cursor:crosshair}
.timeline-event-wrap{position:absolute;left:4px;right:4px;z-index:2;min-height:36px}
.timeline-event-wrap .timeline-event{position:static;width:100%;height:100%;padding-right:31px;background:var(--event-color,#111)!important}
.timeline-event-decor{position:absolute;top:4px;right:4px;width:24px;height:24px;padding:0;border:1px solid rgba(255,255,255,.7);color:#fff;background:rgba(0,0,0,.45);font-weight:800;line-height:22px}
.month-event{display:grid;grid-template-columns:minmax(0,1fr) 25px;gap:2px}
.month-day .month-event button{min-height:27px}
.month-day .month-event-main{width:100%}
.month-day .month-event-decor{display:block;padding:0;border:1px solid #bbb;border-left:0;color:#111;background:#fff;text-align:center;font-weight:800}
.timeline-event:focus-visible,.timeline-event-decor:focus-visible,.month-event button:focus-visible{outline:2px solid #111;outline-offset:2px}
/* The recording flow separates the table, session, and progress without changing the site layout. */
#play-dialog{width:min(680px,calc(100vw - 24px));max-height:calc(100dvh - 140px);padding:0;margin:20px auto}
#play-form{padding:24px}
#play-form .play-form-heading{margin-bottom:24px}
#play-form .play-form-heading h2{margin:0 0 6px}
#play-form .play-form-heading p{color:#666;margin:0;font-size:13px}
#play-form .play-form-section{min-width:0;border:1px solid #d7d7d7;padding:18px;margin:0 0 24px}
#play-form .play-form-section>legend{font-size:15px;font-weight:700;padding:0 8px}
#play-form legend{position:static;width:auto;height:auto;overflow:visible;line-height:1.5;text-indent:0}
#play-form label{margin-bottom:14px}
#play-form small{font-weight:400;line-height:1.6;color:#666}
#play-form .play-group-field{background:none;border:0;padding:0;margin:0 0 12px}
#play-form #play-load-people,#play-form .play-team-people button{padding:8px 12px;border:1px solid #aaa;background:#fff;color:#111;font:inherit;cursor:pointer;margin:0 6px 8px 0}
#play-form #play-load-people:disabled,#play-form .play-team-people button:disabled{color:#777;background:#f4f4f4;cursor:default}
#play-form .play-team-people{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin-bottom:12px}
#play-form .play-team-people small{flex-basis:100%}
#play-form .play-form-hint{background:#f4f4f4;border-left:3px solid #111;padding:12px;font-size:13px;line-height:1.6;margin:0 0 16px}
#play-form [hidden]{display:none!important}
#play-form .dialog-actions{position:sticky;bottom:-24px;background:#fff;border-top:1px solid #ddd;padding:14px 0;margin-top:14px;z-index:2}
#play-form .dialog-actions .danger{margin-right:auto}
#play-form :is(input,select,textarea):focus-visible{outline:2px solid #111;outline-offset:2px}
@media(max-width:520px){#play-form{padding:16px}#play-form .play-form-section{padding:12px}#play-form .form-grid{grid-template-columns:1fr}#play-form .dialog-actions{bottom:-16px}}
