/* SKOR FC Captain Notebook v52.9 — isolated from the existing portal styles. */
body.viewer-mode .nav button[data-view="notebook"]{display:none!important}
.notebook-dashboard-prompt{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:18px;border-color:#d8bdc6;background:linear-gradient(135deg,#fff 0%,#fbf1f4 100%)}
.notebook-dashboard-prompt[hidden]{display:none!important}
.notebook-dashboard-prompt .btn{white-space:nowrap}

.notebook-hero{
  display:flex;align-items:flex-end;justify-content:space-between;gap:22px;
  margin-bottom:18px;padding:26px;border-radius:20px;color:#fff;
  background:
    radial-gradient(circle at 85% 0,rgba(255,255,255,.12),transparent 34%),
    linear-gradient(135deg,#17191f 0%,#5b112c 72%,#801a3d 100%);
  box-shadow:0 16px 38px rgba(42,14,25,.18)
}
.notebook-hero h2{margin:8px 0 7px;font-size:clamp(1.65rem,3vw,2.35rem);letter-spacing:-.04em}
.notebook-hero p{max-width:730px;margin:0;color:#eee1e6;line-height:1.55;font-size:.88rem}
.notebook-kicker{font-size:.63rem;font-weight:950;letter-spacing:.16em;color:#e9c9d3}
.notebook-hero-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.notebook-hero .btn-light{background:#fff;color:#501129;border-color:#fff}
.notebook-hero .btn-primary{background:#801a3d;border-color:#a94e6d}

.notebook-setup{display:flex;align-items:flex-start;gap:8px;flex-direction:column;margin:0 0 18px;padding:13px 15px;border:1px solid #e6c98c;border-radius:12px;background:#fff7e5;color:#6d531f;font-size:.76rem;line-height:1.45}
.notebook-setup[hidden]{display:none!important}
.notebook-setup strong{font-size:.82rem}
.notebook-metrics{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:18px}
.notebook-metrics .metric strong{font-size:1.55rem}
.notebook-metrics .metric:last-child strong{font-size:1rem;line-height:1.25}

.notebook-top-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:18px;align-items:start}
.notebook-compose-panel,.notebook-feed-panel{min-width:0}
.notebook-compose-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.notebook-import-toggle{padding:7px 10px;font-size:.62rem}
.notebook-import-fields{display:grid;gap:11px;border:1px solid #d9bcc7;border-radius:13px;background:#fff8fa;padding:12px}
.notebook-import-fields[hidden],.notebook-import-ai[hidden]{display:none!important}
.notebook-import-banner{display:grid;gap:3px;border-left:3px solid #8a2948;padding-left:10px;color:#4b3039;font-size:.65rem;line-height:1.45}
.notebook-import-banner strong{color:#711934;font-size:.72rem}
.notebook-import-fields label{display:block;margin-bottom:5px;font-size:.68rem;font-weight:900;color:#363940}
.notebook-import-fields input,.notebook-import-fields select{width:100%}
.notebook-import-ai{display:flex;align-items:center;gap:10px;border:1px dashed #d8c5cc;border-radius:11px;background:#fcfafb;padding:10px}
.notebook-import-ai span{color:#6f737a;font-size:.61rem;line-height:1.4}
.notebook-import-ai .btn{flex:0 0 auto;padding:7px 10px;font-size:.62rem}
.notebook-whatsapp-batch{display:grid;gap:12px;margin-top:14px;border:1px solid #d9bcc7;border-radius:14px;background:#fffafb;padding:13px}
.notebook-whatsapp-batch[hidden],.notebook-whatsapp-review[hidden]{display:none!important}
.notebook-whatsapp-batch label{display:block;margin-bottom:5px;font-size:.68rem;font-weight:900;color:#363940}
.notebook-whatsapp-batch textarea,.notebook-whatsapp-batch select,.notebook-whatsapp-batch input{width:100%}
.notebook-whatsapp-batch>div>small{display:block;margin-top:5px;color:#767b82;font-size:.58rem;line-height:1.4}
.notebook-whatsapp-parse-actions{display:flex;gap:8px;flex-wrap:wrap}
.notebook-whatsapp-review{display:grid;gap:12px;padding-top:12px;border-top:1px solid #e4d6db}
.notebook-whatsapp-review-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:14px}
.notebook-whatsapp-review-toolbar>div:first-child{display:grid;gap:3px;max-width:520px}
.notebook-whatsapp-review-toolbar strong{font-size:.75rem;color:#35383e}
.notebook-whatsapp-review-toolbar span{font-size:.59rem;line-height:1.4;color:#747980}
.notebook-whatsapp-review-controls{display:grid;grid-template-columns:minmax(120px,1fr) auto auto;align-items:end;gap:6px;min-width:355px}
.notebook-whatsapp-review-controls label{grid-column:1/-1;margin:0}
.notebook-whatsapp-review-controls .btn{padding:7px 8px;font-size:.57rem;white-space:nowrap}
.notebook-whatsapp-review-list{display:grid;gap:11px;max-height:780px;overflow:auto;padding-right:3px}
.notebook-whatsapp-review-group{overflow:hidden;border:1px solid #dfe2e6;border-radius:12px;background:#fff}
.notebook-whatsapp-review-group-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;background:#f5f7f9;border-bottom:1px solid #e4e6e9}
.notebook-whatsapp-review-group-head strong{font-size:.7rem;color:#333941}
.notebook-whatsapp-review-group-head span{font-size:.55rem;color:#777d85}
.notebook-whatsapp-review-messages{display:grid;gap:8px;padding:9px;background:#fbfcfd}
.notebook-whatsapp-review-message{display:grid;gap:8px;border:1px solid #dfe2e6;border-radius:11px;background:#fff;padding:10px;transition:.16s ease}
.notebook-whatsapp-review-message.excluded{opacity:.55;background:#f5f5f5}
.notebook-whatsapp-review-message-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.notebook-whatsapp-include{display:flex!important;align-items:center;gap:7px;margin:0!important;color:#6c1733!important;font-size:.66rem!important}
.notebook-whatsapp-include input{width:auto!important}
.notebook-whatsapp-sequence{font-size:.55rem;color:#868b92;font-weight:850}
.notebook-whatsapp-message-fields{display:grid;grid-template-columns:minmax(125px,.7fr) minmax(170px,1fr) minmax(180px,1.15fr);gap:7px}
.notebook-whatsapp-message-fields label{font-size:.58rem}
.notebook-whatsapp-message-fields input,.notebook-whatsapp-message-fields select{font-size:.64rem;padding:7px}
.notebook-whatsapp-message-body{min-height:76px!important;font-size:.68rem;line-height:1.45;resize:vertical}
.notebook-whatsapp-media-prompt{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px dashed #d6c7cc;border-radius:9px;background:#fcfafb;padding:8px}
.notebook-whatsapp-media-prompt.flagged{border-color:#be8da0;background:#fff7fa}
.notebook-whatsapp-media-prompt>div{display:grid;gap:2px;color:#626870;font-size:.58rem;line-height:1.35}
.notebook-whatsapp-media-prompt strong{color:#6f1735;font-size:.63rem}
.notebook-whatsapp-file-label{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 auto;margin:0!important;border:1px solid #d7c1c9;border-radius:8px;background:#fff;color:#751a38!important;padding:6px 8px;cursor:pointer;font-size:.57rem!important;font-weight:900}
.notebook-whatsapp-file-label input{position:absolute;width:1px!important;height:1px;opacity:0;pointer-events:none}
.notebook-whatsapp-files{display:flex;gap:7px;flex-wrap:wrap}
.notebook-whatsapp-file{display:grid;grid-template-columns:45px minmax(0,1fr) auto;align-items:center;gap:7px;max-width:260px;border:1px solid #e0e2e5;border-radius:9px;background:#fff;padding:6px}
.notebook-whatsapp-file img{width:45px;height:42px;object-fit:cover;border-radius:6px;background:#eee}
.notebook-whatsapp-file span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#565c64;font-size:.55rem}
.notebook-whatsapp-file button{border:0;background:transparent;color:#8e2948;cursor:pointer;font-size:.56rem;font-weight:900}
.notebook-whatsapp-import-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:4px}
.notebook-whatsapp-import-footer .form-status{flex:1}
.notebook-name-check-note{border-left:3px solid #8797ad;padding:6px 0 6px 9px;color:#68717c;font-size:.59rem;line-height:1.4}
.notebook-form-footer,.notebook-debrief-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.notebook-form-footer .form-status,.notebook-debrief-actions .form-status{flex:1;min-width:180px}
.notebook-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.notebook-panel-head select{max-width:170px}
.notebook-feed{display:grid;gap:10px;max-height:660px;overflow:auto;padding-right:3px}
.notebook-note{border:1px solid #e2dadd;border-radius:13px;background:#fff;padding:13px}
.notebook-note.private{background:#fcfaf6;border-color:#e7dfcf}
.notebook-note-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.notebook-note-title{min-width:0}
.notebook-note-title strong{display:block;font-size:.82rem;color:#202329;line-height:1.3}
.notebook-note-meta{display:flex;gap:5px;flex-wrap:wrap;margin-top:6px}
.notebook-note-tag{display:inline-flex;align-items:center;border-radius:999px;background:#f0eaec;color:#771a38;padding:3px 7px;font-size:.55rem;font-weight:900;letter-spacing:.03em;text-transform:uppercase}
.notebook-note-tag.private{background:#f4eddf;color:#765a27}
.notebook-note-tag.whatsapp{background:#e2f3e9;color:#276246}
.notebook-note-tag.ai-organized{background:#e7edf7;color:#425a7b}
.notebook-note-body{white-space:pre-wrap;margin-top:10px;color:#41464d;font-size:.73rem;line-height:1.5}
.notebook-note-context{margin-top:9px;color:#777c83;font-size:.61rem;line-height:1.35}
.notebook-note-delete{border:0;background:transparent;color:#9a556a;cursor:pointer;font-weight:900;font-size:.68rem;padding:3px}
.notebook-empty{border:1px dashed #d9dadd;border-radius:12px;padding:22px;text-align:center;color:#777b82;font-size:.75rem}
.notebook-notes-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:4px 1px;color:#5f2639;font-size:.65rem;font-weight:950;text-transform:uppercase;letter-spacing:.06em}
.notebook-whatsapp-game-group{overflow:hidden;border:1px solid #dce2df;border-radius:13px;background:#fff}
.notebook-whatsapp-game-group summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;padding:12px 14px;background:#f6faf8}
.notebook-whatsapp-game-group summary::-webkit-details-marker{display:none}
.notebook-whatsapp-game-group summary::after{content:"+";display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px;border-radius:7px;background:#dfede5;color:#356149;font-size:.8rem;font-weight:950}
.notebook-whatsapp-game-group[open] summary::after{content:"−"}
.notebook-whatsapp-game-heading{min-width:0}
.notebook-whatsapp-game-heading strong{display:block;color:#2f3b34;font-size:.76rem}
.notebook-whatsapp-game-heading span{display:block;margin-top:3px;color:#758078;font-size:.58rem}
.notebook-whatsapp-threads{display:grid;gap:10px;padding:10px;border-top:1px solid #e3e9e5;background:#fbfdfc}
.notebook-whatsapp-thread{overflow:hidden;border:1px solid #dde3df;border-radius:11px;background:#fff}
.notebook-whatsapp-thread-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;background:#f6f8f7;color:#667069;font-size:.57rem;font-weight:850}
.notebook-whatsapp-thread-messages{display:grid}
.notebook-whatsapp-message{display:grid;gap:6px;padding:10px;border-top:1px solid #ecefed}
.notebook-whatsapp-message:first-child{border-top:0}
.notebook-whatsapp-message-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.notebook-whatsapp-message-author{color:#2f684a;font-size:.69rem;font-weight:950}
.notebook-whatsapp-message-date{color:#80868d;font-size:.55rem}
.notebook-whatsapp-message-body{white-space:pre-wrap;color:#41484f;font-size:.69rem;line-height:1.48}
.notebook-whatsapp-message-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.notebook-whatsapp-image-list{display:flex;gap:7px;flex-wrap:wrap;margin-top:2px}
.notebook-whatsapp-image{display:grid;gap:4px;width:116px;color:#6c737a;font-size:.51rem;text-decoration:none}
.notebook-whatsapp-image img{width:116px;height:86px;object-fit:cover;border:1px solid #dfe2e4;border-radius:8px;background:#eef0f1}
.notebook-whatsapp-image span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.notebook-pregame-panel{margin-top:18px;border-color:#d9c4cc;background:linear-gradient(180deg,#fff 0%,#fdfafb 100%)}
.notebook-pregame-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}
.notebook-ai-badge{display:inline-flex;align-items:center;white-space:nowrap;border:1px solid #d9bcc7;border-radius:999px;background:#f8eaf0;color:#781b3a;padding:6px 9px;font-size:.57rem;font-weight:950;text-transform:uppercase;letter-spacing:.04em}
.notebook-pregame-grid{display:grid;grid-template-columns:minmax(280px,.76fr) minmax(0,1.24fr);gap:18px;align-items:start}
.notebook-pregame-controls{display:grid;gap:11px;border:1px solid #e2dadd;border-radius:14px;background:#fff;padding:14px}
.notebook-pregame-controls label,.notebook-pregame-output label{display:block;margin-bottom:6px;font-size:.68rem;font-weight:900;color:#363940}
.notebook-pregame-controls input,.notebook-pregame-controls select,.notebook-pregame-controls textarea{width:100%}
.notebook-pregame-controls .btn{justify-self:start}
.notebook-player-inputs{display:grid;gap:7px;border:1px solid #d8dfe8;border-radius:11px;background:#f8fafc;padding:10px}
.notebook-player-inputs>label{margin:0}
.notebook-player-input-summary{display:grid;gap:3px;color:#68707a;font-size:.61rem;line-height:1.4}
.notebook-player-input-summary>strong{color:#343a43;font-size:.69rem}
.notebook-player-input-visibility{display:inline-flex;margin-left:6px;border-radius:999px;background:#e7f0ea;color:#356249;padding:2px 5px;font-size:.49rem;font-weight:900;text-transform:uppercase}
.notebook-player-input-visibility.private{background:#f4e5e9;color:#8a2942}
.notebook-ai-note{border-left:3px solid #b06980;padding:7px 0 7px 10px;color:#71757c;font-size:.62rem;line-height:1.45}
.notebook-pregame-output{min-width:0;border:1px solid #e2dadd;border-radius:14px;background:#fff;padding:14px}
.notebook-pregame-empty{display:grid;place-items:center;min-height:280px;border:1px dashed #d7c9ce;border-radius:12px;background:#fcfafb;color:#777b82;text-align:center;padding:24px;font-size:.75rem;line-height:1.5}
.notebook-pregame-empty[hidden],#notebookPregameResult[hidden]{display:none!important}
.notebook-pregame-result-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.notebook-pregame-result-head input{min-width:0;flex:1;font-size:.9rem;font-weight:950;color:#3f1123;background:#fff8fa;border-color:#dfc6cf}
.notebook-pregame-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.notebook-pregame-actions .btn{padding:7px 9px;font-size:.63rem}
.notebook-pregame-output textarea{width:100%;resize:vertical;background:#fff}
.notebook-pregame-bullets{display:grid;gap:8px;margin:12px 0}
.notebook-pregame-bullet{display:grid;grid-template-columns:auto minmax(0,1fr);gap:9px;align-items:start;border:1px solid #e3e4e7;border-radius:11px;background:#fbfbfc;padding:10px}
.notebook-pregame-bullet-number{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:#801a3d;color:#fff;font-size:.62rem;font-weight:950}
.notebook-pregame-bullet-main{min-width:0}
.notebook-pregame-bullet-meta{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:6px}
.notebook-pregame-bullet-tag{display:inline-flex;border-radius:999px;background:#efe8eb;color:#711934;padding:3px 6px;font-size:.52rem;font-weight:950;text-transform:uppercase;letter-spacing:.035em}
.notebook-pregame-bullet-source{display:inline-flex;border-radius:999px;background:#edf2f7;color:#435368;padding:3px 6px;font-size:.52rem;font-weight:850}
.notebook-pregame-bullet textarea{min-height:62px;font-size:.69rem;line-height:1.45}

.notebook-ai-library-panel{margin-top:18px;border-color:#d8dfe8}
.notebook-library-count{display:inline-flex;align-items:center;white-space:nowrap;border-radius:999px;background:#edf2f7;color:#435368;padding:6px 9px;font-size:.57rem;font-weight:950;text-transform:uppercase;letter-spacing:.04em}
.notebook-ai-library{display:grid;gap:9px}
.notebook-ai-game-group{overflow:hidden;border:1px solid #dde1e7;border-radius:13px;background:#fff}
.notebook-ai-game-group summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;padding:12px 14px;background:#f8fafc}
.notebook-ai-game-group summary::-webkit-details-marker{display:none}
.notebook-ai-game-group summary::after{content:"+";display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px;border-radius:7px;background:#e7ebf1;color:#465466;font-size:.8rem;font-weight:950}
.notebook-ai-game-group[open] summary::after{content:"−"}
.notebook-ai-game-title{min-width:0}
.notebook-ai-game-title strong{display:block;color:#2f343b;font-size:.76rem}
.notebook-ai-game-title span{display:block;margin-top:3px;color:#777e88;font-size:.58rem}
.notebook-ai-game-items{display:grid;gap:8px;padding:10px;border-top:1px solid #e7e9ed;background:#fbfcfd}
.notebook-player-input-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;border:1px solid #dfe4eb;border-radius:10px;background:#fff;padding:10px}
.notebook-player-input-main{min-width:0}
.notebook-player-input-item strong{color:#343a43;font-size:.68rem}
.notebook-player-input-item p{margin:6px 0 0;color:#555d67;font-size:.66rem;line-height:1.45;white-space:pre-wrap}
.notebook-player-input-meta{margin-top:5px;color:#777e88;font-size:.55rem}
.notebook-player-input-remove{align-self:start;border:1px solid #e1ccd3;border-radius:8px;background:#fff8fa;color:#842545;cursor:pointer;padding:6px 8px;font-size:.56rem;font-weight:900}
.notebook-player-input-remove:disabled{cursor:wait;opacity:.65}

.notebook-debrief-panel{margin-top:18px}
.notebook-debrief-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:15px}
.notebook-match-control{min-width:min(100%,330px)}
.notebook-match-control label,.notebook-player-search label{display:block;margin-bottom:5px}
.notebook-match-control select{width:100%}
.notebook-debrief-empty{border:1px dashed #d4d6da;border-radius:13px;padding:25px;text-align:center;background:#fafafa;color:#6d7279;font-size:.78rem}
.notebook-draft-banner{display:inline-flex;align-items:center;margin-bottom:13px;padding:5px 9px;border-radius:999px;background:#f7e8ed;color:#7b1939;font-size:.61rem;font-weight:950;text-transform:uppercase;letter-spacing:.06em}
.notebook-draft-banner.complete{background:#e5f1e9;color:#315f4a}
.notebook-plan-context{display:grid;gap:11px;margin-bottom:14px;border:1px solid #dac5cc;border-radius:13px;background:linear-gradient(135deg,#fffafb,#f7f4f5);padding:13px}.notebook-plan-context[hidden]{display:none!important}.notebook-plan-context-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.notebook-plan-context-head>div{display:grid;gap:3px}.notebook-plan-context-head strong{font-size:.78rem;color:#53172b}.notebook-plan-context-head span{font-size:.61rem;color:#70747a;line-height:1.4}.notebook-plan-context-head .btn{flex:0 0 auto;padding:7px 10px;font-size:.62rem}.notebook-plan-context-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.notebook-plan-context-grid>div{display:grid;gap:3px;border:1px solid #e1dcde;border-radius:10px;background:#fff;padding:10px}.notebook-plan-context-grid span{font-size:.54rem;font-weight:950;letter-spacing:.08em;color:#822241}.notebook-plan-context-grid strong{font-size:.72rem;color:#34373c}.notebook-plan-context-grid small{font-size:.58rem;line-height:1.4;color:#73777e}
.notebook-question-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.notebook-question{border:1px solid #e2e3e6;border-radius:12px;background:#fbfbfc;padding:12px}
.notebook-question label{display:block;margin-bottom:7px;font-size:.72rem;font-weight:950;color:#31353b}
.notebook-question textarea{width:100%;min-height:105px;resize:vertical;background:#fff}
.notebook-question.notebook-additional{margin-top:12px}
.notebook-question.notebook-additional textarea{min-height:82px}
.notebook-player-review-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:22px 0 12px;padding-top:18px;border-top:1px solid #e5e6e8}
.notebook-player-review-head h3{margin:0 0 3px;font-size:1rem}
.notebook-player-search{min-width:240px}
.notebook-player-search input{width:100%}
.notebook-player-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.notebook-player-card{border:1px solid #dedfe2;border-radius:12px;background:#fff;padding:11px;min-width:0}
.notebook-player-card.present{border-color:#bfd6c8;background:#fbfdfc}
.notebook-player-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.notebook-player-identity{display:flex;align-items:center;gap:8px;min-width:0}
.notebook-player-number{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:9px;background:#801a3d;color:#fff;font-size:.68rem;font-weight:950}
.notebook-player-identity strong{display:block;font-size:.75rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.notebook-player-identity small{display:block;margin-top:2px;color:#7c8086;font-size:.58rem}
.notebook-present-badge{font-size:.52rem;font-weight:950;color:#356249;background:#e5f1e9;border-radius:999px;padding:3px 6px;text-transform:uppercase}
.notebook-player-tags{display:flex;gap:5px;flex-wrap:wrap;margin-top:9px}
.notebook-player-tag{border:1px solid #dadce0;border-radius:999px;background:#f8f8f9;color:#555a61;padding:5px 7px;cursor:pointer;font-size:.56rem;font-weight:850}
.notebook-player-tag.active{background:#801a3d;border-color:#801a3d;color:#fff}
.notebook-player-note{width:100%;min-height:62px;margin-top:8px;font-size:.67rem;resize:vertical}
.notebook-debrief-actions{margin-top:16px;padding-top:15px;border-top:1px solid #e5e6e8}
.notebook-debrief-actions>div{display:flex;gap:8px;flex-wrap:wrap}

.notebook-history-panel{margin-top:18px}
.notebook-history{display:grid;gap:9px}
.notebook-history-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #e1e2e5;border-radius:12px;background:#fff;padding:12px}
.notebook-history-item strong{display:block;font-size:.78rem}
.notebook-history-meta{margin-top:4px;color:#777c83;font-size:.61rem}
.notebook-history-summary{margin-top:7px;color:#444950;font-size:.68rem;line-height:1.4}
.notebook-history-open{white-space:nowrap}

.notebook-alias-dialog{width:min(92vw,680px);max-height:88vh;margin:auto;border:0;border-radius:18px;background:transparent;padding:0;box-shadow:0 24px 70px rgba(22,11,16,.34)}
.notebook-alias-dialog::backdrop{background:rgba(18,20,25,.68);backdrop-filter:blur(2px)}
.notebook-alias-dialog-card{display:grid;gap:14px;background:#fff;border:1px solid #dfcbd2;border-radius:18px;padding:20px}
.notebook-alias-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.notebook-alias-dialog-head h2{margin:9px 0 0;font-size:1.15rem;color:#2c1820}
.notebook-alias-close{border:0;background:transparent;color:#7d5160;cursor:pointer;font-size:1.55rem;line-height:1;padding:2px 5px}
.notebook-alias-intro{margin:0;color:#5d6269;font-size:.72rem;line-height:1.5}
.notebook-alias-list{display:grid;gap:9px;max-height:44vh;overflow:auto}
.notebook-alias-row{display:grid;grid-template-columns:minmax(0,.9fr) minmax(190px,1.1fr);gap:10px;align-items:center;border:1px solid #e1d9dc;border-radius:12px;background:#fcfafb;padding:11px}
.notebook-alias-mention strong{display:block;color:#701a36;font-size:.78rem}
.notebook-alias-mention small{display:block;margin-top:4px;color:#72777e;font-size:.58rem;line-height:1.35}
.notebook-alias-row select{width:100%}
.notebook-alias-privacy{border-left:3px solid #8797ad;padding:7px 0 7px 10px;color:#68717c;font-size:.6rem;line-height:1.45}
.notebook-alias-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}

@media(max-width:650px){
  .notebook-alias-dialog-card{padding:15px}
  .notebook-alias-row{grid-template-columns:1fr}
  .notebook-alias-actions .btn{flex:1}
}

@media(max-width:1050px){
  .notebook-top-grid{grid-template-columns:1fr}
  .notebook-pregame-grid{grid-template-columns:1fr}
  .notebook-feed{max-height:520px}
}
@media(max-width:820px){
  .notebook-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .notebook-question-grid,.notebook-player-grid{grid-template-columns:1fr}
  .notebook-plan-context-head{align-items:stretch;flex-direction:column}.notebook-plan-context-head .btn{width:100%}.notebook-plan-context-grid{grid-template-columns:1fr}
  .notebook-debrief-head,.notebook-player-review-head,.notebook-pregame-head{align-items:stretch;flex-direction:column}
  .notebook-match-control,.notebook-player-search{min-width:0;width:100%}
}
@media(max-width:650px){
  .notebook-dashboard-prompt{align-items:stretch;flex-direction:column}.notebook-dashboard-prompt .btn{width:100%}
  .notebook-hero{align-items:stretch;flex-direction:column;padding:19px;border-radius:16px}
  .notebook-hero-actions{justify-content:stretch}
  .notebook-hero-actions .btn{flex:1}
  .notebook-metrics{gap:8px}
  .notebook-metrics .metric{padding:12px}
  .notebook-metrics .metric strong{font-size:1.2rem}
  .notebook-panel-head{align-items:stretch;flex-direction:column}
  .notebook-compose-head{align-items:stretch;flex-direction:column}.notebook-import-toggle{width:100%}
  .notebook-import-ai{align-items:stretch;flex-direction:column}.notebook-import-ai .btn{width:100%}
  .notebook-whatsapp-review-toolbar,.notebook-whatsapp-import-footer{align-items:stretch;flex-direction:column}
  .notebook-whatsapp-review-controls{grid-template-columns:1fr 1fr;min-width:0;width:100%}
  .notebook-whatsapp-review-controls label,.notebook-whatsapp-review-controls select{grid-column:1/-1}
  .notebook-whatsapp-message-fields{grid-template-columns:1fr}
  .notebook-whatsapp-media-prompt{align-items:stretch;flex-direction:column}.notebook-whatsapp-file-label{width:100%}
  .notebook-whatsapp-parse-actions .btn,.notebook-whatsapp-import-footer .btn{width:100%}
  .notebook-pregame-result-head{align-items:stretch;flex-direction:column}
  .notebook-pregame-actions{justify-content:stretch}.notebook-pregame-actions .btn{flex:1}
  .notebook-panel-head select{max-width:none;width:100%}
  .notebook-question{padding:10px}
  .notebook-history-item{grid-template-columns:1fr}
  .notebook-history-open{justify-self:start}
  .notebook-player-input-item{grid-template-columns:1fr}
  .notebook-player-input-remove{justify-self:start}
  .notebook-form-footer,.notebook-debrief-actions{align-items:stretch;flex-direction:column}
  .notebook-form-footer .btn,.notebook-debrief-actions>div,.notebook-debrief-actions .btn{width:100%}
  .notebook-debrief-actions>div{display:grid}
}
