/* [project]/apps/web/src/app/globals.css [app-client] (css) */
:root {
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
  --bg: #f7f8fa;
  --ink: #172033;
  --muted: #697386;
  --blue: #2563eb;
  --green: #0f766e;
  --gold: #8a6400;
  --red: #b42318;
  --card: #fff;
  --line: #18213a1f;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--ink);
  margin: 0;
  font-family: Arial, PingFang SC, Microsoft YaHei, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  z-index: 10;
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  background: #f7f8faeb;
  justify-content: space-between;
  align-items: center;
  padding: 14px 40px;
  display: flex;
  position: sticky;
  top: 0;
}

.brand {
  font-size: 20px;
  font-weight: 900;
}

.site-header nav {
  color: var(--muted);
  gap: 18px;
  font-weight: 700;
  display: flex;
}

.page-shell {
  width: min(1180px, 100% - 40px);
  margin: 0 auto;
  padding: 32px 0 72px;
}

.practice-shell {
  width: min(1520px, 100% - 28px);
  margin: 0 auto;
  padding: 18px 0 56px;
}

.hero, .page-heading, .table-card, .panel-card, .module-card, .timeline-card, .panel-wide {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 8px;
  box-shadow: 0 14px 34px #18213a0f;
}

.hero {
  color: #fff;
  background: #173f35;
  padding: 44px;
}

.eyebrow {
  color: var(--gold);
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 900;
}

.hero .eyebrow {
  color: #b8d5ff;
}

h1, h2, p {
  margin-top: 0;
}

h1 {
  letter-spacing: 0;
  max-width: 820px;
  margin-bottom: 18px;
  font-size: 48px;
  line-height: 1.08;
}

h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero p {
  color: #ffffffd1;
  max-width: 680px;
  font-size: 18px;
}

.hero-actions, .button-row {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  display: flex;
}

.hero-actions a, .button-row button {
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 13px 20px;
  font-weight: 900;
}

.hero-actions a + a, .button-row button + button {
  color: var(--ink);
  background: #fff;
}

.module-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
  display: grid;
}

.module-card, .page-heading, .table-card, .panel-card, .timeline-card, .panel-wide {
  padding: 28px;
}

.practice-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 24px;
  display: grid;
}

.practice-side {
  gap: 16px;
  display: grid;
  position: sticky;
  top: 78px;
}

.stack {
  gap: 24px;
  display: grid;
}

.table-header, .seat-title {
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  display: flex;
}

.contract-pill, .seat-title em, .status-box {
  color: var(--blue);
  white-space: nowrap;
  background: #eef4ff;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.current-trick {
  background: #f8faff;
  border-radius: 8px;
  justify-content: space-between;
  margin: 18px 0;
  padding: 16px 18px;
  display: flex;
}

.deal-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
  display: grid;
}

.deal-stats div {
  border: 1px solid var(--line);
  background: #fbfcfe;
  border-radius: 8px;
  padding: 10px 12px;
}

.deal-stats span {
  color: var(--muted);
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 800;
  display: block;
}

.deal-stats strong {
  min-height: 22px;
  font-size: 15px;
  display: block;
}

.table-status {
  border: 1px solid var(--line);
  border-radius: 8px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 12px 14px;
  display: grid;
}

.table-status p {
  margin: 0;
}

.table-status button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 800;
}

.seat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  display: grid;
}

.bridge-table {
  background: #edf2f0;
  border: 1px solid #1720331a;
  border-radius: 8px;
  grid-template-columns: minmax(168px, .82fr) minmax(300px, 1.22fr) minmax(168px, .82fr);
  grid-template-areas: ". north ."
                       "west center east"
                       ". south .";
  align-items: center;
  gap: 14px;
  padding: 16px;
  display: grid;
}

.seat-area {
  min-width: 0;
}

.seat-north {
  grid-area: north;
}

.seat-west {
  grid-area: west;
}

.seat-east {
  grid-area: east;
}

.seat-south {
  grid-area: south;
}

.table-center {
  grid-area: center;
  min-width: 0;
}

.felt {
  background: linear-gradient(145deg, #ffffff14, #00000014), #1d6758;
  border: 1px solid #ffffff57;
  border-radius: 8px;
  place-items: center;
  min-height: 330px;
  display: grid;
  position: relative;
  box-shadow: inset 0 0 0 6px #ffffff14, inset 0 18px 54px #00000038;
}

.compass {
  color: #ffffff8f;
  pointer-events: none;
  font-weight: 900;
  position: absolute;
  inset: 18px;
}

.compass span {
  position: absolute;
}

.compass span:first-child {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.compass span:nth-child(2) {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.compass span:nth-child(3) {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.compass span:nth-child(4) {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.trick-layout {
  aspect-ratio: 1;
  width: min(260px, 72%);
  position: relative;
}

.trick-slot {
  place-items: center;
  gap: 4px;
  width: 74px;
  min-height: 96px;
  display: grid;
  position: absolute;
}

.trick-slot small {
  color: #ffffffb8;
  font-size: 12px;
  font-weight: 900;
}

.trick-n {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.trick-e {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.trick-s {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.trick-w {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.trick-slot > i {
  border: 1px dashed #ffffff57;
  border-radius: 7px;
  width: 48px;
  height: 66px;
  display: block;
}

.played-card, .playing-card {
  background: #fff;
  border: 1px solid #17203326;
  border-radius: 7px;
  place-items: center;
  font-weight: 900;
  display: grid;
  box-shadow: 0 8px 18px #1720331f;
}

.played-card {
  width: 50px;
  height: 68px;
  padding: 5px;
  font-size: 15px;
}

.center-summary {
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: #ffffff1f;
  border-radius: 8px;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  font-size: 13px;
  display: flex;
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
}

.center-summary strong {
  text-align: right;
}

.seat-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 18px;
}

.bridge-seat {
  padding: 12px;
}

.seat-card.active {
  border-color: #2563eb99;
  box-shadow: inset 0 0 0 1px #2563eb3d;
}

.seat-title span {
  color: var(--muted);
  margin-top: 4px;
  font-size: 13px;
  display: block;
}

.suit-row {
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 6px;
  min-width: 0;
  margin-top: 9px;
  display: grid;
}

.suit-row > span {
  color: var(--green);
  font-weight: 900;
}

.suit-row div {
  flex-wrap: nowrap;
  align-items: center;
  min-width: 0;
  display: flex;
  overflow: visible;
}

.suit-row .playing-card + .playing-card {
  margin-left: -32px;
}

.suit-row small {
  color: var(--muted);
}

.hand {
  overflow: visible;
}

.bridge-seat .hand {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 10px;
  display: grid;
}

.hand .suit-row {
  min-height: 66px;
}

.played-card, .playing-card {
  background: linear-gradient(145deg, #ffffffeb, #f5f7fbf5), #fff;
  border: 1px solid #17203329;
  border-radius: 8px;
  font-weight: 900;
  position: relative;
  overflow: hidden;
  box-shadow: 0 9px 18px #17203321;
}

.playing-card {
  width: 50px;
  height: 68px;
  color: inherit;
  flex: 0 0 50px;
  padding: 0;
  transition: transform .14s, border-color .14s, box-shadow .14s, margin .14s;
}

.playing-card:hover, .playing-card.legal-card:hover {
  transform: translateY(-7px);
}

.playing-card:disabled {
  cursor: default;
  opacity: .94;
}

.playing-card:disabled:hover {
  transform: none;
}

.playing-card.legal-card {
  border-color: #0f766ea6;
  box-shadow: 0 12px 26px #0f766e38;
}

.card-corner {
  z-index: 2;
  justify-items: center;
  gap: 0;
  width: 20px;
  line-height: 1;
  display: grid;
  position: absolute;
}

.card-corner-top {
  top: 2px;
  left: 2px;
}

.card-corner-bottom {
  bottom: 2px;
  right: 2px;
  transform: rotate(180deg);
}

.card-corner b {
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  width: 16px;
  font-family: Arial Narrow, Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 900;
  display: block;
}

.card-corner b.ten-rank {
  letter-spacing: -2px;
  transform-origin: center;
  font-size: 12px;
  transform: translateX(-1px)scaleX(.82);
}

.card-corner i {
  font-size: 13px;
  font-style: normal;
}

.pip-layout {
  color: currentColor;
  z-index: 1;
  font-size: 18px;
  line-height: 1;
  display: block;
  position: absolute;
  inset: 9px 12px;
}

.pip-layout:before {
  content: "";
  border: 1px dashed #17203329;
  border-radius: 6px;
  position: absolute;
  inset: 2px 1px;
}

.pip-item {
  font-style: normal;
  position: absolute;
  transform: translate(-50%, -50%);
}

.pip-1 {
  font-size: 31px;
}

.pip-7, .pip-8, .pip-9, .pip-10 {
  font-size: 15px;
}

.pip-pos-1-1, .pip-pos-3-2, .pip-pos-5-5, .pip-pos-9-5 {
  top: 50%;
  left: 50%;
}

.pip-pos-2-1, .pip-pos-3-1 {
  top: 24%;
  left: 50%;
}

.pip-pos-2-2, .pip-pos-3-3 {
  top: 76%;
  left: 50%;
  transform: translate(-50%, -50%)rotate(180deg);
}

.pip-pos-4-1, .pip-pos-5-1, .pip-pos-6-1, .pip-pos-7-1, .pip-pos-8-1, .pip-pos-9-1, .pip-pos-10-1 {
  top: 18%;
  left: 33%;
}

.pip-pos-4-2, .pip-pos-5-2, .pip-pos-6-2, .pip-pos-7-2, .pip-pos-8-2, .pip-pos-9-2, .pip-pos-10-2 {
  top: 18%;
  left: 67%;
}

.pip-pos-4-3, .pip-pos-5-3, .pip-pos-6-5, .pip-pos-7-6, .pip-pos-8-7, .pip-pos-9-7, .pip-pos-10-9 {
  top: 82%;
  left: 33%;
  transform: translate(-50%, -50%)rotate(180deg);
}

.pip-pos-4-4, .pip-pos-5-4, .pip-pos-6-6, .pip-pos-7-7, .pip-pos-8-8, .pip-pos-9-8, .pip-pos-10-10 {
  top: 82%;
  left: 67%;
  transform: translate(-50%, -50%)rotate(180deg);
}

.pip-pos-6-3, .pip-pos-7-4, .pip-pos-8-4, .pip-pos-10-5 {
  top: 50%;
  left: 33%;
}

.pip-pos-6-4, .pip-pos-7-5, .pip-pos-8-5, .pip-pos-10-6 {
  top: 50%;
  left: 67%;
}

.pip-pos-10-3 {
  top: 34%;
  left: 33%;
}

.pip-pos-10-8 {
  top: 66%;
  left: 67%;
  transform: translate(-50%, -50%)rotate(180deg);
}

.pip-pos-9-6 {
  top: 50%;
  left: 67%;
}

.pip-pos-9-3 {
  top: 34%;
  left: 50%;
}

.pip-pos-9-4 {
  top: 50%;
  left: 33%;
}

.pip-pos-9-7 {
  top: 66%;
  left: 50%;
  transform: translate(-50%, -50%)rotate(180deg);
}

.pip-pos-9-8 {
  top: 82%;
  left: 33%;
  transform: translate(-50%, -50%)rotate(180deg);
}

.pip-pos-9-9 {
  top: 82%;
  left: 67%;
  transform: translate(-50%, -50%)rotate(180deg);
}

.pip-pos-7-3, .pip-pos-8-3 {
  top: 34%;
  left: 50%;
}

.pip-pos-8-6 {
  top: 66%;
  left: 50%;
  transform: translate(-50%, -50%)rotate(180deg);
}

.pip-pos-10-4 {
  top: 34%;
  left: 67%;
}

.pip-pos-10-7 {
  top: 66%;
  left: 33%;
  transform: translate(-50%, -50%)rotate(180deg);
}

.face-art {
  z-index: 1;
  background: #fff8e8;
  border-radius: 4px;
  display: grid;
  position: absolute;
  inset: 11px 12px;
  overflow: hidden;
}

.face-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.red-suit {
  color: var(--red);
}

.black-suit {
  color: #111827;
}

.suit-row button:not(.playing-card) {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  min-width: 42px;
  padding: 6px 8px;
}

.suit-row div.legacy-wrap {
  flex-wrap: wrap;
}

.panel-card {
  position: static;
}

code {
  color: var(--ink);
  background: #f1f4f8;
  border-radius: 6px;
  margin: 0 4px;
  padding: 2px 6px;
  font-size: .9em;
  display: inline-block;
}

.status-box {
  white-space: normal;
  margin-top: 18px;
}

.solve-box {
  gap: 12px;
  margin-top: 18px;
  display: grid;
}

.solve-box > div {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  padding-bottom: 10px;
  display: flex;
}

.solve-box ul {
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.solve-box li {
  background: #f8faff;
  border-radius: 8px;
  justify-content: space-between;
  padding: 10px 12px;
  display: flex;
}

.timeline-card {
  gap: 16px;
  margin-bottom: 24px;
  display: grid;
}

.timeline-card article {
  border-bottom: 1px solid var(--line);
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding-bottom: 16px;
  display: grid;
}

.timeline-card article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.timeline-card span {
  width: 44px;
  height: 44px;
  color: var(--blue);
  background: #eef4ff;
  border-radius: 8px;
  place-items: center;
  font-weight: 900;
  display: grid;
}

.source-strip, .mono-line {
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 700;
}

.source-panel {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 10px 24px #1720330d;
}

.source-panel strong {
  color: var(--ink);
  line-height: 1.5;
  display: block;
}

.trick-history {
  color: var(--muted);
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  display: flex;
}

.trick-history strong, .trick-history span {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
}

.professional-table {
  background: #fdfefe;
  padding: 22px;
}

.pro-table-header {
  border-bottom: 1px solid var(--line);
  align-items: center;
  padding-bottom: 16px;
}

.pro-table-header h2 {
  margin-bottom: 0;
  font-size: 26px;
}

.header-actions {
  align-items: center;
  gap: 10px;
  display: flex;
}

.reset-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 900;
}

.professional-table .deal-stats {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  margin: 16px 0;
}

.professional-table .deal-stats div {
  background: #f7f9fb;
}

.teaching-workbench {
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: stretch;
  gap: 16px;
  display: grid;
}

.professional-table .bridge-table {
  background: linear-gradient(#ffffff85, #e3edeab8), #e7efed;
  border-color: #0f524829;
  min-width: 0;
}

.professional-table .seat-card {
  border-color: #1720331f;
  box-shadow: 0 10px 24px #1720330f;
}

.professional-table .seat-card.active {
  border-color: #0f766ec7;
  box-shadow: 0 0 0 2px #0f766e1f, 0 14px 28px #0f766e1c;
}

.professional-table .felt {
  background: radial-gradient(circle at 50% 44%, #ffffff1c, #0000 46%), linear-gradient(145deg, #ffffff14, #0000001f), #0f5a4c;
  min-height: 360px;
}

.teaching-rail {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  align-content: start;
  gap: 12px;
  padding: 14px;
  display: grid;
  box-shadow: 0 10px 24px #1720330d;
}

.rail-section {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.rail-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rail-section h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.rail-section p {
  margin-bottom: 0;
}

.rail-label {
  color: var(--muted);
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 900;
}

.legal-list {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

.legal-list span {
  border: 1px solid var(--line);
  background: #fbfcfe;
  border-radius: 6px;
  padding: 5px 7px;
  font-weight: 900;
}

.teaching-rail .trick-history {
  gap: 6px;
  margin-top: 0;
  display: grid;
}

.teaching-rail .trick-history strong, .teaching-rail .trick-history span {
  padding: 7px 8px;
  font-size: 13px;
}

.pbn-table-shell {
  background: #d9ddd7;
  border: 1px solid #10472c6b;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 40px #1720331f;
}

.pbn-titlebar {
  color: #233225;
  background: #e9eee9;
  border-bottom: 1px solid #17203338;
  place-items: center;
  min-height: 34px;
  font-weight: 900;
  display: grid;
}

.pbn-felt {
  color: #f7fff6;
  background-color: #145d22;
  background-image: linear-gradient(90deg, #ffffff09 1px, #0000 1px), linear-gradient(#ffffff09 1px, #0000 1px), none;
  background-position: 0 0, 0 0, 0 0;
  background-repeat: repeat, repeat, repeat;
  background-size: 34px 34px;
  background-attachment: scroll, scroll, scroll;
  background-origin: padding-box, padding-box, padding-box;
  background-clip: border-box, border-box, border-box;
  grid-template: "info north focus" 178px
                 "west center east" 260px
                 "lesson south score" 178px
                 / 1fr 1fr 1fr;
  gap: 18px 28px;
  min-height: 760px;
  padding: 20px;
  display: grid;
}

.pbn-panel {
  background: #0c4919b8;
  border: 2px solid #ffffffa8;
  border-radius: 5px;
  padding: 12px;
  box-shadow: inset 0 0 0 1px #0000003d;
}

.board-panel {
  grid-area: info;
}

.board-panel strong {
  color: #fff;
  margin-bottom: 8px;
  font-size: 16px;
  display: block;
}

.board-panel dl {
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
  margin: 0;
  display: grid;
}

.board-panel div {
  grid-template-columns: 44px 1fr;
  align-items: baseline;
  gap: 8px;
  display: grid;
}

.board-panel dt, .board-panel dd {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.board-panel dt {
  color: #ffffffc2;
}

.focus-panel {
  grid-area: focus;
  align-content: center;
  gap: 10px;
  display: grid;
}

.focus-panel strong {
  color: #fff;
  font-size: 18px;
}

.focus-panel p {
  color: #ffffffd6;
  margin: 0;
}

.focus-panel div {
  color: #ffffffd1;
  border-top: 1px solid #ffffff3d;
  justify-content: space-between;
  padding-top: 10px;
  font-weight: 900;
  display: flex;
}

.focus-panel b {
  color: #fff;
}

.hand-zone {
  align-content: center;
  min-width: 0;
  display: grid;
}

.north-hand {
  grid-area: north;
  align-content: start;
}

.west-hand {
  grid-area: west;
}

.east-hand {
  grid-area: east;
}

.south-hand {
  grid-area: south;
  align-content: end;
}

.player-label {
  color: #fff;
  text-shadow: 0 1px 2px #00000073;
  justify-self: center;
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 900;
}

.card-strip {
  gap: 6px;
  display: grid;
}

.seat-caption {
  color: #fff;
  text-shadow: 0 1px 2px #00000073;
  justify-content: center;
  gap: 10px;
  font-weight: 900;
  display: flex;
}

.seat-caption small {
  color: #ffffffd6;
  font-size: 13px;
}

.strip-cards {
  justify-content: center;
  align-items: center;
  min-width: 0;
  display: flex;
  overflow: visible;
}

.strip-cards .playing-card + .playing-card {
  margin-left: -47px;
}

.pbn-felt .playing-card {
  border-radius: 7px;
  flex-basis: 68px;
  width: 68px;
  height: 96px;
  box-shadow: 0 4px 10px #00000038;
}

.pbn-felt .playing-card:disabled {
  opacity: 1;
}

.pbn-felt .playing-card.legal-card {
  border-color: #f7f0b7;
  box-shadow: 0 0 0 2px #f7f0b7cc, 0 8px 16px #00000047;
}

.pbn-felt .card-corner {
  width: 20px;
  font-size: 13px;
}

.pbn-felt .card-corner b {
  font-size: 14px;
}

.pbn-felt .card-corner b.ten-rank {
  font-size: 12px;
}

.pbn-felt .card-corner i {
  font-size: 16px;
}

.pbn-felt .pip-layout {
  font-size: 17px;
  inset: 11px 15px;
}

.pbn-felt .pip-7, .pbn-felt .pip-8, .pbn-felt .pip-9, .pbn-felt .pip-10 {
  font-size: 12px;
}

.pbn-felt .face-art {
  inset: 14px 15px;
}

.pbn-felt .face-head {
  width: 14px;
  height: 14px;
}

.center-play {
  grid-area: center;
  min-height: 260px;
  position: relative;
}

.table-card-slot {
  place-items: center;
  gap: 4px;
  display: grid;
  position: absolute;
}

.table-card-slot small {
  color: #ffffffd1;
  text-shadow: 0 1px 2px #00000073;
  font-weight: 900;
}

.table-card-n {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.table-card-e {
  top: 50%;
  right: 16%;
  transform: translateY(-50%);
}

.table-card-s {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.table-card-w {
  top: 50%;
  left: 16%;
  transform: translateY(-50%);
}

.center-play .played-card, .center-play .table-card-slot > i {
  width: 76px;
  height: 106px;
}

.center-play .played-card {
  background: #fff;
  padding: 5px;
}

.center-play .table-card-slot > i {
  border: 1px dashed #ffffff61;
  border-radius: 8px;
}

.lesson-panel {
  grid-area: lesson;
  align-content: center;
  gap: 12px;
  display: grid;
}

.lesson-panel strong {
  color: #fff;
  font-size: 16px;
}

.lesson-panel p {
  color: #ffffffdb;
  margin: 0;
}

.lesson-panel .reset-button {
  justify-self: center;
  min-width: 130px;
}

.score-panel {
  text-align: center;
  grid-area: score;
  align-content: center;
  gap: 16px;
  display: grid;
}

.score-panel div {
  justify-content: center;
  gap: 42px;
  display: flex;
}

.score-panel strong, .score-panel span {
  color: #fff;
  font-weight: 900;
}

.pbn-controls button {
  color: #172033;
  background: #f7fbf4;
  border: 0;
  border-radius: 6px;
  padding: 5px 12px;
  font-weight: 900;
}

.card-review-page {
  width: min(1480px, 100% - 40px);
}

.card-proof-board {
  background: #1b1b1b;
  border-radius: 8px;
  gap: 18px;
  padding: 20px;
  display: grid;
}

.proof-row {
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 14px;
  display: grid;
}

.proof-label {
  color: #fff;
  font-weight: 900;
}

.proof-cards {
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}

.proof-cards .playing-card {
  aspect-ratio: 5 / 7;
  width: 100%;
  min-width: 70px;
  max-width: 110px;
  height: auto;
  box-shadow: none;
}

.proof-cards .playing-card:disabled {
  opacity: 1;
}

.proof-cards .card-corner {
  width: 24px;
}

.proof-cards .card-corner b, .proof-cards .card-corner b.ten-rank {
  font-size: 18px;
}

.proof-cards .card-corner i {
  font-size: 20px;
}

.proof-cards .pip-layout {
  font-size: 26px;
  inset: 18px 22px;
}

.proof-cards .pip-1 {
  font-size: 44px;
}

.proof-cards .pip-7, .proof-cards .pip-8, .proof-cards .pip-9, .proof-cards .pip-10 {
  font-size: 22px;
}

.proof-cards .face-art {
  inset: 22px;
}

.proof-cards .face-crown {
  width: 30px;
  height: 14px;
  font-size: 14px;
}

.proof-cards .face-head {
  width: 20px;
  height: 20px;
  top: 17px;
}

.proof-cards .face-body {
  width: 45px;
  height: 33px;
  top: 38px;
}

.proof-cards .face-sash {
  width: 48px;
  height: 7px;
  top: 45px;
}

.proof-cards .face-art b {
  font-size: 18px;
  bottom: 4px;
  right: 5px;
}

.schema-grid, .lesson-list {
  gap: 12px;
  margin-top: 18px;
  display: grid;
}

.schema-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.schema-grid article, .lesson-list article {
  border: 1px solid var(--line);
  background: #fbfcfe;
  border-radius: 8px;
  padding: 14px;
}

.lesson-list article {
  grid-template-columns: 72px 180px 1fr 80px;
  align-items: center;
  gap: 12px;
  display: grid;
}

.lesson-list p, .schema-grid p {
  margin: 4px 0 0;
}

.lesson-list span, .lesson-list small {
  color: var(--green);
  font-weight: 900;
}

.teacher-workspace {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  width: min(1580px, 100% - 28px);
  margin: 0 auto;
  padding: 18px 0 56px;
  display: grid;
}

.teacher-board-panel, .builder-panel {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 14px 34px #18213a0f;
}

.teacher-board-panel {
  padding: 18px;
}

.teacher-toolbar, .deal-status, .teacher-seat header, .teacher-form-row, .teacher-actions {
  align-items: center;
  display: flex;
}

.teacher-toolbar {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.teacher-toolbar h1 {
  margin: 0;
  font-size: 30px;
}

.teacher-actions {
  gap: 10px;
}

.teacher-actions button, .builder-panel button {
  color: #fff;
  background: #1d4ed8;
  border: 0;
  border-radius: 7px;
  padding: 10px 14px;
  font-weight: 900;
}

.teacher-actions button + button {
  background: #0f766e;
}

.deal-status {
  color: var(--muted);
  background: #f8fafc;
  border: 1px solid #18213a1a;
  border-radius: 8px;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.deal-status strong {
  color: var(--green);
}

.teacher-deal-table {
  background-color: #0f5f28;
  background-image: linear-gradient(#ffffff0b 1px, #0000 1px), linear-gradient(90deg, #ffffff0b 1px, #0000 1px), none;
  background-position: 0 0, 0 0, 0 0;
  background-repeat: repeat, repeat, repeat;
  background-size: 56px 56px;
  background-attachment: scroll, scroll, scroll;
  background-origin: padding-box, padding-box, padding-box;
  background-clip: border-box, border-box, border-box;
  border: 1px solid #ffffff2e;
  border-radius: 8px;
  grid-template-columns: minmax(310px, 1fr) minmax(190px, .7fr) minmax(310px, 1fr);
  grid-template-areas: ". north ."
                       "west center east"
                       ". south .";
  gap: 16px;
  min-height: 720px;
  margin-top: 14px;
  padding: 18px;
  display: grid;
}

.teacher-seat {
  background: #063a1b94;
  border: 1px solid #ffffff5c;
  border-radius: 8px;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  display: grid;
}

.teacher-seat.drop-ready {
  border-color: #fff1b0d1;
}

.teacher-seat-n {
  grid-area: north;
}

.teacher-seat-e {
  grid-area: east;
}

.teacher-seat-s {
  grid-area: south;
}

.teacher-seat-w {
  grid-area: west;
}

.teacher-seat header {
  color: #fff;
  justify-content: space-between;
}

.teacher-seat header span {
  color: #fffc;
  font-weight: 900;
}

.teacher-suit-counts {
  color: #ffffffdb;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
  display: flex;
}

.teacher-hand-strip {
  align-items: center;
  min-height: 102px;
  display: flex;
  overflow: visible;
}

.teacher-card-wrap {
  flex: 0 0 68px;
  position: relative;
}

.teacher-card-wrap + .teacher-card-wrap {
  margin-left: -42px;
}

.teacher-card-wrap .playing-card {
  border-radius: 7px;
  flex-basis: 68px;
  width: 68px;
  height: 96px;
  box-shadow: 0 5px 12px #00000042;
}

.teacher-card-wrap .playing-card:hover {
  transform: translateY(-8px);
}

.teacher-table-center {
  color: #ffffffe0;
  text-align: center;
  border: 1px dashed #ffffff6b;
  border-radius: 8px;
  grid-area: center;
  place-self: center stretch;
  place-items: center;
  gap: 8px;
  min-height: 170px;
  font-weight: 900;
  display: grid;
}

.teacher-table-center span {
  font-size: 13px;
  font-weight: 700;
}

.teacher-side-panel {
  align-content: start;
  gap: 14px;
  display: grid;
  position: sticky;
  top: 86px;
}

.builder-panel {
  gap: 12px;
  padding: 16px;
  display: grid;
}

.builder-panel h2 {
  margin: 0;
  font-size: 20px;
}

.panel-title-row {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.panel-title-row button {
  padding: 8px 12px;
}

.builder-panel label {
  color: #344054;
  gap: 6px;
  font-size: 13px;
  font-weight: 900;
  display: grid;
}

.builder-panel input, .builder-panel select, .builder-panel textarea {
  width: 100%;
  color: var(--ink);
  background: #fbfcfe;
  border: 1px solid #18213a29;
  border-radius: 7px;
  padding: 10px 11px;
}

.teacher-form-row {
  gap: 10px;
}

.teacher-form-row label {
  flex: 1;
}

.pbn-import-box, .draft-json {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.mini-hint {
  word-break: break-all;
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.draft-json {
  color: #e5edf8;
  background: #0f172a;
  border: 1px solid #18213a1f;
  border-radius: 7px;
  max-height: 280px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
  overflow: auto;
}

.dds-review-panel p {
  margin: 0;
}

.dds-review {
  gap: 12px;
  display: grid;
}

.dds-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  display: grid;
}

.dds-summary-grid span {
  color: var(--muted);
  background: #f8fafc;
  border: 1px solid #18213a1a;
  border-radius: 7px;
  gap: 4px;
  padding: 8px;
  font-size: 12px;
  font-weight: 900;
  display: grid;
}

.dds-summary-grid strong {
  color: var(--ink);
  font-size: 16px;
}

.dds-verdict {
  border-radius: 7px;
  padding: 10px;
}

.dds-verdict.ok {
  background: #ecfdf5;
  border: 1px solid #0f766e33;
}

.dds-verdict.warn {
  background: #fff1f2;
  border: 1px solid #b4231833;
}

.dds-verdict strong {
  margin-bottom: 4px;
  display: block;
}

.dds-list {
  gap: 8px;
  display: grid;
}

.dds-list > strong {
  font-size: 13px;
}

.dds-list ul {
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.dds-list li {
  background: #fbfcfe;
  border: 1px solid #18213a1a;
  border-radius: 7px;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px;
  font-size: 13px;
  display: flex;
}

.dds-list li span {
  color: var(--muted);
  text-align: right;
}

.history-panel p {
  margin: 0;
}

.history-search {
  color: #344054;
  gap: 6px;
  font-size: 13px;
  font-weight: 900;
  display: grid;
}

.folder-list {
  gap: 6px;
  display: grid;
}

.folder-list button {
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid #18213a1a;
  border-radius: 7px;
  justify-content: space-between;
  align-items: center;
  padding: 9px 10px;
  display: flex;
}

.folder-list button.active {
  background: #ecfdf5;
  border-color: #0f766e80;
}

.folder-list button strong {
  color: var(--green);
}

.history-table {
  border: 1px solid #18213a1a;
  border-radius: 8px;
  max-height: 390px;
  display: grid;
  overflow: auto;
}

.history-table-head, .history-table article {
  grid-template-columns: minmax(0, 1fr) 78px 96px;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  display: grid;
}

.history-table-head {
  z-index: 1;
  color: var(--muted);
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 900;
  position: sticky;
  top: 0;
}

.history-table article {
  background: #fff;
  border-top: 1px solid #18213a14;
}

.history-table article.active {
  background: #ecfdf5;
}

.history-name-cell {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.history-name-cell strong, .history-name-cell span {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.history-name-cell span, .history-table time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.history-empty {
  padding: 12px;
}

.history-list {
  gap: 8px;
  max-height: 360px;
  padding-right: 2px;
  display: grid;
  overflow: auto;
}

.history-list article {
  background: #fbfcfe;
  border: 1px solid #18213a1a;
  border-radius: 8px;
  gap: 8px;
  padding: 10px;
  display: grid;
}

.history-list article.active {
  border-color: #0f766e8c;
  box-shadow: inset 0 0 0 1px #0f766e33;
}

.history-list article > div:first-child {
  gap: 3px;
  display: grid;
}

.history-list span, .history-list small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.history-actions {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  display: grid;
}

.history-actions button {
  background: #1d4ed8;
  padding: 8px 10px;
}

.history-actions button + button {
  background: #0f766e;
}

.history-practice-link {
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid #18213a1f;
  border-radius: 7px;
  place-items: center;
  padding: 10px 12px;
  font-weight: 900;
  display: grid;
}

.teacher-playtest-panel {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  margin-top: 18px;
  padding: 16px;
}

.teacher-playtest-panel .table-header {
  margin-bottom: 12px;
}

.teacher-playtest-panel .table-header h2 {
  margin: 0;
}

.teacher-playtest-panel .table-header button {
  color: #fff;
  background: #172033;
  border: 0;
  border-radius: 7px;
  padding: 9px 12px;
  font-weight: 900;
}

.teacher-playtest-panel .pbn-table-shell {
  margin: 0;
}

@media (max-width: 900px) {
  .site-header, .practice-layout, .practice-side, .module-grid, .seat-grid, .bridge-table, .teaching-workbench, .deal-stats, .schema-grid, .lesson-list article {
    grid-template-columns: 1fr;
  }

  .professional-table .deal-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-actions {
    justify-content: space-between;
    width: 100%;
  }

  .practice-side {
    position: static;
  }

  .bridge-table {
    grid-template-areas: "north"
                         "center"
                         "west"
                         "east"
                         "south";
    padding: 12px;
  }

  .felt {
    min-height: 280px;
  }

  .playing-card {
    width: 34px;
    height: 48px;
    font-size: 12px;
  }

  .site-header {
    gap: 12px;
    padding: 16px 20px;
    display: grid;
  }

  .hero {
    padding: 28px;
  }

  h1 {
    font-size: 36px;
  }

  .table-status {
    grid-template-columns: 1fr;
  }

  .panel-card {
    position: static;
  }

  .teacher-workspace {
    grid-template-columns: 1fr;
  }

  .teacher-side-panel {
    position: static;
  }

  .teacher-deal-table {
    grid-template-columns: 1fr;
    grid-template-areas: "north"
                         "west"
                         "center"
                         "east"
                         "south";
    min-height: auto;
  }

  .teacher-card-wrap .playing-card {
    flex-basis: 56px;
    width: 56px;
    height: 78px;
  }

  .teacher-card-wrap {
    flex-basis: 56px;
  }

  .teacher-card-wrap + .teacher-card-wrap {
    margin-left: -35px;
  }
}

/*# sourceMappingURL=apps_web_src_app_globals_10btyws.css.map*/