/* Prefer the actual bold italic face when available on the viewer's device. */
@font-face {
  font-family:"PlayAIRS Tw Cen";
  src:local("Tw Cen MT Bold Italic"),local("TwCenMT-BoldItalic");
  font-style:italic;
  font-weight:700;
  font-display:swap;
}
/* PlayAIRS 1.0 — approved white / flat-cartoon direction. All rules are component scoped. */
#playairs-workshop { --paper:#fff; --panel:#fff; --ink:#273335; --muted:#687576; --line:#e8eded; --soft:#f6f8f7; --accent:#183e3c; --accent-bg:#edf5ff; --warn:#97631b; --danger:#b94442; color-scheme:light; font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif; }
#playairs-workshop main { padding:20px 32px 0; }
#playairs-workshop button { border-radius:10px; transition:background-color 160ms ease,border-color 160ms ease,box-shadow 160ms ease,transform 160ms ease; }
#playairs-workshop button.primary { border-radius:24px; background:#183e3c; border-color:#183e3c; box-shadow:none; }
#playairs-workshop button.primary:hover:not(:disabled) { background:#24534c; }
#playairs-workshop button.primary:disabled { background:#e9edf3; border-color:#dce3ee; color:#738097; opacity:1; box-shadow:none; }
#playairs-workshop button:active:not(:disabled) { transform:translateY(1px); }
#playairs-workshop button:focus-visible, #playairs-workshop summary:focus-visible, #playairs-workshop a:focus-visible, #playairs-workshop textarea:focus-visible, #playairs-workshop input:focus-visible, #playairs-workshop select:focus-visible { outline:3px solid #3986ec; outline-offset:3px; }
#playairs-workshop input, #playairs-workshop textarea, #playairs-workshop select { border-color:#cfdaea; border-radius:10px; }
#playairs-workshop .table-heading { height:156px; margin-bottom:20px; position:relative; overflow:hidden; display:block; }
#playairs-workshop .hero-copy { position:relative; z-index:1; width:50%; height:100%; display:flex; flex-direction:column; justify-content:center; gap:14px; background:#fff; }
#playairs-workshop h1 { font-size:clamp(34px,3.3cqw,54px); line-height:1.2; font-weight:700; letter-spacing:-1.5px; color:#172b38; }
#playairs-workshop .hero-lead { font-size:clamp(16px,1.35cqw,20px); font-weight:400; line-height:1.7; color:#697675; }
#playairs-workshop .title-tag { display:inline-block; margin-left:12px; font-size:.38em; font-weight:400; line-height:1; vertical-align:super; letter-spacing:1px; white-space:nowrap; color:#4f6668; }
#playairs-workshop .hero-scene { position:absolute; right:-20px; inset-block:0; width:55%; background:none; mask-image:none; }
#playairs-workshop .hero-mascot { display:block; position:absolute; height:180px; width:180px; object-fit:contain; right:25%; bottom:-7px; }
#playairs-workshop .table-controls { padding:6px 0 14px; gap:12px 22px; border:0; min-height:56px; }
#playairs-workshop .mode-switch { background:#f5f7f6; border:0; border-radius:28px; padding:4px; }
#playairs-workshop .mode-switch button { border-radius:24px; min-height:36px; padding:7px 20px; font-weight:500; color:#667271; }
#playairs-workshop .mode-switch button[aria-pressed=true] { background:#fff; color:#183e3c; border-color:#e6ebe9; box-shadow:0 1px 4px #253d3210; }
#playairs-workshop #utility-slot { margin-left:auto; }
#playairs-workshop .top-actions { gap:9px; }
#playairs-workshop .clock { font-size:19px; font-weight:500; order:-1; color:#314547; }
#playairs-workshop .count-control { font-size:12px; }
#playairs-workshop .count-control select { border:0; padding:4px; font-weight:700; }
#playairs-workshop .tools summary { border:0; border-radius:20px; padding:8px 12px; background:#f5f7f6; font-weight:400; }
#playairs-workshop .details-content { background:#fff; border-color:var(--line); box-shadow:0 12px 32px #10234714; top:100%; }
#playairs-workshop .stage-rail { display:grid; grid-template-columns:170px minmax(0,1fr); grid-template-rows:6px auto; column-gap:24px; row-gap:8px; padding:8px 0 12px; border:0; margin:0; }
#playairs-workshop .stage-progress-meta { grid-row:1/3; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; gap:0; margin:0; font-size:12px; }
#playairs-workshop .stage-progress-meter { grid-column:2; }
#playairs-workshop .stage-track { background:#edf1f0; height:5px; }
#playairs-workshop .stage-track>span { background:#299c86; transition:width 200ms ease; }
#playairs-workshop .stage-rail ol { grid-column:2; margin:0; }
#playairs-workshop .stage-rail li { color:#768683; font-size:11px; font-weight:400; }
#playairs-workshop .stage-rail li.current { color:#237a6c; font-weight:500; }
#playairs-workshop .stage-rail li.complete { color:#087e62; }
#playairs-workshop .drag-instruction { font-size:11px; min-height:27px; padding:2px 0 10px; color:#788581; }
#playairs-workshop .game-board { grid-template-columns:minmax(220px,.85fr) minmax(520px,2.35fr) minmax(278px,1.05fr); gap:20px; height:var(--board-height,calc(100dvh - 320px)); min-height:440px; }
#playairs-workshop .game-board>.panel { height:100%; min-height:0; border:0; border-radius:18px; box-shadow:none; overflow:hidden; background:#fafbfa; }
#playairs-workshop .game-board>.panel>.panel-header { min-height:56px; height:56px; padding:12px 16px 16px; border:0; background:#fff; }
#playairs-workshop .panel-header h2 { font-size:19px; font-weight:500; letter-spacing:.3px; }
#playairs-workshop .panel-header .pill { background:transparent; border:0; color:#788581; font-size:11px; font-weight:400; padding:0; }
#playairs-workshop .game-board>.panel>.panel-body { min-height:0; padding:12px 12px 16px; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }
#playairs-workshop .event-zone .panel-body { display:block; }
#playairs-workshop .event-slot { position:relative; overflow:hidden; min-height:104px; background:#f1f6f3; border:1px dashed #cbd9d3; border-radius:14px; gap:6px; padding:14px; }
#playairs-workshop .event-slot.occupied { text-align:left; align-items:flex-start; min-height:104px; border:1px solid transparent; background:#f0f5f2; }
#playairs-workshop .event-slot strong { font-size:16px; position:relative; z-index:1; font-weight:500; }
#playairs-workshop .event-description { font-size:13px; line-height:1.5; position:relative; z-index:1; }
#playairs-workshop .event-slot .kicker { font-size:11px; color:#627c71; position:relative; z-index:1; margin-bottom:4px; }
#playairs-workshop .card-shelf { margin-top:12px; }
#playairs-workshop .card-shelf>summary { font-size:12px; min-height:32px; padding:5px 0 9px; font-weight:400; color:#667772; }
#playairs-workshop .card-shelf>.help { display:none; }
#playairs-workshop .event-zone .scenario-hand { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:2px; }
#playairs-workshop .scenario-card { --scene-edge:#e5c46e; --scene-tint:#fffaf0; --scene-theme:#efcf78; --scene-ink:#886511; position:relative; isolation:isolate; overflow:hidden; display:flex; flex-direction:column; align-items:stretch; min-height:184px; padding:12px 12px 48px; gap:12px; border:1px solid var(--scene-edge); background:linear-gradient(180deg,#fff 65%,var(--scene-tint)); border-radius:14px; box-shadow:none; }
#playairs-workshop .scenario-card strong { position:relative; z-index:1; display:block; font-size:14px; line-height:1.5; font-weight:500; color:#2e3a37; }
#playairs-workshop .scenario-id { position:relative; z-index:1; font-size:11px; font-weight:500; line-height:18px; color:var(--scene-ink); letter-spacing:.6px; }
#playairs-workshop .level[data-level=橙色] { color:#a44c09; border-color:#f3c7a1; background:#fff0df; }
#playairs-workshop .level[data-level=红色] { color:#b13d43; border-color:#f5c5ca; background:#fff0f1; }
#playairs-workshop .scenario-card small { display:none; }
#playairs-workshop .scene-art { position:absolute; right:-6px; bottom:0; width:73%; height:100%; object-fit:contain; opacity:.28; pointer-events:none; }
#playairs-workshop .event-slot .scene-art { width:52%; opacity:.24; }
#playairs-workshop .scenario-card.on-table { border-color:var(--scene-ink); box-shadow:0 0 0 1px var(--scene-ink) inset; background:linear-gradient(180deg,#fff 60%,var(--scene-tint)); }
#playairs-workshop .source-details { margin-top:12px; font-size:12px; }
#playairs-workshop .live-zone>.panel-body { overflow:hidden!important; scrollbar-gutter:auto!important; }
#playairs-workshop .live-workspace { grid-template-columns:166px minmax(0,1fr); gap:28px; height:100%; min-height:0; align-items:stretch; }
#playairs-workshop .live-console { display:flex; flex-direction:column; gap:12px; min-height:0; overflow-y:auto; overscroll-behavior:contain; background:#f5f7f4; border:0; border-radius:18px; padding:16px 10px; scrollbar-width:thin; }
#playairs-workshop .companion-unit, #playairs-workshop .connection-console { margin-top:6px; }
#playairs-workshop .companion-body { gap:0; }
#playairs-workshop .workbench-heading { display:flex; align-items:center; justify-content:space-between; gap:6px; font-size:14px; margin:1px 1px 8px; }
#playairs-workshop .status-light { width:7px; height:7px; border-radius:50%; background:#0cb184; box-shadow:0 0 0 3px #e5f7ec; flex:none; }
#playairs-workshop .workbench-hint { font-size:11px; line-height:1.65; color:#718078; margin:0 1px 18px; }
#playairs-workshop .ports { gap:12px; }
#playairs-workshop .port { min-height:50px; padding:10px 8px; gap:7px; border-radius:13px; background:var(--port-bg); border:1px solid transparent; font-size:14px; font-weight:400; }
#playairs-workshop .port>span:nth-child(2) { flex:1; text-align:left; white-space:nowrap; }
#playairs-workshop .ui-icon { width:23px; height:23px; flex:none; display:block; }
#playairs-workshop .port .ui-icon { color:var(--port-color); width:22px; height:22px; }
#playairs-workshop #port-explain, #playairs-workshop [data-port=explain] { --port-color:#0c9f78; --port-bg:#e6f8ef; --port-border:#c9eade; }
#playairs-workshop #port-relate, #playairs-workshop [data-port=relate] { --port-color:#c58b17; --port-bg:#fff5e3; --port-border:#f2e0bd; }
#playairs-workshop #port-uncertain, #playairs-workshop [data-port=uncertain] { --port-color:#3284ed; --port-bg:#eaf3ff; --port-border:#cde0fb; }
#playairs-workshop #port-guide, #playairs-workshop [data-port=guide] { --port-color:#9363da; --port-bg:#f3eaff; --port-border:#e4d4fa; }
#playairs-workshop .port-dot { width:17px; height:17px; border:2px solid #526580; background:#fff; box-shadow:0 0 0 4px #ffffffb0; }
#playairs-workshop .port[aria-pressed=true] { background:var(--port-bg); border-color:var(--port-color); }
#playairs-workshop .port[aria-pressed=true] .port-dot { background:var(--port-color); border-color:#fff; box-shadow:0 0 0 2px var(--port-color); }
#playairs-workshop .connection-console { margin-top:8px; }
#playairs-workshop .connection-console>.primary { font-size:13px; min-height:40px; padding:9px 8px; }
#playairs-workshop .connection-details>summary { font-size:12px; min-height:30px; padding:6px 0; color:#5d716a; font-weight:400; }
#playairs-workshop .connection-console .actions button { flex:1; }
#playairs-workshop .connection-console .compact-details { margin-top:8px; }
#playairs-workshop .connection { font-size:12px; border:0; padding:8px 0; }
#playairs-workshop .chat-window { height:100%; min-height:0; display:flex; flex-direction:column; background:#fff; border:0; border-radius:18px; }
#playairs-workshop .chat-toolbar { flex:none; background:#fff; border:0; min-height:48px; padding:10px 14px; font-size:14px; }
#playairs-workshop .chat-toolbar button { border-color:transparent; color:#72847f; font-size:12px; }
#playairs-workshop .chat-scroll { flex:1; min-height:0; height:auto; padding:12px 14px 20px; scrollbar-width:thin; }
#playairs-workshop .chat-bubble { font-size:14px; line-height:1.85; padding:16px; border:0; background:#f5f7f6; border-radius:4px 15px 15px 15px; }
#playairs-workshop .chat-bubble>strong { font-size:14px; font-weight:500; margin-bottom:10px; }
#playairs-workshop .chat-bubble>small { color:#78857e; font-size:11px; line-height:1.7; margin-top:12px; }
#playairs-workshop .chat-sender { color:#697d75; font-size:12px; font-weight:400; margin-bottom:8px; }
#playairs-workshop .official>.chat-sender { color:#a46b10; }
#playairs-workshop .situation>.chat-sender { color:#aa5825; }
#playairs-workshop .chat-message.situation .chat-bubble { background:#fcf6ec; border:0; }
#playairs-workshop .chat-message.assistant>.chat-bubble { background:#edf7f1; border:0; color:#294b3e; }
#playairs-workshop .chat-message.player>.chat-bubble { background:#f2f2fa; border:0; }
#playairs-workshop .message-avatar { background:#eff9f4; border:1px solid #d0e7df; }
#playairs-workshop .target-tags { gap:5px; margin-top:10px; }
#playairs-workshop .target-tags>span { background:#edf3ee; font-size:11px; border-radius:6px; padding:3px 7px; }
#playairs-workshop .target-tags .muted { color:#6a7e9c; font-size:10px; }
#playairs-workshop .both-target { background:#f5f8f5; border:1px dashed #d8e3dc; color:#6b8174; border-radius:12px; font-size:12px; padding:10px; }
#playairs-workshop .board-wires path { stroke-width:2.5; opacity:.85; }
#playairs-workshop .chat-composer { flex:none; padding:12px 14px; border:0; background:#fff; }
#playairs-workshop .chat-composer>label { font-size:12px; margin-bottom:8px; color:#6d7d75; font-weight:400; }
#playairs-workshop .chat-composer textarea { min-height:54px; height:54px; max-height:96px; padding:9px 12px; resize:vertical; background:#f7f9f7; border-color:#e6ece7; }
#playairs-workshop .chat-composer-actions { margin-top:8px; }
#playairs-workshop .chat-composer-actions .help { font-size:11px; }
#playairs-workshop .chat-composer-actions button { min-height:32px; padding:4px 12px; font-size:12px; }
#playairs-workshop .speech-details { padding-bottom:8px; margin-bottom:14px; border:0; }
#playairs-workshop .speech-details>summary { min-height:30px; padding:3px 0; font-size:13px; font-weight:400; }
#playairs-workshop .speech-box p { font-size:12px; margin:7px 0; }
#playairs-workshop .speaker-list { gap:6px; margin:8px 0; }
#playairs-workshop .speaker { background:#f0f4f1; border:0; color:#6d7c73; font-size:11px; border-radius:8px; padding:3px 7px; }
#playairs-workshop .speaker.current { background:#e5f7ef; color:#08765c; border-color:#badfcc; }
#playairs-workshop .speaker.done { color:#667b98; }
#playairs-workshop .speech-box button { min-height:30px; font-size:11px; padding:4px 7px; }
#playairs-workshop .action-hand { gap:12px; }
#playairs-workshop .action-card { min-height:136px; background:#fff; border:1px solid #e9ede9; border-radius:14px; box-shadow:none; padding:12px 10px 16px; gap:10px; }
#playairs-workshop .card-letter { position:absolute; left:9px; top:9px; font-size:12px; line-height:22px; min-width:22px; padding:0 5px; border-radius:50%; background:#f0f3f1; color:#5b7064; font-weight:500; }
#playairs-workshop .action-art { display:block; width:100%; height:47px; flex:none; object-fit:contain; pointer-events:none; }
#playairs-workshop .action-symbol { display:flex; justify-content:center; align-items:center; color:#3b76ac; }
#playairs-workshop .action-symbol .ui-icon { width:37px; height:37px; padding:3px; background:#eef4fd; border-radius:10px; }
#playairs-workshop .action-copy { font-size:14px; font-weight:400; line-height:1.7; display:block; white-space:normal; overflow:visible; text-overflow:clip; }
#playairs-workshop .grip { font-size:10px; color:#8492a9; }
#playairs-workshop .public-seats { margin:16px 0 10px; gap:6px; }
#playairs-workshop .public-seats button { flex:1 1 20%; padding:7px 8px; border:1px solid transparent; border-radius:10px; font-size:12px; background:transparent; }
#playairs-workshop .public-seats button small { font-size:10px; }
#playairs-workshop .public-seats button[aria-pressed=true] { border:1px solid #d8e6dd; padding:7px 8px; color:#36745d; background:#eef6f0; }
#playairs-workshop .strategy-lanes { margin-top:5px; }
#playairs-workshop .strategy-lane>.fact-label { display:none; }
#playairs-workshop .strategy-slot { border:1px dashed #ccdcd2; background:#f5f9f5; border-radius:13px; min-height:86px; padding:14px; }
#playairs-workshop .strategy-slot strong { font-size:13px; }
#playairs-workshop .strategy-slot span { font-size:12px; }
#playairs-workshop .strategy-slot small { font-size:10px; }
#playairs-workshop .strategy-slot.occupied { background:#f0f7ff; border-color:#6f9fe4; }
#playairs-workshop .strategy-tools { gap:6px; margin:10px 0; }
#playairs-workshop .strategy-tools button { font-size:11px; padding:5px 7px; min-height:30px; border-color:transparent; background:transparent; color:#6c7a73; }
#playairs-workshop .strategy-tools summary { font-size:10px; padding:4px 0; min-height:28px; }
#playairs-workshop .submit-box { margin:16px 0; padding:0; border:0; background:transparent; box-shadow:none; }
#playairs-workshop .submit-box>.primary { font-size:13px; min-height:40px; }
#playairs-workshop .submit-box>.help { font-size:11px; line-height:1.7; margin-top:9px; color:#738079; }
#playairs-workshop .empty-panel { background:#f5f8f5; color:#6f8076; border:0; padding:24px 16px; font-size:13px; line-height:1.9; }
#playairs-workshop .pill, #playairs-workshop .compact-details>summary { font-size:11px; }
#playairs-workshop .problem-composer { border:0; background:#f0f6f1; padding:10px 12px; margin-top:16px; border-radius:13px; }
#playairs-workshop .phase-panel { margin-top:18px; }
#playairs-workshop .context-reference { margin-top:10px; border-color:var(--line); background:#f9fbff; }
#playairs-workshop .reference-board .game-board { height:600px; }
#playairs-workshop .site-footer { border:0; padding:10px 32px; font-size:10px; color:#7a8780; background:#fff; }
#playairs-workshop dialog { border-color:#d5e1f4; border-radius:20px; box-shadow:0 20px 80px #142c5833; }
#playairs-workshop dialog::backdrop { background:#10234755; backdrop-filter:blur(3px); }
#playairs-workshop .picked { outline-color:#3b89f5; }
#playairs-workshop .can-drop { outline:2px dashed #63a0f5; outline-offset:-3px; }
#playairs-workshop .drop-hover { outline:3px solid #3b89f5!important; background:#edf5ff!important; }
#playairs-workshop .game-card.dragging { opacity:.42; }
#playairs-workshop .game-card:hover:not(:disabled) { transform:translateY(-2px); box-shadow:0 4px 10px #294d7820; }
#playairs-workshop .game-card:active:not(:disabled) { transform:translateY(0); }
.playairs-drag-ghost { background:#fffaf2; border-color:#3b89f5; color:#102347; box-shadow:0 12px 30px #10234726!important; border-radius:14px; transform:rotate(1.5deg); }
.playairs-drag-ghost img { max-width:80px; height:45px; object-fit:contain; opacity:.4; }
.playairs-drag-ghost svg { width:24px; height:24px; }
@container playairs (min-width:1500px) {
#playairs-workshop .live-workspace { grid-template-columns:190px minmax(0,1fr); gap:32px; }
#playairs-workshop .port { min-height:56px; }
#playairs-workshop .action-card { min-height:140px; }
#playairs-workshop .action-copy { font-size:14px; }
}
@container playairs (max-width:1180px) {
#playairs-workshop .table-heading { height:132px; }
#playairs-workshop .hero-mascot { height:156px; width:156px; }
#playairs-workshop .table-controls { gap:8px; }
#playairs-workshop .game-board { grid-template-columns:200px minmax(470px,1fr) 254px; gap:12px; }
#playairs-workshop .live-workspace { grid-template-columns:150px minmax(0,1fr); gap:20px; }
#playairs-workshop .panel-header h2 { font-size:17px; }
#playairs-workshop .workbench-heading { font-size:12px; }
#playairs-workshop .port { padding:7px 5px; font-size:13px; }
#playairs-workshop .port .ui-icon { width:18px; }
#playairs-workshop .live-console { padding:11px 7px; }
}
@container playairs (max-width:1040px) {
#playairs-workshop .game-board { height:auto; min-height:0; grid-template-columns:minmax(0,1.7fr) minmax(270px,1fr); }
#playairs-workshop .game-board>.event-zone { grid-column:1/-1; height:auto; }
#playairs-workshop .event-zone .panel-body { display:grid; grid-template-columns:200px minmax(0,1fr); gap:10px; overflow:visible; }
#playairs-workshop .event-zone .card-shelf { grid-column:auto; }
#playairs-workshop .event-zone .scenario-hand { grid-template-columns:repeat(4,minmax(0,1fr)); }
#playairs-workshop .event-zone .source-details { grid-column:1/-1; }
#playairs-workshop .game-board>.live-zone, #playairs-workshop .game-board>.behavior-zone { height:640px; }
#playairs-workshop .live-workspace { grid-template-columns:150px minmax(0,1fr); }
#playairs-workshop .table-controls .workshop-guide { margin-right:0; }
#playairs-workshop .hero-copy { width:59%; }
#playairs-workshop .hero-scene { width:45%; }
#playairs-workshop .hero-mascot { right:18%; }
}
@container playairs (max-width:760px) {
#playairs-workshop main { padding:10px; }
#playairs-workshop .table-heading { height:auto; min-height:142px; }
#playairs-workshop .hero-copy { width:70%; padding:12px 0; gap:7px; }
#playairs-workshop h1 { font-size:25px; letter-spacing:-.6px; }
#playairs-workshop .hero-lead { font-size:15px; }
#playairs-workshop .hero-scene { width:35%; }
#playairs-workshop .hero-mascot { width:124px; height:124px; right:0; bottom:9px; }
#playairs-workshop .stage-rail { grid-template-columns:1fr; grid-template-rows:auto auto auto; padding:9px 0; gap:6px; }
#playairs-workshop .stage-progress-meta { grid-row:auto; flex-direction:row; justify-content:space-between; }
#playairs-workshop .stage-progress-meter, #playairs-workshop .stage-rail ol { grid-column:1; }
#playairs-workshop .stage-rail li { font-size:10px; }
#playairs-workshop .board-shortcuts { display:flex; }
#playairs-workshop .game-board { display:flex; flex-direction:column; height:auto; }
#playairs-workshop .game-board>.panel { height:auto; }
#playairs-workshop .event-zone .panel-body { display:block; }
#playairs-workshop .event-zone .scenario-hand { grid-template-columns:repeat(4,minmax(0,1fr)); }
#playairs-workshop .game-board>.live-zone { height:690px; }
#playairs-workshop .game-board>.behavior-zone { height:auto; max-height:none; }
#playairs-workshop .behavior-zone .panel-body { overflow:visible; }
#playairs-workshop .live-workspace { grid-template-columns:150px minmax(0,1fr); }
#playairs-workshop .public-seats button { flex:1; }
#playairs-workshop .action-card { min-height:126px; }
#playairs-workshop .reference-board .game-board { height:auto; }
}
@container playairs (max-width:560px) {
#playairs-workshop .hero-copy { width:70%; }
#playairs-workshop h1 { font-size:22px; }
#playairs-workshop .title-tag { margin-left:6px; font-size:.44em; }
#playairs-workshop .hero-mascot { width:104px; height:116px; }
#playairs-workshop .event-zone .scenario-hand { grid-template-columns:repeat(2,minmax(0,1fr)); }
#playairs-workshop .live-workspace { grid-template-columns:minmax(0,1fr); grid-template-rows:auto minmax(0,1fr); gap:10px; }
#playairs-workshop .live-console { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; max-height:260px; border-radius:16px; padding:10px; }
#playairs-workshop .port { min-height:36px; font-size:12px; border-radius:10px; }
#playairs-workshop .ports { gap:5px; }
#playairs-workshop .workbench-hint { margin-bottom:7px; font-size:9px; }
#playairs-workshop .workbench-heading { font-size:11px; }
#playairs-workshop .connection-console { margin-top:0; }
#playairs-workshop .connection-console>.primary { font-size:11px; }
#playairs-workshop .game-board>.live-zone { height:830px; }
#playairs-workshop .board-wires { display:none; }
#playairs-workshop .chat-scroll { height:auto; }
#playairs-workshop #utility-slot { margin-left:0; }
#playairs-workshop .top-actions { gap:6px; }
}
@media (prefers-reduced-motion:reduce) {
#playairs-workshop *, .playairs-drag-ghost { transition:none!important; animation:none!important; scroll-behavior:auto!important; }
#playairs-workshop .game-card:hover:not(:disabled), #playairs-workshop button:active:not(:disabled) { transform:none; }
}
/* Explicitly reset the earlier responsive grid before applying the new breakpoints. */
@container playairs (min-width:1041px) {
#playairs-workshop .game-board>.event-zone { grid-column:auto; }
#playairs-workshop .event-zone .panel-body { display:block; }
}
@container playairs (min-width:761px) and (max-width:1040px) {
#playairs-workshop .event-zone .card-shelf[open] { grid-column:2; }
}
#playairs-workshop #confirm-dialog { background:#fff; border-color:#d5e1f4; border-radius:20px; box-shadow:0 20px 80px #142c5833; }
#playairs-workshop #confirm-dialog::backdrop { background:#10234755; backdrop-filter:blur(3px); }
#playairs-workshop .explore-nodes { gap:5px; margin:10px 0; }
#playairs-workshop .explore-nodes button { background:#f6f9ff; border-color:#dce7f7; padding:5px; min-height:31px; font-size:11px; }
#playairs-workshop .explore-nodes button[aria-pressed=true] { background:#10284f; border-color:#10284f; color:#fff; }
#playairs-workshop .design-card, #playairs-workshop .survey-person { background:#fff; border-color:#dce6f5; border-radius:16px; }
#playairs-workshop .design-steps span { background:#f0f5fc; color:#586e91; border-radius:20px; }
#playairs-workshop .design-steps span.current { background:#10284f; color:#fff; }
#playairs-workshop .secondary-review, #playairs-workshop .revision-summary, #playairs-workshop .active-plan { background:#f5f8fe; border-color:#dae5f5; }
#playairs-workshop .done-banner { background:#ebf8f2; border-color:#cce9dc; }
#playairs-workshop .rating label { background:#f1f6fc; border-radius:9px; }
#playairs-workshop .mini-timeline span { background:#f1f6fc; }
/* Short desktop windows retain the eight-card overview; long content still scrolls. */
@media (max-height:820px) and (min-width:1041px) {
#playairs-workshop .table-heading { height:116px; margin-bottom:16px; }
#playairs-workshop .hero-mascot { height:148px; width:148px; }
#playairs-workshop .event-slot.occupied { min-height:90px; }
#playairs-workshop .event-description { font-size:12px; }
#playairs-workshop .action-card { min-height:119px; }
#playairs-workshop .action-art { height:39px; }
}
#playairs-workshop .typing::after { content:' • • •'; letter-spacing:2px; animation:playairs-thinking 1s ease-in-out infinite alternate; }
@keyframes playairs-thinking { from { opacity:.25; } to { opacity:1; } }
@media (prefers-reduced-motion:reduce) {
#playairs-workshop .typing::after { animation:none; }
}

/* Structural grouping uses space and surfaces, not repeated separator rules. */
#playairs-workshop .table-controls summary { font-weight:400; }
#playairs-workshop .table-controls .seat-config>summary, #playairs-workshop .table-controls .workshop-guide>summary { color:#687973; font-size:13px; }
#playairs-workshop .count-control { color:#687973; }
#playairs-workshop .count-control select { font-weight:400; }
#playairs-workshop .stage-progress-meta>strong { font-weight:500; }
#playairs-workshop .workbench-heading>strong, #playairs-workshop .chat-toolbar>strong { font-weight:500; }
#playairs-workshop .chat-message { margin-bottom:22px; }
#playairs-workshop .target-tags:empty { display:none!important; }
#playairs-workshop .reference-board, #playairs-workshop .answer-row { border:0; }
#playairs-workshop .design-card>.actions { border:0; padding:12px 0 0; background:transparent; }
#playairs-workshop .plan-group { border:0; background:#f7f9f7; padding:18px; border-radius:14px; }
#playairs-workshop .plan-group>legend { font-weight:500; }
#playairs-workshop .design-card h2, #playairs-workshop .design-card h3 { font-weight:500; }
#playairs-workshop .revision-card, #playairs-workshop .secondary-review { border:0; background:#f7f9f7; padding:18px; }
#playairs-workshop .design-grid, #playairs-workshop .review-grid { gap:24px; }
#playairs-workshop .notice { border:0; border-radius:12px; background:#edf6ee; }
#playairs-workshop .notice.warn { background:#fcf5e8; }
#playairs-workshop .connection-console .actions .small { border-color:transparent; background:transparent; color:#60756c; }
#playairs-workshop .tools>div { border-color:#e8edeb; box-shadow:0 10px 32px #2e473314; padding:12px; border-radius:16px; }
#playairs-workshop .details-content { border-color:#e8edeb; box-shadow:0 10px 32px #2e473314; padding:24px; }
#playairs-workshop .event-zone .card-shelf { margin-top:12px; }
#playairs-workshop .explore-nodes { gap:8px; margin:16px 0; }
#playairs-workshop .explore-nodes button { padding:7px; font-size:12px; border-color:transparent; background:#f0f4f1; color:#65796c; }
#playairs-workshop .explore-nodes button[aria-pressed=true] { background:#e0eee5; color:#32664f; border-color:#bfd7c8; }
@container playairs (max-width:1180px) {
#playairs-workshop main { padding-inline:20px; }
#playairs-workshop .game-board>.panel>.panel-body { padding:10px; }
#playairs-workshop .live-workspace { gap:20px; }
}
@container playairs (max-width:760px) {
#playairs-workshop main { padding:14px; }
#playairs-workshop .table-heading { margin-bottom:12px; }
#playairs-workshop .table-controls { gap:10px 16px; }
#playairs-workshop .game-board { gap:24px; }
#playairs-workshop .game-board>.panel>.panel-header { padding-left:4px; }
#playairs-workshop .hero-copy { gap:10px; }
#playairs-workshop .site-footer { padding-inline:14px; }
}
@media (max-height:820px) and (min-width:1041px) {
#playairs-workshop main { padding-top:12px; }
#playairs-workshop .event-zone .scenario-hand { gap:8px; }
#playairs-workshop .event-zone .card-shelf { margin-top:8px; }
}

/* Scenario packs: themed corner, aligned text, low-contrast illustration at the foot. */
#playairs-workshop .scenario-card[data-level=黄色] { --scene-edge:#e5c46e; --scene-tint:#fffaf0; --scene-theme:#efcf78; --scene-ink:#886511; }
#playairs-workshop .scenario-card[data-level=橙色] { --scene-edge:#edb17d; --scene-tint:#fff5ed; --scene-theme:#f2b783; --scene-ink:#a45a20; }
#playairs-workshop .scenario-card[data-level=红色] { --scene-edge:#e5a1a8; --scene-tint:#fff2f3; --scene-theme:#eda7ae; --scene-ink:#ab4753; }
#playairs-workshop .scenario-card::before { content:''; position:absolute; z-index:0; top:0; right:0; width:48%; height:23px; background:var(--scene-theme); clip-path:polygon(0 0,100% 0,100% 100%,49% 100%); pointer-events:none; }
#playairs-workshop .scenario-card-top { position:relative; z-index:1; display:flex; align-items:center; justify-content:space-between; min-height:20px; }
#playairs-workshop .scenario-card-arrow { display:grid; place-items:center; width:18px; height:18px; border-radius:50%; color:var(--scene-ink); background:var(--scene-tint); font-size:12px; line-height:1; }
#playairs-workshop .scenario-copy { position:relative; z-index:1; display:flex; flex-direction:column; gap:4px; text-align:left; }
#playairs-workshop .scenario-level { display:block; color:var(--scene-ink); font-size:11px; line-height:1.5; font-weight:400; }
#playairs-workshop .scenario-description { display:block; color:#68766f; font-size:11px; font-weight:400; line-height:1.65; margin-top:5px; min-height:3.3em; overflow-wrap:anywhere; }
#playairs-workshop .scenario-card .scene-art { z-index:0; width:84%; height:82px; right:-3px; bottom:-6px; opacity:.22; object-fit:contain; object-position:right bottom; mask-image:linear-gradient(to bottom,transparent,#000 38%); }
#playairs-workshop .scenario-current { position:absolute; left:12px; bottom:12px; z-index:1; color:var(--scene-ink); font-size:10px; line-height:1.6; padding:2px 6px; background:#ffffffdb; border-radius:5px; }
#playairs-workshop .scenario-card:hover:not(:disabled) { border-color:var(--scene-ink); background:linear-gradient(180deg,#fff 55%,var(--scene-tint)); box-shadow:0 5px 13px #283b3012; }
.playairs-drag-ghost.scenario-card { min-height:150px!important; max-height:220px; overflow:hidden; background:#fffaf2; }
.playairs-drag-ghost .scenario-card-top { display:flex; justify-content:space-between; }
.playairs-drag-ghost .scenario-copy { display:grid; gap:4px; }
.playairs-drag-ghost .scenario-level, .playairs-drag-ghost .scenario-description { font-size:11px; }
.playairs-drag-ghost .scene-art { position:absolute; bottom:0; right:0; opacity:.15; }
/* Two scroll stages: introduction, then the full-height game surface. */
#playairs-workshop { height:100dvh; overflow-y:auto; overflow-x:hidden; scroll-snap-type:y mandatory; scroll-padding-top:0; overscroll-behavior-y:contain; scrollbar-width:thin; }
#playairs-workshop main { padding:0 32px; }
#playairs-workshop .table-heading { height:252px; min-height:0; margin:0; padding:18px 0; scroll-snap-align:start; scroll-snap-stop:always; overflow:hidden; isolation:isolate; }
#playairs-workshop .table-heading::after { content:''; position:absolute; z-index:0; inset:38% -8% -40px; pointer-events:none; background:radial-gradient(ellipse at 33% 100%,#d9f6eea6 0,transparent 53%),radial-gradient(ellipse at 79% 88%,#e4dcff9e 0,transparent 55%); filter:blur(18px); }
#playairs-workshop .hero-copy { width:54%; gap:18px; padding:0 0 12px; background:transparent; }
#playairs-workshop h1 { font-family:"Avenir Next","Arial Rounded MT Bold",Inter,"PingFang SC",sans-serif; font-size:clamp(38px,4.2cqw,68px); font-weight:750; letter-spacing:-2px; line-height:1.2; }
#playairs-workshop .hero-wordmark { white-space:nowrap; color:#20373e; }
#playairs-workshop .hero-wordmark>span { color:#7C67C6; background:linear-gradient(to right,#7C67C6 0%,#1BC0CA 100%); background-clip:text; -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
#playairs-workshop .title-tag { font-family:"PingFang SC","Microsoft YaHei",sans-serif; font-size:.3em; margin-left:14px; font-weight:400; letter-spacing:1.5px; color:#5c7079; }
#playairs-workshop .hero-lead { font-family:"Avenir Next",Inter,sans-serif; font-size:clamp(16px,1.65cqw,24px); font-weight:400; line-height:1.6; letter-spacing:.2px; color:#687b81; }
#playairs-workshop .hero-scene { z-index:0; width:52%; right:-24px; background:none; mask-image:none; }
#playairs-workshop .hero-mascot { height:266px; width:266px; right:22%; bottom:-5px; }
#playairs-workshop .core-stage { height:100dvh; min-height:620px; display:flex; flex-direction:column; padding:12px 0 0; scroll-snap-align:start; scroll-snap-stop:always; position:relative; background:#fff; }
#playairs-workshop .core-stage>.table-controls { flex:none; margin-bottom:8px; border:0; }
#playairs-workshop .core-stage>.game-board { flex:1 1 auto; min-height:440px; }
#playairs-workshop .core-stage>.stage-rail { flex:none; margin:0; padding:16px 4px 8px; border:0; }
#playairs-workshop #footer-slot { flex:none; }
#playairs-workshop #footer-slot .site-footer { padding:8px 4px 12px; font-size:10px; }
#playairs-workshop .sr-status { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; pointer-events:none; }
#playairs-workshop .core-stage.is-phase { height:auto; min-height:100dvh; }
#playairs-workshop[data-phase=edit], #playairs-workshop[data-phase=review], #playairs-workshop[data-phase=survey], #playairs-workshop[data-phase=done] { scroll-snap-type:none; }
#playairs-workshop .core-stage.is-phase .phase-panel { flex:1; }
#playairs-workshop .core-stage.is-phase>.stage-rail { padding-top:14px; }
/* A window-style title bar gives the interaction area a clear visual center. */
#playairs-workshop .game-board>.live-zone { border:1px solid #cfd8da; border-radius:22px; background:#f3f5f5; box-shadow:0 8px 24px #30464a0b; }
#playairs-workshop .game-board>.live-zone>.panel-header { height:56px; min-height:56px; padding:12px 16px; background:#e8ebec; border:0; }
#playairs-workshop .live-zone .panel-header h2 { display:flex; align-items:center; gap:12px; font-size:17px; font-weight:500; letter-spacing:.2px; color:#40555a; }
#playairs-workshop .live-zone .panel-header .pill { color:#617579; }
#playairs-workshop .window-lights { display:inline-flex; gap:5px; align-items:center; flex:none; }
#playairs-workshop .window-lights i { display:block; width:7px; height:7px; border-radius:50%; background:#f17f7c; }
#playairs-workshop .window-lights i:nth-child(2) { background:#e9bc61; }
#playairs-workshop .window-lights i:nth-child(3) { background:#66b795; }
#playairs-workshop .game-board>.live-zone>.panel-body { padding:14px 12px 12px; }
#playairs-workshop .live-console { background:#eef2ef; }
#playairs-workshop .chat-window { background:#fff; }
#playairs-workshop .chat-scroll, #playairs-workshop .live-console, #playairs-workshop .game-board>.panel>.panel-body { overscroll-behavior-y:auto; }
@container playairs (max-width:1180px) {
#playairs-workshop main { padding-inline:20px; }
#playairs-workshop .table-heading { height:224px; }
#playairs-workshop .hero-mascot { height:238px; width:238px; right:15%; }
#playairs-workshop .live-zone .panel-header h2 { font-size:15px; gap:8px; }
#playairs-workshop .game-board>.live-zone>.panel-header { padding-inline:12px; }
}
@container playairs (max-width:1040px) {
#playairs-workshop .core-stage { height:auto; min-height:100dvh; }
#playairs-workshop .core-stage>.game-board { flex:none; height:auto; }
#playairs-workshop .hero-copy { width:62%; }
#playairs-workshop .hero-scene { width:42%; }
#playairs-workshop .hero-mascot { right:8%; }
}
@container playairs (max-width:760px) {
#playairs-workshop main { padding-inline:14px; }
#playairs-workshop .table-heading { height:202px; }
#playairs-workshop .hero-copy { width:70%; gap:12px; }
#playairs-workshop h1 { font-size:36px; letter-spacing:-1.5px; }
#playairs-workshop .title-tag { font-size:.32em; margin-left:8px; letter-spacing:.5px; }
#playairs-workshop .hero-lead { font-size:15px; max-width:260px; }
#playairs-workshop .hero-scene { width:34%; right:-10px; }
#playairs-workshop .hero-mascot { width:156px; height:180px; right:0; bottom:5px; }
#playairs-workshop .core-stage>.board-shortcuts { flex:none; }
#playairs-workshop .core-stage>.stage-rail { padding:20px 0 10px; }
}
@container playairs (max-width:560px) {
#playairs-workshop h1 { font-size:30px; }
#playairs-workshop .hero-copy { width:74%; }
#playairs-workshop .hero-lead { font-size:13px; }
#playairs-workshop .hero-mascot { width:120px; height:150px; }
#playairs-workshop .title-tag { font-size:.33em; }
}
@media (max-width:1040px), (max-height:619px) {
#playairs-workshop { scroll-snap-type:y proximity; }
}
@media (prefers-reduced-motion:reduce) {
#playairs-workshop { scroll-behavior:auto; }
}

/* Fixed interface shelf with an independently scrollable controls area below. */
#playairs-workshop .live-console { display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:auto minmax(0,1fr); gap:16px; overflow:visible; padding:0; background:transparent; border:0; border-radius:0; position:relative; z-index:4; }
#playairs-workshop .companion-unit { margin:0; padding:14px 10px; border:1px solid #d8e1d6; border-radius:18px; background:#f6f8f1; min-height:0; }
#playairs-workshop .companion-body { display:grid; gap:0; }
#playairs-workshop .workbench-heading { margin:0 0 6px; }
#playairs-workshop .workbench-hint { margin:0 0 12px; font-size:11px; }
#playairs-workshop .ports { gap:8px; }
#playairs-workshop .port { position:relative; min-height:36px; height:36px; padding:6px 8px; gap:7px; border-radius:11px; font-size:13px; }
#playairs-workshop .port .ui-icon { width:19px; height:19px; }
#playairs-workshop .port-dot { width:15px; height:15px; box-shadow:0 0 0 3px #ffffffb0; }
#playairs-workshop .port:hover:not(:disabled), #playairs-workshop .port:active:not(:disabled) { transform:none; }
#playairs-workshop .port-tooltip { position:absolute; left:calc(100% + 12px); top:50%; transform:translateY(-50%); z-index:20; width:210px; max-width:52vw; padding:10px 12px; border:1px solid #dce6df; border-radius:10px; background:#fff; color:#3d5549; box-shadow:0 5px 20px #19372a16; font-size:12px; font-weight:400; line-height:1.7; text-align:left; white-space:normal; pointer-events:none; user-select:none; visibility:hidden; opacity:0; transition:opacity 140ms ease; }
#playairs-workshop .port-tooltip::before { content:''; position:absolute; left:-5px; top:calc(50% - 5px); width:8px; height:8px; background:#fff; border-left:1px solid #dce6df; border-bottom:1px solid #dce6df; transform:rotate(45deg); }
#playairs-workshop .port:hover .port-tooltip, #playairs-workshop .port:focus-visible .port-tooltip { visibility:visible; opacity:1; }
#playairs-workshop .is-dragging .port-tooltip { visibility:hidden!important; opacity:0!important; }
#playairs-workshop .connection-console { margin:0; min-height:0; overflow-y:auto; overscroll-behavior-y:auto; scrollbar-width:thin; padding:12px 10px; border:1px solid #d8e1d6; border-radius:18px; background:#f6f8f1; }
#playairs-workshop .connection-console>.primary { min-height:40px; padding:9px 6px; border:1px solid #b7dcca; border-radius:12px; background:linear-gradient(125deg,#e6f5d9,#c7eadc); color:#285747; box-shadow:0 2px 5px #2a5b3d09; font-size:13px; font-weight:600; }
#playairs-workshop .connection-console>.primary:hover:not(:disabled) { background:linear-gradient(125deg,#dbf0c9,#b6e2cf); border-color:#99c9b2; }
#playairs-workshop .connection-console>.primary:disabled { background:linear-gradient(125deg,#f0f5e9,#e6f0e9); color:#88998e; border-color:#dce6dd; box-shadow:none; }
#playairs-workshop .connection-details { margin-top:8px; }
#playairs-workshop .connection-console .actions { margin-top:8px; }
@container playairs (max-width:1180px) {
#playairs-workshop .companion-unit, #playairs-workshop .connection-console { padding:12px 8px; }
#playairs-workshop .port { padding:6px; gap:5px; font-size:12px; }
#playairs-workshop .port .ui-icon { width:17px; height:17px; }
}
@container playairs (max-width:560px) {
#playairs-workshop .live-console { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:minmax(0,1fr); gap:8px; max-height:none; height:242px; padding:0; }
#playairs-workshop .companion-unit { padding:10px 7px; }
#playairs-workshop .connection-console { padding:10px 7px; }
#playairs-workshop .workbench-hint { font-size:10px; line-height:1.5; margin-bottom:8px; }
#playairs-workshop .workbench-heading { font-size:11px; }
#playairs-workshop .ports { gap:6px; }
#playairs-workshop .port { height:34px; min-height:34px; padding:5px; font-size:12px; }
#playairs-workshop .port-tooltip { left:calc(100% + 8px); width:150px; max-width:44vw; font-size:11px; padding:8px; }
}

/* Shared white canvas: ambient light has no hero-sized boundary. */
#playairs-workshop {
  background-color:#fff;
  background-image:radial-gradient(ellipse at 88% 14%,#bceee52b 0,transparent 48%),radial-gradient(ellipse at 5% 70%,#d8d3fa24 0,transparent 48%),radial-gradient(ellipse at 74% 95%,#d1eff21c 0,transparent 45%);
}
#playairs-workshop .table-heading, #playairs-workshop .core-stage { background:transparent; border:0; box-shadow:none; }
#playairs-workshop .table-heading::after { content:none; }
#playairs-workshop .hero-copy { background:transparent; }
#playairs-workshop .hero-scene { background:none; mask-image:none; -webkit-mask-image:none; pointer-events:none; }
#playairs-workshop button.hero-companion {
  width:clamp(104px,19cqw,266px); height:calc(100% - 24px); bottom:12px;
  padding:0; border:0; border-radius:36%; min-height:0; background:transparent; box-shadow:none;
  pointer-events:auto; -webkit-tap-highlight-color:transparent; touch-action:manipulation;
  transform-origin:50% 80%; transition:transform 360ms cubic-bezier(.2,.7,.3,1);
}
#playairs-workshop button.hero-companion:hover { background:transparent; transform:translateY(-4px) rotate(-2deg); }
#playairs-workshop button.hero-companion:active { transform:translateY(1px) scale(.98); }
#playairs-workshop .hero-character { display:block; width:100%; height:100%; object-fit:contain; pointer-events:none; user-select:none; transform-origin:50% 80%; animation:playairs-arrive 4.8s ease-in-out 1; }
@keyframes playairs-arrive { 0%,50%,100% { transform:translateY(0) rotate(0); } 25% { transform:translateY(-6px) rotate(-1deg); } 75% { transform:translateY(-4px) rotate(1deg); } }
@media (hover:none) { #playairs-workshop button.hero-companion:hover { transform:none; } }
@media (prefers-reduced-motion:reduce) {
  #playairs-workshop .hero-character { animation:none; }
  #playairs-workshop button.hero-companion { transition:none; }
  #playairs-workshop button.hero-companion:hover, #playairs-workshop button.hero-companion:active { transform:none; }
}

/* Keep guidance attached to its own disclosure, not the toolbar's right edge. */
#playairs-workshop .table-controls { z-index:10; }
#playairs-workshop .seat-config, #playairs-workshop .workshop-guide { position:relative; }
#playairs-workshop .table-controls > details > .details-content {
  top:calc(100% + 10px); right:auto; left:var(--disclosure-shift,0px);
  width:min(460px,calc(100cqw - 64px)); max-width:none;
  max-height:min(440px,calc(100dvh - 140px)); overflow-y:auto;
  padding:20px 22px; text-align:left; font-size:13px; line-height:1.8;
  overflow-wrap:anywhere; overscroll-behavior:contain;
}
@container playairs (max-width:760px) {
  #playairs-workshop .table-controls > details > .details-content { width:calc(100cqw - 28px); padding:16px; }
}

/* Auditable co-design state and progressive dialogue: compact, scrollable details. */
#playairs-workshop .information-ledger {margin:8px 0 14px;padding:10px 12px;background:#f4f8f7;border-radius:14px;font-size:13px;}
#playairs-workshop .information-ledger summary,#playairs-workshop .host-records summary {cursor:pointer;}
#playairs-workshop .fact-item {padding:10px 0;border-bottom:1px solid #e5eeeb;}
#playairs-workshop .fact-item p {margin:5px 0;line-height:1.65;}
#playairs-workshop .information-ledger small,#playairs-workshop .host-records small,#playairs-workshop .executable-dialogue small {display:block;color:#62736f;font-size:12px;overflow-wrap:anywhere;}
#playairs-workshop .host-records {margin-top:18px;padding:12px;background:#f7f9f8;border-radius:14px;}
#playairs-workshop .executable-dialogue {margin:14px 0;padding:14px;background:#f1faf7;border-radius:18px;}
#playairs-workshop .executable-dialogue .chat-message {margin:0 0 12px;}
#playairs-workshop .dialogue-actions {display:flex;flex-wrap:wrap;gap:8px;}
#playairs-workshop .dialogue-actions button {min-height:36px;white-space:normal;overflow-wrap:anywhere;}
#playairs-workshop .executable-dialogue details {margin-top:10px;font-size:12px;}
#playairs-workshop .active-plan .field {margin:10px 0;}
#playairs-workshop .active-plan .check-tick {display:flex;align-items:flex-start;gap:7px;margin:10px 0;font-size:13px;}
#playairs-workshop .plan-group textarea {min-height:70px;}

/* Expressive wordmark and a quiet, local greeting from the companion. */
#playairs-workshop .hero-copy { width:62%; }
#playairs-workshop .hero-copy h1 { display:flex; align-items:flex-start; flex-wrap:wrap; gap:6px 20px; font-size:clamp(52px,5.7cqw,92px); line-height:1.2; letter-spacing:-.035em; font-weight:700; overflow:visible; }
#playairs-workshop .hero-wordmark { display:inline-flex; flex:none; align-items:baseline; overflow:visible; font-family:"PlayAIRS Tw Cen","Tw Cen MT",Futura,"Avenir Next",sans-serif; font-weight:700; font-style:italic; font-kerning:normal; }
/* Give the gradient its own unbroken paint box and room for glyph overhangs. */
#playairs-workshop .hero-wordmark>span { display:inline-block; padding:.08em .18em .10em .04em; margin:-.08em -.18em -.10em -.04em; overflow:visible; }
#playairs-workshop .title-tag { flex:none; font-size:clamp(17px,1.65cqw,26px); line-height:1.4; letter-spacing:.12em; margin: .55em 0 0; font-weight:400; }
#playairs-workshop .hero-scene { z-index:2; width:40%; right:0; }
#playairs-workshop button.hero-companion { right:5%; }
#playairs-workshop .hero-speech {
  position:absolute; right:calc(clamp(104px,19cqw,266px) + 4%); top:22px;
  width:240px; max-width:calc(100cqw - 40px); box-sizing:border-box;
  padding:16px 20px; border:1px solid #dbeae4; border-radius:20px 20px 5px 20px;
  background:#fffffff5; color:#274e49; box-shadow:0 8px 28px #37695d12;
  font:400 16px/1.7 "Avenir Next","PingFang SC","Microsoft YaHei",sans-serif;
  text-align:left; pointer-events:auto; animation:companion-speech-in 200ms ease-out;
}
#playairs-workshop .hero-speech[hidden] { display:none; }
#playairs-workshop .hero-speech::after { content:''; position:absolute; right:-6px; bottom:12px; width:10px; height:10px; background:#fff; border-top:1px solid #dbeae4; border-right:1px solid #dbeae4; transform:rotate(45deg); }
#playairs-workshop button.hero-companion:focus-visible { outline:2px solid #6eb9a7; outline-offset:3px; }
@keyframes companion-speech-in { from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)} }
@container playairs (max-width:1040px) {
  #playairs-workshop .hero-copy h1 { font-size:clamp(48px,6.2cqw,64px); }
  #playairs-workshop .hero-speech { width:206px; font-size:14px; top:6px; padding:12px 16px; }
}
@container playairs (max-width:760px) {
  #playairs-workshop .table-heading { height:286px; }
  #playairs-workshop .hero-copy { width:100%; height:auto; justify-content:flex-start; padding:12px 0 0; gap:12px; }
  #playairs-workshop .hero-copy h1 { font-size:clamp(40px,8cqw,58px); column-gap:12px; }
  #playairs-workshop .title-tag { font-size:clamp(14px,2.6cqw,20px); margin-left:0; letter-spacing:.08em; }
  #playairs-workshop .hero-scene { width:100%; }
  #playairs-workshop button.hero-companion { width:128px; height:136px; right:0; bottom:4px; }
  #playairs-workshop .hero-speech { top:auto; bottom:28px; right:140px; width:260px; max-width:calc(100cqw - 170px); font-size:14px; padding:12px 14px; }
}
@media (prefers-reduced-motion:reduce) { #playairs-workshop .hero-speech { animation:none; } }

/* A diffuse lavender glow behind the left wordmark, fading into the white canvas. */
#playairs-workshop .table-heading::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:radial-gradient(ellipse 34% 65% at 18% 42%,rgba(180,157,235,.22) 0%,rgba(201,183,245,.12) 38%,rgba(225,215,250,.05) 58%,transparent 80%);
}
@container playairs (max-width:760px) {
  #playairs-workshop .table-heading::before {
    background:radial-gradient(ellipse 65% 52% at 25% 27%,rgba(180,157,235,.19) 0%,rgba(201,183,245,.09) 40%,transparent 78%);
  }
}
