@charset "UTF-8";
/* The mat is one task at a time. This layer only styles the mat and new
   decision components; scene geometry, other drawers and local checks stay put. */
#boardTable{--mat-dock-width:340px}
#boardTable[data-dock="mat"] #boardDrawer{width:var(--mat-dock-width);max-width:calc(100% - 12px)}
#boardTable[data-phase="action"][data-dock="mat"] .phase-ribbon{display:none}
#boardTable[data-phase="action"][data-dock="mat"] #boardDrawer{padding-bottom:0}
#boardTable #dockMat{min-width:0}
#boardTable #dockMat [hidden]{display:none!important}
#boardTable #dockMat .player-mat{grid-template-columns:minmax(0,1fr);grid-template-areas:"core" "guide" "day" "night";gap:10px}
#boardTable #dockMat .player-mat[data-flow="prepare"]{grid-template-areas:"core" "guide"}
#boardTable #dockMat .player-mat[data-flow="plan"],#boardTable #dockMat .player-mat[data-flow="act"]{grid-template-areas:"core" "guide" "zone"}
#boardTable #dockMat .player-mat[data-flow="plan"] .mat-wing,#boardTable #dockMat .player-mat[data-flow="act"] .mat-wing{grid-area:zone}
#boardTable #dockMat .player-mat[data-flow="plan"] .mat-wing:not([hidden]),#boardTable #dockMat .player-mat[data-flow="act"] .mat-wing:not([hidden]){display:block}
#boardTable #dockMat[data-flow="prepare"] .mat-period-tabs,#boardTable #dockMat[data-flow="plan"] .mat-period-tabs,#boardTable #dockMat[data-flow="act"] .mat-period-tabs{display:none}
#boardTable #dockMat .mat-core{padding-bottom:9px;gap:6px 8px}
#boardTable #dockMat .mat-core-art{width:36px;height:36px}
#boardTable #dockMat .mat-resources{padding:3px 0}
#boardTable #dockMat .mat-passive>summary{min-height:44px;padding:6px 9px}

/* A small paper heading carries the task, not a second permanent side panel. */
#boardTable #dockMat .flow-guide{grid-area:guide;min-width:0;padding:11px 12px 10px;border:1px solid #b6c4b5;border-left:4px solid #477f71;border-radius:8px;background:#eef1e6;color:#304e43;box-shadow:0 1px 2px #344a3110}
#boardTable #dockMat[data-flow="prepare"] .flow-guide{border-color:#cdbb90;border-left-color:#997334;background:#f4ecd9;color:#654b27}
#boardTable #dockMat .flow-eyebrow{display:block;font-size:10px;font-weight:700;line-height:1.4;letter-spacing:1px;color:#52634e;margin-bottom:4px}
#boardTable #dockMat .flow-title{font-size:18px;font-weight:800;line-height:1.35;letter-spacing:.2px;margin:0;color:#304e43;overflow-wrap:anywhere}
#boardTable #dockMat[data-flow="prepare"] .flow-title{color:#654b27}
#boardTable #dockMat .flow-note{font-size:11px;line-height:1.6;color:#52634e;margin:5px 0 0;overflow-wrap:anywhere}
#boardTable #dockMat .flow-note:empty{display:none}
#boardTable #dockMat .flow-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:10px;padding:0;list-style:none}
#boardTable #dockMat .flow-step{min-width:0;padding:5px 2px;text-align:center;font-size:10px;font-weight:600;line-height:1.4;border:1px solid #c7cebd;border-radius:5px;background:#f9f8ee;color:#52634e;white-space:normal;overflow-wrap:anywhere}
#boardTable #dockMat .flow-step[data-state="active"]{border-color:#346b5b;background:#346b5b;color:#fff8e8;font-weight:800;box-shadow:0 1px 2px #304e4320}
#boardTable #dockMat .flow-step[data-state="done"]{border-color:#aec3b0;background:#dee9da;color:#355948}
#boardTable #dockMat .flow-step[data-state="pending"]{border-style:dashed;background:#f9f8ee;color:#5b6653}
#boardTable #dockMat[data-flow="act"] .flow-steps,#boardTable #dockMat[data-flow="inspect"] .flow-steps{display:none}

/* Selected orders are four small removable tickets, not four duplicate cards. */
#boardTable #dockMat[data-flow="plan"] .mat-wing{padding:8px;border-color:#c5cdb8;background:#f4f1e4;box-shadow:none}
#boardTable #dockMat[data-flow="plan"] .zone-title{margin-bottom:6px;min-height:18px}
#boardTable #dockMat[data-flow="plan"] .zone-title>:first-child{font-size:11px;letter-spacing:0}
#boardTable #dockMat[data-flow="plan"] .zone-slots{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
#boardTable #dockMat[data-flow="plan"] .empty-slot{height:66px;min-height:66px;padding:6px 3px;gap:2px;background:#f8f6ed;border-color:#b5bca8;box-shadow:none;color:#53634e}
#boardTable #dockMat[data-flow="plan"] .empty-slot::before{display:none}
#boardTable #dockMat[data-flow="plan"] .empty-slot .slot-number{font-size:19px;opacity:1;color:#637259}
#boardTable #dockMat[data-flow="plan"] .empty-slot .slot-hint{font-size:9px;text-align:center;line-height:1.3}
#boardTable #dockMat .plan-slot{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;min-width:0;width:100%;min-height:66px;padding:7px 6px;border:1px solid #8aa894;border-radius:7px;background:#e0ebdd;color:#304e43;box-shadow:0 2px 0 #b5c5af;text-align:left;white-space:normal;cursor:pointer;touch-action:manipulation}
#boardTable #dockMat .plan-slot .slot-number,#boardTable #dockMat .plan-slot small{font-size:10px;line-height:1;opacity:1;color:#4b6857}
#boardTable #dockMat .plan-slot .name{font-size:11px;font-weight:750;line-height:1.35;overflow-wrap:anywhere;padding-right:2px}
#boardTable #dockMat .plan-slot .remove{position:absolute;top:4px;right:5px;font-size:15px;line-height:1;color:#486550;pointer-events:none}
#boardTable #dockMat .plan-slot:hover{background:#d4e5d1;border-color:#477f71}
#boardTable #dockMat .plan-slot:focus-visible{outline:3px solid #39746c;outline-offset:2px}

/* The supply remains a readable grid, with explicit quantities and large taps. */
#boardTable #dockMat #handTray{min-width:0;margin-top:12px;padding-top:10px}
#boardTable #dockMat[data-flow="prepare"] #handTray{margin-top:8px;padding-top:0;border-top:0}
#boardTable #dockMat .hand-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px 7px;padding:5px 0 8px;overflow:visible;scroll-snap-type:none}
#boardTable #dockMat .hand-card-group{gap:6px;min-width:0}
#boardTable #dockMat .hand-card-group .command-card{min-height:114px}
#boardTable #dockMat .hand-card-group .card-heading{min-height:34px;font-size:10px;line-height:1.35;gap:3px;padding:5px}
#boardTable #dockMat .hand-card-group .card-art{height:53px}
#boardTable #dockMat .hand-card-count{top:37px;right:4px;font-size:10px;min-width:22px;padding:2px 5px}
#boardTable #dockMat .hand-stack-controls{height:auto;min-height:44px;grid-template-columns:28px minmax(0,1fr) 28px;gap:2px;padding:0 2px}
#boardTable #dockMat .hand-stack-step{width:28px;min-width:28px;min-height:44px;height:44px;padding:0;font-size:20px;touch-action:manipulation}
#boardTable #dockMat .hand-stack-quantity{font-size:9px;line-height:1.25}
#boardTable #dockMat .hand-stack-step:focus-visible{outline:3px solid #39746c;outline-offset:1px}
#boardTable #dockMat .preparation-tray{padding:10px;border-color:#cbb98f;background:#f8f2e3;color:#654b27;box-shadow:0 2px 0 #ded3b7}
#boardTable #dockMat .preparation-hint{font-size:11px;line-height:1.6;color:#62583f}
#boardTable #dockMat .preparation-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:3px 0 6px}
#boardTable #dockMat .preparation-cards .card-heading{font-size:10px;line-height:1.35}
#boardTable #dockMat .preparation-cards .card-art{height:56px}
#boardTable #dockMat .preparation-skip{min-height:44px;margin-top:10px;background:#fffaf0;border-color:#a89b77;color:#615438;touch-action:manipulation}

/* A ready card need not have a bird action: utility choices stay available. */
#boardTable #dockMat .command-affordance{min-height:29px;display:flex;align-items:center;justify-content:center;padding:5px 6px;margin-top:5px;border-radius:5px;font-size:10px;line-height:1.4;text-align:center;color:#46614e;background:#e5ebde;overflow-wrap:anywhere}
#boardTable #dockMat .command-affordance[data-state="ready"]{color:#315b47;background:#e0ead9}
#boardTable #dockMat .command-affordance[data-state="learning"]{color:#70521f;background:#f0e4c2}
#boardTable #dockMat .command-affordance[data-state="utility"]{color:#5b6555;background:#e9ebdf}
#boardTable #dockMat .mat-utilities{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;min-width:0;margin-top:12px;padding-top:10px;border-top:1px solid #d2ccb7}
#boardTable #dockMat .mat-utilities:empty{display:none}
#boardTable #dockMat .mat-utility{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:3px;min-width:0;min-height:48px;padding:8px 10px;border:1px solid #b9c4af;border-radius:8px;background:#faf7eb;color:#3c5b48;text-align:left;font-size:12px;line-height:1.4;overflow-wrap:anywhere;touch-action:manipulation}
#boardTable #dockMat .mat-utility>span,#boardTable #dockMat .mat-utility>small{font-size:10px;line-height:1.5;color:#53634e}
#boardTable #dockMat .mat-utility:hover{border-color:#718d76;background:#eaf0e1}
#boardTable #dockMat .mat-utility:focus-visible{outline:3px solid #39746c;outline-offset:2px}

/* These components live inside the existing local decision popup. */
.context-popover .learning-option{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-height:56px;padding:11px 12px;border:1px solid #aebfab;border-left:4px solid #477f71;background:#f6f5e9;color:#304e43;text-align:left}
.context-popover .learning-option strong{font-size:14px;line-height:1.4;color:#304e43}
.context-popover .learning-option .description,.context-popover .learning-option .learning-description,.context-popover .learning-option p{font-size:12px;line-height:1.6;color:#53634e;margin:0}
.context-popover .learning-option>.learning-bonus{display:block;font-size:11px;line-height:1.6;color:#70521f;background:#f0e4c2;padding:5px 7px;border-radius:4px}
.context-popover .learning-option:focus-visible{outline:3px solid #39746c;outline-offset:2px}
.context-popover .upgrade-original{display:flex;flex-direction:column;gap:5px;padding:10px 12px;border:1px solid #c9c7b0;border-radius:7px;background:#eeeddf;color:#53634e;font-size:12px;line-height:1.6}
.context-popover .upgrade-original strong{font-size:13px;color:#405849}
.context-popover .upgrade-original p{margin:0}
.context-popover .upgrade-branch{min-height:64px;padding:12px;border-color:#b6c7b3;background:#f8f6ea;gap:7px}
.context-popover .upgrade-branch strong{font-size:15px;line-height:1.5;color:#305d4e;overflow-wrap:anywhere}
.context-popover .upgrade-branch .upgrade-path,.context-popover .upgrade-branch .current{font-size:11px;line-height:1.5;color:#5d6a56}
.context-popover .upgrade-branch .new{font-weight:750;color:#305d4e}
.context-popover .upgrade-branch:focus-visible{outline:3px solid #39746c;outline-offset:2px}
.context-popover .bid-projection{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:7px 12px;padding:10px 12px;border:1px solid #b8c9b4;border-radius:8px;background:#eaf0e3;color:#385544;font-size:12px;line-height:1.5;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.context-popover .bid-projection strong{grid-column:1 / -1;font-size:20px;line-height:1.2;color:#305d4e}

@media(max-width:760px){
 #boardTable{--mat-dock-width:min(300px,76vw)}
 #boardTable #dockMat .player-mat[data-flow="inspect"]{grid-template-areas:"core" "guide" "tabs" "zone"}
 #boardTable #dockMat .player-mat[data-flow="inspect"] .mat-wing{grid-area:zone}
 #boardTable #dockMat .flow-guide{padding:9px 9px 8px}
 #boardTable #dockMat .flow-title{font-size:17px}
 #boardTable #dockMat .flow-steps{gap:3px;margin-top:8px}
 #boardTable #dockMat .flow-step{font-size:9px}
 #boardTable #dockMat .hand-cards,#boardTable #dockMat .preparation-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #boardTable #dockMat .hand-stack-controls{grid-template-columns:repeat(2,minmax(44px,1fr));gap:0;padding:0}
 #boardTable #dockMat .hand-stack-step{width:100%;min-width:44px}
 #boardTable #dockMat .hand-stack-step:first-child{grid-column:1;grid-row:1}
 #boardTable #dockMat .hand-stack-step:last-child{grid-column:2;grid-row:1}
 #boardTable #dockMat .hand-stack-quantity{grid-column:1 / -1;grid-row:2;padding:0 2px 4px}
 #boardTable #dockMat[data-flow="plan"] .zone-slots{gap:4px}
 #boardTable #dockMat .plan-slot{min-height:68px;padding:7px 4px}
 #boardTable #dockMat .plan-slot .name{font-size:10px}
 #boardTable #dockMat[data-flow="plan"] .empty-slot{height:68px;min-height:68px}
 #boardTable #dockMat .mat-utility{padding:8px;font-size:11px}
}
