.tic-tac-toe-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; margin-top: 16px; }
.tic-board-panel, .tic-settings { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.tic-board-panel { position: relative; overflow: hidden; background: linear-gradient(145deg, #fffefb 0%, #f4f8f5 100%); box-shadow: 0 16px 34px rgba(32,66,56,.08); }
.tic-board-panel::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .34; background-image: linear-gradient(rgba(44,102,84,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(44,102,84,.035) 1px, transparent 1px); background-size: 28px 28px; }
.tic-status, .tic-board, .tic-round-actions { position: relative; z-index: 1; }
.tic-status { display: flex; align-items: center; gap: 9px; margin-bottom: 20px; color: var(--ink); }
.tic-status-light { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(232,180,92,.18); }
.tic-status-light.won { background: var(--moss); box-shadow: 0 0 0 4px rgba(44,102,84,.14); }
.tic-status-light.draw { background: var(--muted); box-shadow: 0 0 0 4px rgba(113,128,124,.14); }
.tic-board { display: grid; grid-template-columns: repeat(3, minmax(82px, 132px)); grid-auto-rows: minmax(82px, 132px); justify-content: center; gap: 10px; max-width: 420px; margin: 0 auto; padding: 10px; border: 1px solid #bdd0c6; border-radius: 18px; background: #dcebe3; box-shadow: inset 0 2px 5px rgba(25,68,51,.1), 0 10px 20px rgba(32,66,56,.1); }
.tic-tac-toe-cell { display: grid; place-items: center; min-width: 0; border: 1px solid #d5e1db; border-radius: 12px; color: var(--ink); background: linear-gradient(145deg, #ffffff, #f7faf8); font-family: Georgia, serif; font-size: clamp(42px, 8vw, 70px); line-height: 1; cursor: pointer; box-shadow: 0 4px 0 #d3dfd8, 0 7px 12px rgba(32,66,56,.08); transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease; }
.tic-tac-toe-cell:not(:disabled):hover { transform: translateY(-3px); border-color: var(--moss); background: #fff; box-shadow: 0 7px 0 #c4d7cc, 0 12px 18px rgba(32,66,56,.13); }
.tic-tac-toe-cell.mark-x { color: #256b58; text-shadow: 2px 3px 0 #d6ebe2; }
.tic-tac-toe-cell.mark-o { color: #b84a4a; text-shadow: 2px 3px 0 #f2d9d4; }
.tic-tac-toe-cell.winner { border-color: var(--gold); background: linear-gradient(145deg, #fffdf2, #fff7dd); box-shadow: 0 4px 0 #e0c875, 0 0 0 3px rgba(232,180,92,.23), 0 12px 20px rgba(137,99,22,.15); }
.tic-tac-toe-cell:disabled { cursor: default; }
.tic-reduced-motion .tic-tac-toe-cell, .tic-reduced-motion .tic-tac-toe-cell:not(:disabled):hover { transition: none; transform: none; }
.tic-round-actions { display: flex; justify-content: space-between; gap: 12px; align-items: center; max-width: 420px; margin: 18px auto 0; }
.tic-settings { display: grid; align-content: start; gap: 14px; }
.tic-settings label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; }
.tic-settings select { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fbfdfb; font-size: 11px; }
.tic-scoreboard { margin-top: 8px; padding-top: 15px; border-top: 1px solid var(--line); }
.tic-scoreboard h3 { margin: 0 0 10px; font-size: 12px; }
.tic-scoreboard > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tic-scoreboard span { display: grid; gap: 5px; color: var(--muted); font-size: 9px; }
.tic-scoreboard strong { color: var(--ink); font-family: Georgia, serif; font-size: 22px; font-weight: normal; }
.tic-header .eyebrow { color: #a37218; }
.tic-header h1 { letter-spacing: -.02em; }
.tic-clear-score { justify-self: start; }
@media (max-width: 800px) { .tic-tac-toe-layout { grid-template-columns: 1fr; }.tic-settings { order: -1; } }
@media (max-width: 520px) { .tic-header-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }.tic-board-panel, .tic-settings { padding: 14px; }.tic-board { grid-template-columns: repeat(3, minmax(65px, 1fr)); grid-auto-rows: minmax(65px, 1fr); gap: 7px; padding: 7px; }.tic-round-actions { display: grid; justify-content: stretch; }.tic-round-actions .text-button { justify-self: start; } }
.chess-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; margin-top: 16px; }
.chess-board-panel, .chess-sidebar { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.chess-board-panel { background: linear-gradient(145deg, #f8f5ec, #e7eee9); box-shadow: 0 16px 32px rgba(32,66,56,.1); }
.chess-board { display: grid; grid-template-columns: repeat(8, minmax(34px, 76px)); grid-template-rows: repeat(8, minmax(34px, 76px)); width: min(100%, 640px); aspect-ratio: 1; margin: 14px auto; overflow: hidden; border: 8px solid #243c35; border-radius: 7px; box-shadow: 0 12px 25px rgba(24,48,39,.22); }
.chess-square { position: relative; display: grid; place-items: center; min-width: 0; border: 0; color: #1e302b; cursor: pointer; }
.chess-square.light { background: #f1e8d4; }
.chess-square.dark { background: #789b86; }
.chess-square.selected { box-shadow: inset 0 0 0 4px #e5b64f; }
.chess-square.legal::after { content: ''; width: 22%; aspect-ratio: 1; border-radius: 50%; background: rgba(31,64,50,.36); }
.chess-square.legal:has(.chess-piece)::after { width: 82%; border: 4px solid rgba(201,77,63,.72); background: transparent; }
.chess-square.last-move { background: #e6c56c; }
.chess-square small { position: absolute; right: 4px; bottom: 3px; color: rgba(24,48,39,.6); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.chess-square.dark small { color: rgba(255,255,255,.72); }
.chess-piece { position: relative; z-index: 1; font-family: 'Times New Roman', serif; font-size: clamp(30px, 6vw, 58px); line-height: 1; text-shadow: 0 2px 1px rgba(0,0,0,.22); user-select: none; }
.white-piece { color: #fffdf5; text-shadow: 0 2px 0 #53635c, 0 3px 5px rgba(0,0,0,.28); }
.black-piece { color: #202e2a; }
.chess-player-bar { display: flex; align-items: center; gap: 10px; max-width: 640px; margin: 0 auto; padding: 9px 12px; border: 1px solid rgba(35,64,52,.12); border-radius: 9px; background: rgba(255,255,255,.6); }
.chess-player-bar span:nth-child(2) { display: grid; gap: 2px; flex: 1; }
.chess-player-bar strong { font-size: 12px; }
.chess-player-bar small { color: var(--muted); font-size: 9px; }
.chess-player-piece { font-size: 25px; }
.chess-turn-badge { color: var(--moss-dark); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.chess-clock { min-width: 58px; padding: 5px 8px; border-radius: 6px; color: #fff; background: #243c35; font-family: Georgia, serif; font-size: 16px; text-align: center; }
.chess-clock.low-time { color: #fff; background: #b84a4a; }
.chess-status { max-width: 640px; margin: 13px auto 0; color: var(--moss-dark); font-size: 11px; font-weight: 700; text-align: center; }
.chess-status span { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--gold); }
.chess-captured { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; max-width: 640px; min-height: 27px; margin: 10px auto 0; color: var(--muted); font-size: 9px; }
.chess-captured > span:first-child { margin-right: 7px; text-transform: uppercase; letter-spacing: .08em; }
.captured-piece { font-family: 'Times New Roman', serif; font-size: 20px; line-height: 1; }
.chess-match-actions { display: flex; justify-content: center; gap: 14px; max-width: 640px; margin: 4px auto 0; }
.chess-sidebar { display: grid; align-content: start; gap: 13px; }
.chess-sidebar label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; }
.chess-sidebar select { padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fbfdfb; font-size: 11px; }
.chess-sidebar-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.chess-sidebar-actions button { justify-content: center; padding: 8px 6px; font-size: 10px; }
.chess-history { padding-top: 13px; border-top: 1px solid var(--line); }
.chess-history .panel-head { margin-bottom: 8px; }
.chess-history .panel-head h2 { font-size: 13px; }
.chess-history > div:last-child { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-height: 220px; overflow-y: auto; color: var(--muted); font-family: Georgia, serif; font-size: 11px; }
.chess-export-actions { display: flex; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
@media (max-width: 800px) { .chess-layout { grid-template-columns: 1fr; }.chess-sidebar { order: -1; }.chess-sidebar-actions { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .chess-header-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }.chess-board-panel, .chess-sidebar { padding: 12px; }.chess-board { border-width: 5px; }.chess-square small { right: 2px; bottom: 1px; font-size: 7px; }.chess-piece { font-size: clamp(24px, 11vw, 43px); }.chess-sidebar-actions { grid-template-columns: 1fr 1fr; } }
.document-toolbar-group { display: inline-flex; flex: 0 0 auto !important; gap: 3px; align-items: center; padding-right: 5px; border-right: 1px solid var(--line); }
.document-toolbar-group:last-child { border-right: 0; }
.document-editor-toolbar select { flex: 0 0 auto; max-width: 120px; padding: 5px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--moss-dark); background: #fbfdfb; font-size: 10px; }
.document-editor-toolbar button { white-space: nowrap; }
.document-color-control { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; color: var(--moss-dark); font-size: 11px; font-weight: 700; }
.document-color-control input { width: 19px; height: 19px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.document-editor { max-width: 860px; min-height: 690px; margin: 14px auto; border: 1px solid #e4e9e5; box-shadow: 0 8px 24px rgba(32,66,56,.06); }
.document-editor table { width: 100%; margin: 18px 0; border-collapse: collapse; table-layout: fixed; }
.document-editor td, .document-editor th { min-width: 70px; padding: 9px; border: 1px solid #cfdad4; vertical-align: top; }
.document-editor th { color: var(--moss-dark); background: var(--mint); font-weight: 700; }
.document-page-break { height: 28px; margin: 28px -42px; border-top: 2px dashed var(--gold); page-break-after: always; }
.document-editor.document-layout-reading { max-width: 820px; margin: 0 auto; font-size: 17px; line-height: 1.85; }
.document-editor.document-layout-focus { min-height: 70vh; padding-right: 12%; padding-left: 12%; font-size: 17px; line-height: 1.85; }
.document-editor:focus { box-shadow: inset 0 0 0 2px rgba(44,102,84,.12); }
@media (max-width: 720px) { .document-toolbar-group { flex-wrap: wrap; }.document-editor-toolbar select { max-width: 96px; }.document-editor.document-layout-focus { padding-right: 20px; padding-left: 20px; }.document-editor { min-height: 520px; margin: 10px 0; padding: 20px; }.document-page-break { margin-right: -20px; margin-left: -20px; }.document-editor td, .document-editor th { min-width: 54px; padding: 6px; } }

/* Whot professional card system */
.whot-card {
  width: 76px;
  height: 108px;
  border: 1px solid #cfd5d2;
  border-radius: 8px;
  color: #c91f2d;
  background: #fffefa;
  box-shadow: 0 3px 8px rgba(12, 31, 25, .22), inset 0 0 0 2px rgba(255,255,255,.8);
  transition: transform .18s ease, box-shadow .18s ease;
}
.whot-card::before { inset: 3px; border: 1px solid rgba(201,31,45,.11); background: none; border-radius: 5px; }
.whot-card.large { width: 104px; height: 148px; }
.whot-card::after, .whot-card .corner-index { width: 25px; height: 29px; color: #c91f2d !important; font-family: Georgia, serif; font-size: .78rem; font-weight: 700; opacity: 1; }
.whot-card::after { top: 5px; left: 5px; }
.whot-card .corner-index { right: 5px; bottom: 5px; }
.whot-card .corner-shape { font-size: .82em; }
.whot-card.large::after, .whot-card.large .corner-index { width: 31px; height: 35px; font-size: .9rem; }
.whot-card-inner { padding: 12px 8px; }
.whot-card-shape { color: #c91f2d !important; font-family: Georgia, serif; font-size: 2.75rem; filter: none; }
.whot-card.large .whot-card-shape { font-size: 4rem; }
.whot-card-number { color: #c91f2d !important; font-family: Georgia, serif; font-size: 1.38rem; font-weight: 700; text-shadow: none; }
.whot-card.large .whot-card-number { font-size: 2.2rem; }
.whot-card-special { max-width: 64px; overflow: hidden; margin-top: 5px; padding: 3px 5px; border: 0; border-radius: 2px; color: #fffefa; background: #c91f2d; box-shadow: none; font-family: Arial, sans-serif; font-size: .48rem; letter-spacing: .04em; text-overflow: ellipsis; }
.whot-card.large .whot-card-special { max-width: 86px; font-size: .58rem; }
.whot-card:not(.face-down):hover { transform: translateY(-7px); box-shadow: 0 12px 20px rgba(12,31,25,.26); }
.whot-card.playable { border-color: #c91f2d; box-shadow: 0 0 0 3px rgba(201,31,45,.2), 0 5px 12px rgba(12,31,25,.2); animation: none; }
.whot-card.playable:hover { transform: translateY(-10px); box-shadow: 0 0 0 4px rgba(201,31,45,.25), 0 14px 24px rgba(12,31,25,.25); }
.whot-card.unplayable { opacity: .42; filter: grayscale(1); }
.whot-card.selected { transform: translateY(-14px); box-shadow: 0 0 0 4px #e2a31a, 0 16px 25px rgba(12,31,25,.28); }
.whot-card.circle, .whot-card.triangle, .whot-card.cross, .whot-card.square, .whot-card.star { background: #fffefa; border-color: #cfd5d2; }
.whot-card.circle .whot-card-shape, .whot-card.triangle .whot-card-shape, .whot-card.cross .whot-card-shape, .whot-card.square .whot-card-shape, .whot-card.star .whot-card-shape,
.whot-card.circle .whot-card-number, .whot-card.triangle .whot-card-number, .whot-card.cross .whot-card-number, .whot-card.square .whot-card-number, .whot-card.star .whot-card-number { color: #c91f2d !important; }
.whot-card.whot { border: 2px solid #c91f2d; background: #fffefa; box-shadow: 0 3px 10px rgba(12,31,25,.24), inset 0 0 0 3px rgba(201,31,45,.12); animation: none; }
.whot-card.whot .whot-card-shape { color: #c91f2d !important; animation: none; filter: none; }
.whot-card.whot .whot-card-special { background: #c91f2d; color: #fffefa; box-shadow: none; }
.whot-card.face-down { border: 2px solid #c91f2d; background: #c91f2d; box-shadow: 0 4px 12px rgba(12,31,25,.3); }
.whot-card.face-down::before { inset: 5px; border: 1px solid rgba(255,254,250,.8); background: repeating-linear-gradient(45deg, transparent 0 7px, rgba(255,254,250,.12) 7px 8px), repeating-linear-gradient(-45deg, transparent 0 7px, rgba(255,254,250,.12) 7px 8px); }
.whot-card-back { position: relative; z-index: 1; font-size: 0; font-family: Georgia, serif; font-weight: 700; color: #fffefa; animation: none; }
.whot-card-back::after { content: 'WHOT'; display: block; padding: 4px 3px; border: 1px solid rgba(255,254,250,.85); border-radius: 3px; font-size: .72rem; letter-spacing: .08em; }
body .whot-card.circle, body .whot-card.triangle, body .whot-card.cross, body .whot-card.square, body .whot-card.star, body .whot-card.whot { background: #fffefa; border-color: #c91f2d; color: #c91f2d; animation: none; }
body .whot-card.circle .whot-card-shape, body .whot-card.triangle .whot-card-shape, body .whot-card.cross .whot-card-shape, body .whot-card.square .whot-card-shape, body .whot-card.star .whot-card-shape, body .whot-card.whot .whot-card-shape { color: #c91f2d; animation: none; filter: none; }
body .whot-card.circle .whot-card-number, body .whot-card.triangle .whot-card-number, body .whot-card.cross .whot-card-number, body .whot-card.square .whot-card-number, body .whot-card.star .whot-card-number, body .whot-card.whot .whot-card-number { color: #c91f2d; }
body .whot-card.playable { animation: none; border-color: #c91f2d; }
body .whot-card:not(.face-down):hover .whot-card-shape { transform: none; }
 .admin-operations { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
 .admin-search { width: min(260px, 48%); padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; outline: 0; color: var(--ink); background: var(--surface); font-size: 10px; }
 .admin-org-results, .admin-activity-list, .admin-member-list { display: grid; }
.ludo-rules-grid { display: grid; gap: 7px; margin: 12px 0; }
.ludo-rule { display: flex; justify-content: space-between; gap: 12px; align-items: center; color: var(--muted); font-size: 12px; }
.ludo-rule select { padding: 5px 7px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
 .admin-org-result { display: grid; gap: 4px; width: 100%; padding: 11px 0; border: 0; border-top: 1px solid #edf1ef; color: var(--ink); background: transparent; text-align: left; }
 .admin-org-result:hover { background: #f7faf8; }
 .admin-org-result strong { font-size: 11px; }
 .admin-org-result small, .admin-activity-row small { color: var(--muted); font-size: 9px; }
 .admin-activity-row small { display: block; }
 .admin-detail-panel { margin-top: 16px; }
 .admin-detail-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; margin-bottom: 20px; }
 .admin-detail-grid div { display: grid; gap: 5px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; }
 .admin-detail-grid span { color: var(--muted); font-size: 9px; }
 .admin-detail-grid strong { font-size: 12px; }
 .admin-member-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid #edf1ef; font-size: 10px; }
 .admin-member-list span { color: var(--muted); }
 @media (max-width: 1050px) { .admin-operations { grid-template-columns: 1fr; } .admin-detail-grid { grid-template-columns: repeat(3, 1fr); } }
 @media (max-width: 720px) { .admin-search { width: 100%; margin-top: 10px; } .admin-detail-grid { grid-template-columns: 1fr 1fr; } .admin-member-list > div { display: grid; gap: 4px; } .admin-activity-row { display: grid; grid-template-columns: 1fr; gap: 3px; } }
.crm-operations { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: #f7faf8; }.crm-operations .primary-button { padding: 7px 10px; font-size: 10px; }.crm-operations .text-button { padding: 6px 7px; font-size: 10px; }
.folder-rename, .folder-delete { padding: 4px; border: 0; color: var(--moss); background: transparent; font-size: 9px; font-weight: bold; }.folder-delete { color: var(--coral); }
.center-hero { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 220px; margin-bottom: 14px; padding: 32px 36px; overflow: hidden; border-radius: 16px; color: #f7fbf7; background: #214b40; box-shadow: var(--shadow); }
.center-hero::after { content: ''; position: absolute; right: 8%; bottom: -100px; width: 280px; height: 280px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 24px rgba(255,255,255,.04), 0 0 0 48px rgba(255,255,255,.03); }
.center-hero h1 { max-width: 680px; margin-bottom: 10px; color: #fff; font-size: clamp(30px, 4vw, 48px); }
.crm-header { align-items: center; }
.crm-header-actions { display: flex; gap: 12px; align-items: center; }
.crm-kpi-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin-bottom: 16px; }
.center-hero p:not(.eyebrow) { max-width: 640px; margin-bottom: 0; color: #c9ded4; font-size: 13px; line-height: 1.6; }
.center-hero .eyebrow { color: #f3c878; }
.center-hero.finance { background: #4d4630; }.center-hero.security { background: #29464b; }.center-hero.inbox { background: #5b3f35; }.center-hero.planner { background: #3b4d39; }.center-hero.command { background: #334b4a; }.center-hero.integrations { background: #46503a; }.center-hero.collaboration { background: #4d3d4b; }.center-hero.knowledge { background: #3d4b42; }.center-hero.data { background: #3f4a52; }.center-hero.automation { background: #4c4138; }
.center-orbit { position: relative; z-index: 1; display: grid; place-items: center; width: 92px; height: 92px; margin-right: 5%; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: #f3c878; font-family: Georgia, serif; font-size: 28px; }
.center-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.center-metric { display: grid; gap: 5px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: 0 5px 15px rgba(40,70,60,.03); }
.center-metric strong { color: var(--ink); font-family: Georgia, serif; font-size: 25px; font-weight: normal; }.center-metric span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .7px; }
.center-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(250px, .7fr); gap: 16px; }.center-actions { display: grid; }.center-action { display: flex; gap: 13px; align-items: center; width: 100%; padding: 15px 0; border: 0; border-top: 1px solid #edf1ef; color: var(--ink); background: transparent; text-align: left; }.center-action:hover { color: var(--moss-dark); background: #f8fbf9; }.center-action-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px; color: var(--moss-dark); background: var(--mint); font-size: 11px; font-weight: bold; }.center-action span:nth-child(2) { min-width: 0; flex: 1; }.center-action strong, .center-action small { display: block; }.center-action strong { font-size: 12px; }.center-action small { margin-top: 4px; color: var(--muted); font-size: 10px; }.center-action b { color: var(--moss); font-size: 18px; font-weight: normal; }.center-insight { background: #fff8ed; border-color: #f0dfc4; }.center-insight h2 { margin-bottom: 10px; line-height: 1.2; }.center-insight .primary-button { margin-top: 16px; }
.center-dialog { width: min(440px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 14px; color: var(--ink); background: var(--surface); box-shadow: 0 24px 70px rgba(18,43,35,.24); }.center-dialog::backdrop { background: rgba(16,35,31,.42); }.center-dialog-form { position: relative; padding: 27px; }.center-dialog-form h2 { margin-bottom: 9px; }.dialog-close { position: absolute; top: 15px; right: 17px; border: 0; color: var(--muted); background: transparent; font-size: 22px; }.dialog-field { display: block; margin-top: 20px; color: var(--ink); font-size: 11px; font-weight: bold; }.dialog-field textarea { display: block; width: 100%; min-height: 82px; margin-top: 7px; resize: vertical; padding: 10px; border: 1px solid var(--line); border-radius: 7px; outline: 0; color: var(--ink); background: #fbfdfb; font-size: 12px; }.dialog-check { display: flex; gap: 8px; align-items: flex-start; margin-top: 15px; color: var(--muted); font-size: 11px; line-height: 1.4; }.dialog-check input { accent-color: var(--moss); margin-top: 2px; }.dialog-actions { display: flex; justify-content: flex-end; gap: 17px; align-items: center; margin-top: 22px; }.dialog-actions .primary-button { padding: 9px 12px; }
@media (max-width: 720px) { .notes-layout { display: block; }.notes-list { margin-bottom: 14px; }.note-editor { min-height: 430px; }.note-editor-head input { font-size: 19px; } }
@media (max-width: 720px) { .files-search { width: 120px; }.file-row { flex-wrap: wrap; }.file-row .item-copy { min-width: 0; }.file-actions { width: 100%; margin-left: 46px; } }
:root {
  --ink: #172a27;
  --muted: #71807c;
  --line: #dfe8e4;
  --paper: #f7f9f5;
  --surface: #ffffff;
  --moss: #2c6654;
  --moss-dark: #1d4b40;
  --mint: #dceee7;
  --coral: #d96c54;
  --gold: #e8b45c;
  --shadow: 0 18px 40px rgba(32, 66, 56, .08);
  --radius: 14px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

.route-loading { display: grid; place-items: center; min-height: 52vh; padding: 32px; text-align: center; }
.route-loading-mark { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 14px; color: #fff; background: var(--moss); font-weight: 800; box-shadow: 0 12px 24px rgba(44, 102, 84, .18); animation: route-loading-pulse 1.4s ease-in-out infinite; }
.route-loading h1 { margin: 0; font-size: 24px; }
.route-loading p { margin: 8px 0 0; }
@keyframes route-loading-pulse { 0%, 100% { transform: translateY(0); opacity: .75; } 50% { transform: translateY(-4px); opacity: 1; } }

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background-color: var(--paper); background-image: linear-gradient(rgba(44,102,84,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(44,102,84,.025) 1px, transparent 1px); background-size: 32px 32px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(232,180,92,.7); outline-offset: 2px; }
.app-shell { min-height: 100vh; display: flex; transition: background-color .25s ease; }
.app-shell.fullscreen { display: block; }
.app-shell.fullscreen .sidebar { display: none; }
.app-shell.fullscreen .main-content { min-height: 100vh; }
.app-shell.fullscreen .topbar { padding-right: 28px; }
.app-shell.fullscreen .topbar .breadcrumbs, .app-shell.fullscreen .topbar .global-search, .app-shell.fullscreen .topbar .notification-button, .app-shell.fullscreen .topbar .top-avatar, .app-shell.fullscreen .topbar .menu-toggle, .app-shell.fullscreen + .ai-fab { display: none; }
.app-shell.fullscreen .topbar { justify-content: flex-end; }
.app-shell.fullscreen .content-wrap { max-width: 1600px; min-height: calc(100vh - 76px); padding-top: 32px; transition: max-width .25s ease, padding .25s ease; }
.app-shell.module-maximized:not(.fullscreen) .content-wrap { max-width: none; padding-right: 24px; padding-left: 24px; }.app-shell.module-maximized:not(.fullscreen) .content-wrap > * { min-height: calc(100vh - 150px); }
.quick-access { display: none; position: relative; }.app-shell.fullscreen .quick-access { position: fixed; top: 21px; left: 24px; display: block; }.quick-access-toggle { width: 34px; height: 34px; border-radius: 7px; font-size: 23px; line-height: 1; }.quick-access-toggle:hover, .quick-access-toggle[aria-expanded="true"] { color: var(--moss-dark); background: var(--mint); }.quick-access-menu { position: fixed; top: 64px; left: 24px; z-index: 14; width: min(300px, calc(100vw - 28px)); max-height: calc(100vh - 86px); overflow-y: auto; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 14px 35px rgba(25,54,44,.18); }.quick-access-menu[hidden] { display: none; }.quick-access-heading { padding: 2px 6px 10px; color: var(--moss-dark); font-family: Georgia, serif; font-size: 17px; }.quick-access-section { padding: 9px 0; border-top: 1px solid #edf1ef; }.quick-access-section > span { display: block; padding: 0 6px 6px; color: var(--muted); font-size: 9px; font-weight: bold; letter-spacing: 1px; text-transform: uppercase; }.quick-access-item { display: flex; gap: 9px; align-items: center; width: 100%; padding: 8px 6px; border: 0; border-radius: 6px; color: var(--ink); background: transparent; text-align: left; }.quick-access-item:hover, .quick-access-item.active { color: var(--moss-dark); background: var(--mint); }.quick-access-item i { width: 18px; color: var(--moss); font-size: 15px; font-style: normal; text-align: center; }.quick-access-item strong { flex: 1; font-size: 11px; font-weight: normal; }.quick-access-item small { color: var(--muted); font-size: 9px; }.quick-access-actions { display: grid; gap: 3px; padding-top: 9px; border-top: 1px solid #edf1ef; }.quick-access-actions button { padding: 8px 6px; border: 0; border-radius: 6px; color: var(--moss-dark); background: transparent; font-size: 11px; text-align: left; }.quick-access-actions button:hover { background: var(--mint); }.quick-access-actions button:last-child:hover { color: var(--coral); background: #fff1ef; }
.sidebar { width: 248px; flex: 0 0 248px; padding: 28px 18px 20px; display: flex; flex-direction: column; background: #10231f; color: #e8f3ed; transition: width .25s ease, flex-basis .25s ease, padding .25s ease; }
.app-shell.sidebar-collapsed .sidebar { width: 76px; flex-basis: 76px; padding-right: 10px; padding-left: 10px; }.app-shell.sidebar-collapsed .brand-lockup { justify-content: center; padding-right: 0; padding-left: 0; }.app-shell.sidebar-collapsed .brand-lockup > div:last-child, .app-shell.sidebar-collapsed .nav-item > span:not(.nav-glyph), .app-shell.sidebar-collapsed .nav-label, .app-shell.sidebar-collapsed .storage-mini, .app-shell.sidebar-collapsed .profile-mini > div:not(.avatar), .app-shell.sidebar-collapsed .profile-mini > .icon-button { display: none; }.app-shell.sidebar-collapsed .nav-item { position: relative; justify-content: center; padding-right: 10px; padding-left: 10px; }.app-shell.sidebar-collapsed .nav-glyph { width: auto; }.app-shell.sidebar-collapsed .nav-item em { position: absolute; margin: -23px 0 0 24px; }.app-shell.sidebar-collapsed .sidebar-footer { padding-right: 0; padding-left: 0; }.app-shell.sidebar-collapsed .profile-mini { justify-content: center; }
.brand-lockup { display: flex; align-items: center; gap: 11px; padding: 0 10px 36px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--gold); color: var(--ink); font-family: Georgia, serif; font-size: 20px; font-weight: bold; }
.brand-lockup strong { display: block; font-family: Georgia, serif; font-size: 17px; letter-spacing: .2px; }
.brand-lockup span, .profile-mini span { display: block; color: #9cb3aa; font-size: 11px; margin-top: 3px; }
.primary-nav { flex: 1; }
.nav-label { margin: 23px 12px 8px; color: #69877b; font-size: 10px; font-weight: bold; letter-spacing: 1.5px; text-transform: uppercase; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 9px; padding: 11px 12px; color: #a9c0b7; background: transparent; text-align: left; font-size: 13px; transition: .2s ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-item.active { color: #17342b; background: #d8ece3; font-weight: bold; }
.nav-item.ai-nav { margin-bottom: 12px; color: #f6d68d; background: rgba(232,180,92,.1); }.nav-item.ai-nav em { margin-left: auto; padding: 3px 5px; border-radius: 4px; color: #17342b; background: var(--gold); font-size: 8px; font-style: normal; font-weight: bold; }
.nav-glyph { width: 17px; text-align: center; font-size: 16px; }

/* Business Modules Collapsible Section */
.nav-section { margin: 8px 0; }
.nav-section-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 9px;
  padding: 11px 12px;
  color: #a9c0b7;
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  transition: .2s ease;
  cursor: pointer;
}
.nav-section-header:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-section-header[aria-expanded="true"] { color: #17342b; background: #d8ece3; }
.nav-section-header .nav-glyph { width: 17px; text-align: center; font-size: 16px; }
.nav-section-chevron { margin-left: auto; font-size: 10px; transition: transform .2s ease; }
.nav-section-header[aria-expanded="true"] .nav-section-chevron { transform: rotate(180deg); }

.nav-section-content { overflow: hidden; max-height: 0; transition: max-height .25s ease, opacity .2s ease; opacity: 0; }
.nav-section-content.expanded { max-height: 500px; opacity: 1; }

.nav-sub-item { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 9px; padding: 9px 12px 9px 28px; color: #9cb3aa; background: transparent; text-align: left; font-size: 12px; transition: .2s ease; margin-top: 2px; }
.nav-sub-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-sub-item.active { color: #17342b; background: #d8ece3; font-weight: bold; }
.nav-sub-item .nav-glyph { width: 17px; text-align: center; font-size: 14px; }

/* Collapsed sidebar state for sub-items */
.app-shell.sidebar-collapsed .nav-section-header { justify-content: center; padding-right: 10px; padding-left: 10px; }
.app-shell.sidebar-collapsed .nav-section-header > span:not(.nav-glyph) { display: none; }
.app-shell.sidebar-collapsed .nav-section-chevron { position: absolute; margin: -23px 0 0 24px; }
.app-shell.sidebar-collapsed .nav-section-content { position: absolute; left: 76px; top: 0; width: 220px; background: #10231f; border-radius: 0 10px 10px 0; box-shadow: 4px 8px 24px rgba(0,0,0,.3); padding: 8px 0; max-height: none !important; opacity: 1 !important; z-index: 10; display: none; }
.app-shell.sidebar-collapsed .nav-section:hover .nav-section-content { display: block; }
.app-shell.sidebar-collapsed .nav-sub-item { padding: 10px 12px; justify-content: center; }
.app-shell.sidebar-collapsed .nav-sub-item > span:not(.nav-glyph) { display: none; }
.app-shell.sidebar-collapsed .nav-sub-item .nav-glyph { width: auto; }

.sidebar-footer { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 10px 0; }

.business-dashboard { --business-ink: var(--ink); --business-muted: var(--muted); --business-panel: #fff; --business-line: var(--line); --business-cyan: var(--moss); --business-lime: var(--gold); --business-orange: var(--coral); max-width: 1440px; margin: 0 auto; padding: 24px; color: var(--business-ink); border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 22px 55px rgba(32, 66, 56, .08); }
.business-dashboard-header { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 20px; }.business-dashboard-header h1 { margin: 4px 0 8px; color: var(--ink); font-family: Georgia, serif; font-size: clamp(28px, 4vw, 44px); font-weight: normal; }.business-dashboard-header p:not(.eyebrow) { max-width: 620px; margin: 0; color: var(--business-muted); font-size: 13px; line-height: 1.55; }.business-dashboard-header .eyebrow { color: var(--moss); }.business-dashboard-actions { display: flex; gap: 9px; align-items: center; }.business-dashboard .text-button { color: var(--moss-dark); }.business-dashboard .text-button:hover { color: var(--moss-dark); background: var(--mint); }.business-dashboard .primary-button { color: #17342b; background: var(--gold); }
.business-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; }.business-kpi-grid article { min-width: 0; padding: 15px 16px; border: 1px solid var(--business-line); border-radius: 9px; background: var(--business-panel); }.business-kpi-grid span, .business-kpi-grid small { display: block; color: var(--business-muted); font-size: 10px; }.business-kpi-grid strong { display: block; margin: 8px 0 5px; color: var(--ink); font-family: Georgia, serif; font-size: 24px; font-weight: normal; overflow-wrap: anywhere; }
.business-dashboard-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 10px; }.business-board-panel { min-width: 0; padding: 17px; border: 1px solid var(--business-line); border-radius: 9px; background: var(--business-panel); }.business-panel-heading { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 15px; }.business-panel-heading h2 { margin: 3px 0 0; color: var(--ink); font-family: Georgia, serif; font-size: 19px; font-weight: normal; }.business-panel-heading .eyebrow { margin: 0; color: var(--business-muted); font-size: 9px; }.business-live-dot { color: var(--moss); font-size: 9px; white-space: nowrap; }.business-bars { display: grid; gap: 15px; margin: 24px 0; }.business-bar-row > div:first-child { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; color: var(--business-muted); font-size: 10px; }.business-bar-row strong { color: var(--ink); font-weight: normal; }.business-bar-track { height: 9px; overflow: hidden; border-radius: 10px; background: var(--mint); }.business-bar-track i { display: block; height: 100%; border-radius: inherit; }
.business-mini-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 14px; border-top: 1px solid var(--business-line); }.business-mini-metrics div { min-width: 0; }.business-mini-metrics strong, .business-mini-metrics span { display: block; }.business-mini-metrics strong { color: var(--ink); font-size: 15px; overflow-wrap: anywhere; }.business-mini-metrics span { margin-top: 4px; color: var(--business-muted); font-size: 9px; }
.business-sales-panel { display: grid; grid-template-rows: auto 1fr auto; }.business-donut { position: relative; width: min(150px, 65%); aspect-ratio: 1; display: grid; place-items: center; margin: 8px auto 17px; border-radius: 50%; background: conic-gradient(var(--business-cyan) 0 52%, var(--business-orange) 52% 78%, var(--business-lime) 78% 100%); }.business-donut::before { content: ''; position: absolute; width: 61%; aspect-ratio: 1; border-radius: 50%; background: var(--business-panel); }.business-donut-center { position: relative; z-index: 1; display: grid; place-items: center; }.business-donut-center strong { color: var(--ink); font-family: Georgia, serif; font-size: 26px; font-weight: normal; }.business-donut-center span { color: var(--business-muted); font-size: 9px; }.business-legend { display: grid; gap: 7px; color: var(--business-muted); font-size: 10px; }.business-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--business-cyan); }.business-dot.orange { background: var(--business-orange); }.business-dot.lime { background: var(--business-lime); }
.business-activity-list, .business-agent-list { display: grid; }.business-activity-row, .business-agent-row { display: flex; gap: 10px; align-items: center; min-width: 0; padding: 10px 0; border-top: 1px solid var(--business-line); }.business-activity-icon, .business-agent-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 27px; height: 27px; border-radius: 7px; color: #17342b; background: var(--business-cyan); font-size: 11px; font-weight: bold; }.business-activity-row > span:nth-child(2), .business-agent-row > span:nth-child(2) { min-width: 0; flex: 1; }.business-activity-row strong, .business-activity-row small, .business-agent-row strong, .business-agent-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.business-activity-row strong, .business-agent-row strong { color: var(--ink); font-size: 11px; }.business-activity-row small, .business-agent-row small { margin-top: 4px; color: var(--business-muted); font-size: 9px; }.business-activity-row > b { color: var(--moss); font-size: 10px; font-weight: normal; }.business-agent-row em { padding: 4px 6px; border-radius: 4px; color: var(--moss); background: var(--mint); font-size: 8px; font-style: normal; }.business-agent-row em.attention { color: var(--business-orange); background: rgba(217,108,84,.1); }.business-agent-action { border: 0; color: var(--moss); background: transparent; font-size: 16px; }
.business-orders-panel { grid-column: 1 / -1; }.business-pulse-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }.business-pulse-list div { padding: 13px; border-radius: 7px; background: var(--paper); }.business-pulse-list span, .business-pulse-list small { display: block; color: var(--business-muted); font-size: 9px; }.business-pulse-list strong { display: block; margin: 6px 0 3px; color: var(--ink); font-family: Georgia, serif; font-size: 21px; font-weight: normal; }
@media (max-width: 760px) { .business-dashboard { padding: 16px; border-radius: 12px; }.business-dashboard-header { display: block; }.business-dashboard-actions { margin-top: 16px; }.business-kpi-grid { grid-template-columns: 1fr 1fr; }.business-dashboard-grid { grid-template-columns: 1fr; }.business-orders-panel { grid-column: auto; }.business-pulse-list { grid-template-columns: 1fr; } }
.storage-copy { display: flex; justify-content: space-between; color: #a9c0b7; font-size: 11px; }
.storage-copy strong { color: #edf6f1; font-size: 11px; }
.storage-copy small { color: #79938a; font-weight: normal; }
.storage-track { height: 5px; border-radius: 5px; margin: 9px 0 22px; background: #29463d; overflow: hidden; }
.storage-track span { display: block; width: 16%; height: 100%; background: var(--gold); }
.profile-mini { display: flex; gap: 9px; align-items: center; }
.profile-mini strong { font-size: 12px; }
.profile-mini .icon-button { margin-left: auto; color: #9cb3aa; }
.avatar { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; border: 0; border-radius: 50%; background: #f3c876; color: #493a20; font-size: 10px; font-weight: bold; }
.main-content { min-width: 0; flex: 1; }
.topbar { position: sticky; top: 0; z-index: 4; min-height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 42px; border-bottom: 1px solid rgba(223,232,228,.9); background: rgba(247,249,245,.88); backdrop-filter: blur(14px); }
.breadcrumbs { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 12px; }
.breadcrumbs b { color: #b7c2be; font-weight: normal; }
.breadcrumbs strong { color: var(--ink); }
.role-context { padding: 4px 7px; border-radius: 5px; color: var(--moss-dark); background: var(--mint); font-size: 9px; font-weight: bold; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.minimized-modules { position: relative; }.minimized-modules-toggle { display: inline-flex; gap: 5px; align-items: center; padding: 6px 8px; border-radius: 7px; }.minimized-modules-toggle:hover, .minimized-modules-toggle.has-minimized { color: var(--moss-dark); background: var(--mint); }.minimized-modules-toggle b { min-width: 16px; height: 16px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--coral); font-size: 9px; }.minimized-modules-menu { position: absolute; top: calc(100% + 13px); right: -8px; z-index: 12; width: min(310px, calc(100vw - 28px)); max-height: min(420px, calc(100vh - 100px)); overflow-y: auto; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 14px 35px rgba(25,54,44,.16); }.minimized-modules-menu[hidden] { display: none; }.minimized-modules-heading { display: flex; justify-content: space-between; padding: 3px 5px 9px; color: var(--moss-dark); font-size: 11px; }.minimized-modules-heading span { color: var(--muted); }.minimized-modules-menu .workspace-dock-item { display: flex; width: 100%; min-width: 0; margin-top: 3px; border-radius: 7px; }.minimized-modules-menu .workspace-dock-item:hover { background: var(--mint); }.minimized-modules-menu .workspace-dock-open { padding: 9px 3px 9px 7px; }.minimized-modules-menu .workspace-dock-close { flex: 0 0 25px; }.minimized-modules-menu .workspace-dock-empty { padding: 16px 5px; text-align: center; }
.workspace-status-dot { width: 6px; height: 6px; margin-left: 2px; border-radius: 50%; background: var(--coral); }
.global-search { width: min(280px, 35vw); display: flex; gap: 8px; align-items: center; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); }
.topbar-wallet-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid rgba(43,90,75,.22); border-radius: 20px; background: rgba(238,248,243,.85); color: var(--ink); font-size: 12px; cursor: pointer; transition: all .2s ease; white-space: nowrap; }
.topbar-wallet-pill:hover { background: #d8ece3; border-color: var(--moss); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(25,54,44,.08); }
.wallet-pill-icon { color: var(--moss); font-size: 14px; }
.wallet-pill-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.topbar-wallet-pill strong { color: var(--moss-dark); font-family: inherit; font-weight: 700; font-size: 12px; }
.sidebar-wallet-badge { margin-left: auto; padding: 2px 7px; border-radius: 10px; background: rgba(255,255,255,.15); color: #a8d5c2; font-size: 10px; font-style: normal; font-weight: 600; }
.nav-item.active .sidebar-wallet-badge { background: var(--moss); color: #fff; }
.app-shell.sidebar-collapsed .sidebar-wallet-badge { display: none; }
.app-shell.theme-dark .topbar-wallet-pill { background: rgba(27,48,41,.85); border-color: rgba(75,175,121,.3); color: #e8f3ed; }
.app-shell.theme-dark .topbar-wallet-pill strong { color: #85dfb0; }
@media (max-width: 720px) { .topbar-wallet-pill .wallet-pill-label { display: none; } .topbar-wallet-pill { padding: 5px 8px; font-size: 11px; } }
.global-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
kbd { padding: 3px 5px; border: 1px solid var(--line); border-radius: 4px; color: #96a49f; font-size: 9px; white-space: nowrap; }
.icon-button { border: 0; background: transparent; color: var(--ink); font-size: 16px; }
.fullscreen-toggle { min-width: 32px; padding: 6px; border-radius: 7px; font-size: 21px; line-height: 1; }.fullscreen-toggle:hover, .fullscreen-toggle[aria-pressed="true"] { color: var(--moss-dark); background: var(--mint); }
.notification-button { position: relative; font-size: 20px; }
.notification-button i { position: absolute; top: 1px; right: 0; width: 5px; height: 5px; border: 1px solid var(--paper); border-radius: 50%; background: var(--coral); }
.menu-toggle { display: block; margin-right: 12px; }
.content-wrap { max-width: 1440px; margin: 0 auto; padding: 40px 42px 56px; }
.content-wrap { padding-bottom: 92px; }
.module-window-controls { display: flex; gap: 4px; align-items: center; margin-left: auto; padding: 4px 5px 4px 9px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.7); }.module-state-label { color: var(--muted); font-size: 10px; white-space: nowrap; }.module-window-controls .icon-button { width: 26px; height: 26px; border-radius: 5px; }.module-window-controls .icon-button:hover { color: var(--moss-dark); background: var(--mint); }.module-window-controls [data-module-close]:hover { color: var(--coral); background: #fff1ef; }.module-window-controls [data-module-minimize] { font-size: 19px; }.module-window-controls [data-module-fullscreen] { font-size: 18px; }
.workspace-dock { position: fixed; right: 18px; bottom: 16px; left: 18px; z-index: 8; display: flex; gap: 7px; align-items: stretch; min-height: 48px; padding: 6px; border: 1px solid rgba(210,225,218,.95); border-radius: 11px; background: rgba(247,249,245,.94); box-shadow: 0 10px 30px rgba(25,54,44,.13); backdrop-filter: blur(14px); }.workspace-dock-empty { display: grid; place-items: center; width: 100%; color: var(--muted); font-size: 10px; }.workspace-dock-item { display: flex; min-width: 135px; border-radius: 7px; background: transparent; }.workspace-dock-item.active { background: var(--mint); }.workspace-dock-item.minimized { opacity: .75; }.workspace-dock-open { display: grid; grid-template-columns: 22px 1fr; grid-template-rows: 1fr 1fr; gap: 0 5px; min-width: 0; flex: 1; padding: 6px 3px 6px 8px; border: 0; color: var(--ink); background: transparent; text-align: left; }.workspace-dock-open > span { grid-row: span 2; align-self: center; color: var(--moss); font-size: 17px; text-align: center; }.workspace-dock-open strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }.workspace-dock-open small { color: var(--muted); font-size: 8px; }.workspace-dock-close { width: 25px; border: 0; border-radius: 0 7px 7px 0; color: var(--muted); background: transparent; font-size: 15px; }.workspace-dock-close:hover { color: var(--coral); background: #fff1ef; }
.eyebrow { margin: 0 0 7px; color: var(--coral); font-size: 11px; font-weight: bold; letter-spacing: 1.5px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Georgia, serif; font-weight: normal; }
h1 { margin-bottom: 8px; font-size: clamp(30px, 3vw, 45px); letter-spacing: -.8px; }
h2 { margin-bottom: 0; font-size: 22px; }
h3 { margin-bottom: 6px; font-size: 17px; }
.muted { color: var(--muted); font-size: 13px; }
.dashboard-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 30px; }
.status-pill { display: flex; gap: 8px; align-items: center; padding: 8px 11px; border: 1px solid #cfe5dc; border-radius: 20px; color: var(--moss-dark); background: #eef8f3; font-size: 11px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #4baf79; }
.quick-actions { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 34px; }
.quick-action { min-height: 82px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 14px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: var(--surface); text-align: left; box-shadow: 0 5px 15px rgba(40,70,60,.03); transition: transform .2s, border-color .2s; }
.quick-action:hover { transform: translateY(-3px); border-color: #9bc5b5; }
.center-strip { margin-bottom: 28px; padding: 19px 20px; border: 1px solid #d8e8e0; border-radius: 13px; background: #eef7f1; }.center-strip-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 14px; }.center-strip-head h2 { color: var(--moss-dark); font-size: 21px; }.center-strip-head .eyebrow { margin-bottom: 4px; }.center-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }.center-strip-card { display: flex; gap: 10px; align-items: center; min-width: 0; padding: 12px; border: 1px solid #d3e5dc; border-radius: 9px; color: var(--ink); background: rgba(255,255,255,.7); text-align: left; }.center-strip-card:hover { border-color: var(--moss); background: #fff; }.center-strip-icon { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 auto; border-radius: 7px; color: var(--moss-dark); background: #d9ede3; font-size: 14px; }.center-strip-card span:nth-child(2) { min-width: 0; flex: 1; }.center-strip-card strong, .center-strip-card small { display: block; }.center-strip-card strong { font-size: 11px; }.center-strip-card small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.center-strip-card b { color: var(--moss); font-size: 16px; font-weight: normal; }
.center-history-row { display: flex; gap: 9px; align-items: center; width: 100%; padding: 11px 0; border: 0; border-top: 1px solid #edf1ef; color: var(--ink); background: transparent; text-align: left; }.center-history-row:hover { background: #f7faf8; }.center-history-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--gold); }.center-history-row span:nth-child(2) { min-width: 0; flex: 1; }.center-history-row strong, .center-history-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.center-history-row strong { font-size: 11px; }.center-history-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }.center-history-row b { color: var(--moss); font-size: 16px; font-weight: normal; }
.action-icon { color: var(--moss); font-size: 18px; }
.quick-action span:last-child { font-size: 11px; font-weight: bold; }
.workspace-grid { display: grid; grid-template-columns: 1.35fr .8fr .8fr; gap: 16px; }
.panel { min-width: 0; padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel-head a, .text-button { border: 0; padding: 0; color: var(--moss); background: transparent; font-size: 11px; font-weight: bold; }
.recent-panel { grid-row: span 2; }
.recent-item { display: flex; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid #edf1ef; }
.file-badge { width: 34px; height: 38px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: var(--moss); font-size: 10px; font-weight: bold; }
.file-badge.coral { background: var(--coral); }.file-badge.gold { background: var(--gold); color: #58431c; }
.item-copy { min-width: 0; flex: 1; }.item-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }.item-copy span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.item-action { color: #a2b0ab; font-size: 14px; }
.task-list { display: grid; gap: 14px; }.task { display: flex; gap: 9px; align-items: flex-start; }.task input { accent-color: var(--moss); margin-top: 2px; }.task label { font-size: 12px; line-height: 1.35; }.task small { display: block; margin-top: 3px; color: var(--coral); font-size: 10px; }
.sync-card { background: var(--moss); color: #edf8f3; }.sync-card h2 { margin-bottom: 10px; }.sync-card .muted { color: #b6d0c5; }.sync-meta { display: flex; justify-content: space-between; margin-top: 20px; color: #b6d0c5; font-size: 10px; }.sync-meta strong { color: #fff; font-size: 12px; }.progress { height: 5px; margin-top: 10px; border-radius: 4px; background: rgba(255,255,255,.18); }.progress span { display: block; width: 82%; height: 100%; border-radius: inherit; background: var(--gold); }
.view-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }.view-header h1 { font-size: 36px; }.primary-button { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 8px; padding: 11px 15px; color: #fff; background: var(--moss); font-size: 12px; font-weight: bold; }.primary-button:hover { background: var(--moss-dark); }
.module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }.module-card { min-height: 150px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }.module-card .action-icon { display: block; margin-bottom: 25px; font-size: 22px; }.module-card p { color: var(--muted); font-size: 12px; line-height: 1.45; }.module-card button { margin-top: 4px; }
.service-connection { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid #cfe5dc; border-radius: 20px; color: var(--moss-dark); background: #eef8f3; font-size: 11px; }
.account-identity { display: grid; gap: 4px; width: fit-content; margin: 16px 0; padding: 13px 15px; border: 1px solid #d8e8e0; border-radius: 10px; background: #eef7f1; }.account-identity span, .account-identity small { color: var(--muted); font-size: 10px; }.account-identity strong { color: var(--moss-dark); font-family: Georgia, serif; font-size: 18px; letter-spacing: .04em; }
.service-header-actions { display: flex; align-items: center; gap: 10px; }
.service-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.service-metrics > div { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 5px 15px rgba(40,70,60,.03); }
.service-metrics strong, .service-metrics span { display: block; }.service-metrics strong { color: var(--moss-dark); font-family: Georgia, serif; font-size: 26px; font-weight: normal; }.service-metrics span { margin-top: 5px; color: var(--muted); font-size: 10px; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.service-card { display: flex; flex-direction: column; min-height: 170px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); }.service-card-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 22px; border-radius: 9px; color: var(--moss-dark); background: var(--mint); font-size: 18px; }.service-card h3 { margin-bottom: 5px; font-size: 17px; }.service-card p { min-height: 34px; margin-bottom: 13px; color: var(--muted); font-size: 11px; line-height: 1.45; }.service-card .text-button { align-self: flex-start; margin-top: auto; }
.service-saved { margin-bottom: 18px; }.service-saved-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #edf1ef; }.service-saved-row .service-card-icon { width: 28px; height: 28px; margin: 0; font-size: 14px; }.service-saved-row > span:nth-child(2) { min-width: 0; flex: 1; }.service-saved-row strong, .service-saved-row small { display: block; }.service-saved-row strong { font-size: 11px; }.service-saved-row small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.service-history-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid #edf1ef; }.service-history-row > div { min-width: 0; }.service-history-row strong, .service-history-row span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.service-history-row strong { font-size: 12px; }.service-history-row div span { margin-top: 4px; color: var(--muted); font-size: 10px; }.service-history-row .status-pill { flex-shrink: 0; padding: 6px 9px; font-size: 10px; }.service-history-row .status-pill.warning { color: #8b650d; border-color: #ead9a8; background: #fff8df; }.service-history-row .status-pill.success { color: var(--moss-dark); }
@media (max-width: 600px) { .service-header-actions { align-items: flex-start; flex-direction: column; margin-top: 10px; }.service-connection { margin-top: 0; }.service-metrics { grid-template-columns: 1fr; gap: 8px; }.service-metrics > div { padding: 13px 15px; }.service-grid { grid-template-columns: 1fr 1fr; gap: 9px; }.service-card { min-height: 180px; padding: 13px; }.service-card-icon { margin-bottom: 16px; }.service-history-row { align-items: flex-start; }.service-history-row .status-pill { white-space: nowrap; } }

.wallet-header { align-items: center; }
.wallet-header-actions { display: flex; align-items: center; gap: 12px; }
.wallet-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 28px; margin-bottom: 20px; border: 1px solid rgba(44, 102, 84, 0.18); border-radius: 18px; background: linear-gradient(135deg, rgba(44,102,84,1) 0%, rgba(25,75,62,1) 100%); box-shadow: 0 18px 38px rgba(26, 58, 46, 0.14); }
.wallet-hero-copy { min-width: 0; color: #edf8f3; }
.wallet-hero-copy .eyebrow { margin-bottom: 12px; color: rgba(255,255,255,0.72); }
.wallet-hero-copy h2 { margin: 0; color: #fff; font-size: clamp(30px, 4vw, 52px); line-height: 1; }
.wallet-balance-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; color: rgba(255,255,255,0.8); font-size: 11px; }
.wallet-account-number { display: grid; gap: 4px; margin-top: 18px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.2); }.wallet-account-number span { color: rgba(255,255,255,.7); font-size: 10px; }.wallet-account-number strong { color: #fff; font-size: 15px; letter-spacing: .04em; }
.wallet-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.wallet-hero .primary-button { background: #fff; color: var(--moss-dark); }
.wallet-hero .primary-button:hover { background: #eef7f2; }
.wallet-hero .secondary-button { border-color: rgba(255,255,255,0.25); color: #fff; background: rgba(255,255,255,0.08); }
.wallet-hero .secondary-button:hover { background: rgba(255,255,255,0.15); }

.wallet-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.wallet-card { padding: 18px 20px; border-radius: 16px; background: linear-gradient(180deg, #fff 0%, #f9fbfa 100%); }
.wallet-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 18px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.wallet-card strong { display: block; color: var(--ink); font-size: clamp(20px, 2vw, 28px); line-height: 1.1; }
.wallet-card small { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; }
.wallet-pill { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.wallet-pill.success { color: #104d39; background: #dff7eb; }
.wallet-pill.neutral { color: #485264; background: #edf2f8; }
.wallet-pill.warning { color: #7a5a00; background: #fff3d0; }
.wallet-pill.info { color: #214d7d; background: #dfeeff; }

.wallet-main-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.95fr); gap: 16px; margin-bottom: 20px; }
.wallet-lower-grid { display: grid; grid-template-columns: 1.1fr 1fr 0.9fr; gap: 16px; }
.wallet-panel { border-radius: 16px; }
.wallet-activity-list { display: grid; gap: 12px; }
.wallet-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.wallet-row:first-child { border-top: 0; }
.wallet-row-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.wallet-row-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; font-size: 12px; font-weight: 700; }
.wallet-row-icon.in { color: #0a6d4c; background: #dff9eb; }
.wallet-row-icon.out { color: #975a00; background: #fff0cf; }
.wallet-row-main strong { display: block; font-size: 12px; }
.wallet-row-main small, .wallet-row-meta small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.wallet-row-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.wallet-row-amount { font-size: 12px; font-weight: 700; }
.wallet-row-amount.credit { color: #0c7c56; }
.wallet-row-amount.debit { color: #8a5d00; }

.wallet-overview-panel { border-radius: 16px; }
.wallet-chart { display: flex; align-items: end; gap: 12px; height: 160px; padding: 20px 12px 0; border-radius: 12px; background: linear-gradient(180deg, rgba(44,102,84,0.06), rgba(44,102,84,0)); }
.wallet-chart-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: end; gap: 8px; height: 100%; }
.wallet-chart-bar span { display: block; width: 100%; max-width: 34px; border-radius: 10px 10px 6px 6px; background: linear-gradient(180deg, rgba(44,102,84,0.6), rgba(44,102,84,0.9)); }
.wallet-chart-bar.active span { background: linear-gradient(180deg, rgba(242,184,54,0.9), rgba(212,140,18,0.9)); }
.wallet-chart-bar label { color: var(--muted); font-size: 10px; }
.wallet-limit-row { margin-top: 18px; }
.wallet-limit-row small { display: block; color: var(--muted); font-size: 10px; }
.wallet-limit-row strong { display: block; margin-top: 4px; font-size: 20px; }
.wallet-progress { width: 100%; height: 8px; margin-top: 12px; border-radius: 999px; background: #edf3ef; overflow: hidden; }
.wallet-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--moss), var(--gold)); }

.wallet-method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wallet-method { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, rgba(246,249,247,1), rgba(255,255,255,1)); }
.wallet-method-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.wallet-method-badge { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--moss); color: white; font-size: 12px; font-weight: bold; }
.wallet-method-head strong { display: block; font-size: 11px; }
.wallet-method-head small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.wallet-method-status { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 999px; background: #eafaf1; color: #0f7b52; font-size: 9px; font-weight: 700; }

.wallet-beneficiary-list { display: grid; gap: 10px; }
.wallet-beneficiary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fafcfa; }
.wallet-beneficiary strong { display: block; font-size: 12px; }
.wallet-beneficiary small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.wallet-status-dot { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 999px; font-size: 9px; font-weight: 700; }
.wallet-status-dot.verified { color: #0d7558; background: #daf7ea; }
.wallet-status-dot.pending { color: #7a5a00; background: #fff0cd; }

.wallet-security-panel { background: linear-gradient(180deg, rgba(244,250,247,1), rgba(255,255,255,1)); }
.wallet-security-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.wallet-security-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,0.7); color: var(--ink); font-size: 11px; }
.wallet-security-list strong { color: var(--ink); }

@media (max-width: 1050px) {
  .wallet-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wallet-lower-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .wallet-hero { flex-direction: column; align-items: flex-start; }
  .wallet-hero-actions { width: 100%; justify-content: stretch; }
  .wallet-hero-actions .primary-button, .wallet-hero-actions .secondary-button { flex: 1 1 100%; justify-content: center; }
  .wallet-summary-grid { grid-template-columns: 1fr; }
  .wallet-main-grid { grid-template-columns: 1fr; }
  .wallet-method-grid { grid-template-columns: 1fr; }
  .wallet-row { flex-direction: column; align-items: flex-start; }
  .wallet-row-meta { align-items: flex-start; }
}

/* Shared button system: visibility and contrast are never hover-dependent. */
:root {
  --button-height: 36px;
  --button-radius: 8px;
  --button-gap: 8px;
  --button-primary-bg: var(--moss);
  --button-primary-text: #fff;
  --button-secondary-bg: var(--surface);
  --button-secondary-text: var(--ink);
  --button-outline-bg: transparent;
  --button-outline-text: var(--moss-dark);
  --button-border: #b9cec3;
  --button-disabled-bg: #e6ece9;
  --button-disabled-text: #71807c;
  --button-danger-bg: #fff1ef;
  --button-danger-text: #9f3f35;
  --button-warning-bg: #fff8e8;
  --button-warning-text: #7b5a13;
  --accent: var(--moss);
}

button:not(.chess-square):not(.draughts-square):not(.checkers-square):not(.ludo-cell):not(.ludo-token):not(.whot-card):not(.file-input-button) {
  min-height: var(--button-height);
  border: 1px solid var(--button-border);
  border-radius: var(--button-radius);
  color: var(--button-secondary-text);
  background: var(--button-secondary-bg);
  font-weight: 600;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease, transform .16s ease;
}

button:not(.chess-square):not(.draughts-square):not(.checkers-square):not(.ludo-cell):not(.ludo-token):not(.whot-card):not(.file-input-button):hover:not(:disabled) {
  border-color: var(--moss);
  background: var(--mint);
  box-shadow: 0 3px 9px rgba(32,66,56,.1);
  transform: translateY(-1px);
}

button:not(.chess-square):not(.draughts-square):not(.checkers-square):not(.ludo-cell):not(.ludo-token):not(.whot-card):not(.file-input-button):focus-visible {
  outline: 3px solid rgba(232,180,92,.9);
  outline-offset: 2px;
  box-shadow: 0 0 0 1px var(--moss);
}

button:not(.chess-square):not(.draughts-square):not(.checkers-square):not(.ludo-cell):not(.ludo-token):not(.whot-card):not(.file-input-button):disabled {
  color: var(--button-disabled-text);
  background: var(--button-disabled-bg);
  border-color: #cbd7d1;
  cursor: not-allowed;
  opacity: 1;
  transform: none;
}

.primary-button {
  min-height: var(--button-height);
  border: 1px solid var(--button-primary-bg) !important;
  color: var(--button-primary-text) !important;
  background: var(--button-primary-bg) !important;
}
.primary-button:hover:not(:disabled) { color: var(--button-primary-text) !important; background: var(--moss-dark) !important; }
.secondary-button { color: var(--button-secondary-text) !important; background: var(--button-secondary-bg) !important; }
.outline-button { color: var(--button-outline-text) !important; background: var(--button-outline-bg) !important; border-color: var(--button-border) !important; }
.icon-button { display: inline-grid; place-items: center; width: var(--button-height); min-width: var(--button-height); min-height: var(--button-height); padding: 0; color: var(--ink); background: var(--surface); border: 1px solid var(--button-border); }
.text-button { min-height: 30px; padding: 4px 8px !important; color: var(--moss-dark) !important; background: var(--surface) !important; border: 1px solid var(--button-border) !important; }
.danger, .danger-button { color: var(--button-danger-text) !important; background: var(--button-danger-bg) !important; border-color: #e9b7af !important; }
.warning, .warning-button { color: var(--button-warning-text) !important; background: var(--button-warning-bg) !important; border-color: #e8d19a !important; }
button.active, button[aria-pressed="true"], button[aria-current="page"] { color: var(--moss-dark) !important; background: var(--mint) !important; border-color: #8eb9a6 !important; box-shadow: inset 0 0 0 1px rgba(44,102,84,.12); }
button[data-loading="true"], button.loading { color: transparent !important; position: relative; pointer-events: none; }
button[data-loading="true"]::after, button.loading::after { content: ''; position: absolute; width: 13px; height: 13px; border: 2px solid var(--moss); border-right-color: transparent; border-radius: 50%; animation: button-spin .7s linear infinite; }
@keyframes button-spin { to { transform: rotate(360deg); } }
.sidebar .nav-item, .sidebar .nav-section-header { border-color: transparent !important; color: #a9c0b7 !important; background: transparent !important; }
.sidebar .nav-item:hover, .sidebar .nav-section-header:hover { color: #fff !important; background: rgba(255,255,255,.08) !important; }
.sidebar .nav-item.active, .sidebar .nav-section-header[aria-expanded="true"] { color: #17342b !important; background: #d8ece3 !important; border-color: transparent !important; }
.sidebar .nav-sub-item { color: #9cb3aa !important; background: transparent !important; }
.sidebar .nav-sub-item:hover { color: #fff !important; background: rgba(255,255,255,.06) !important; }
.sidebar .nav-sub-item.active { color: #17342b !important; background: #d8ece3 !important; }
.app-shell.theme-dark { --button-secondary-bg: #223a32; --button-secondary-text: #edf5f0; --button-border: #527568; --button-disabled-bg: #293732; --button-disabled-text: #9aada5; --button-danger-bg: #4a2f2c; --button-danger-text: #ffc0b5; --button-warning-bg: #4a4026; --button-warning-text: #f4d98c; }
.app-shell.theme-dark .primary-button { color: #10231f !important; background: #8dd3b2 !important; border-color: #8dd3b2 !important; }
.app-shell.theme-dark .primary-button:hover:not(:disabled) { background: #b0e6cb !important; border-color: #b0e6cb !important; }

.store-header { align-items: center; }
.store-header-actions { display: flex; align-items: center; gap: 10px; }
.store-cart-indicator { color: var(--moss-dark); font-size: 11px; font-weight: 700; }
.store-tabs { display: flex; gap: 6px; margin-bottom: 18px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: #f0f5f1; overflow-x: auto; }
.store-tabs button { flex: 0 0 auto; padding: 9px 14px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 11px; cursor: pointer; }
.store-tabs button:hover, .store-tabs button.active { color: var(--moss-dark); background: #fff; box-shadow: 0 3px 10px rgba(30,70,55,.08); }
.store-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 190px; margin-bottom: 18px; padding: 28px 34px; overflow: hidden; border-radius: 18px; color: #f7fbf8; background: linear-gradient(120deg, #214f40, #367b63); box-shadow: var(--shadow); }
.store-hero h2 { max-width: 650px; margin: 7px 0 10px; color: #fff; font-family: Georgia, serif; font-size: clamp(28px, 4vw, 46px); font-weight: 500; line-height: 1.05; }
.store-hero p:not(.eyebrow) { max-width: 580px; margin: 0; color: #d4e9df; font-size: 13px; line-height: 1.5; }
.store-hero .eyebrow { color: #f1cc77; }
.store-hero-mark { display: grid; place-items: center; width: 100px; height: 100px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #f1cc77; font-family: Georgia, serif; font-size: 52px; }
.store-toolbar { margin-bottom: 24px; padding: 14px 18px; border-radius: 15px; }
.store-search-box { display: flex; align-items: center; gap: 12px; }
.store-search-box > span { color: var(--muted); font-size: 20px; }
.store-search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 15px; }
.store-filter-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 13px; }
.store-category-list { display: flex; flex-wrap: wrap; gap: 6px; }
.store-filter { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fff; font-size: 10px; cursor: pointer; }
.store-filter.active, .store-filter:hover { border-color: rgba(44,102,84,.3); color: var(--moss-dark); background: #eaf6f0; }
.store-filter-row select { min-width: 155px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; font-size: 11px; }
.store-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 20px 0 13px; }
.store-section-heading h2 { margin: 3px 0 0; font-size: 21px; }
.store-sellers-heading { margin-top: 34px; }
.store-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.store-product-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 6px 18px rgba(32,66,56,.04); }
.store-product-open { display: block; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.store-product-art { display: flex; align-items: end; justify-content: space-between; height: 120px; padding: 14px; color: #f8fffb; background: linear-gradient(135deg, #738c70, #356b58); }
.store-product-art.service { background: linear-gradient(135deg, #c58551, #6b5540); }
.store-product-image { width: 100%; height: 100%; object-fit: cover; }
.store-product-art .store-product-image { position: absolute; inset: 0; }
.store-product-art { position: relative; isolation: isolate; }
.store-product-art small { position: relative; z-index: 1; }
.store-product-image.detail { max-height: 520px; border-radius: 16px; object-fit: cover; }
.store-product-art span { font-family: Georgia, serif; font-size: 42px; }
.store-product-art small { padding: 5px 7px; border-radius: 999px; color: #fff; background: rgba(0,0,0,.18); font-size: 9px; }
.store-product-info { padding: 14px; }
.store-product-line { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 10px; }
.store-category { color: #8b650d; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.store-product-info h3 { margin: 9px 0 6px; font-size: 14px; }
.store-product-info p { min-height: 48px; margin: 0 0 11px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.store-product-info small { display: block; color: var(--muted); font-size: 10px; }
.store-product-info > strong { display: block; margin-top: 8px; font-size: 16px; }
.store-card-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: auto; padding: 10px 14px 14px; border-top: 1px solid var(--line); }
.store-card-actions .primary-button { flex-shrink: 0; padding: 7px 9px; font-size: 10px; white-space: nowrap; }
.store-availability { margin-left: auto; color: #0d7654; font-size: 9px; font-weight: 700; white-space: nowrap; }
.store-availability.limited { color: #9a6400; }
.store-availability.unavailable { color: #a44a42; }
.store-seller-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.store-seller-card { display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; }
.store-seller-card:hover { border-color: rgba(44,102,84,.35); transform: translateY(-1px); }
.store-seller-card > span:nth-child(2) { flex: 1; min-width: 0; }
.store-seller-card strong, .store-seller-card small { display: block; }
.store-seller-card strong { font-size: 11px; }
.store-seller-card small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.store-seller-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; color: #fff; background: var(--moss); font-family: Georgia, serif; font-size: 17px; }
.store-seller-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.store-seller-profile { border-radius: 15px; }
.store-seller-profile-head { display: flex; align-items: center; gap: 12px; }
.store-seller-profile-head > div { flex: 1; }
.store-seller-profile h2 { margin: 0; font-size: 16px; }
.store-seller-profile p { font-size: 12px; line-height: 1.5; }
.store-verified { color: #0d7654; font-size: 10px; }
.store-product-detail { display: grid; grid-template-columns: .85fr 1.15fr; gap: 18px; }
.store-product-visual { display: grid; place-items: center; min-height: 430px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #315e4e, #b9864f); }
.store-product-visual { position: relative; overflow: hidden; }
.store-product-visual .store-detail-label { position: absolute; right: 18px; bottom: 18px; z-index: 1; }
.store-product-glyph { font-family: Georgia, serif; font-size: 110px; }
.store-detail-label { padding: 6px 9px; border-radius: 999px; background: rgba(0,0,0,.16); font-size: 10px; text-transform: uppercase; }
.store-product-copy { padding: 30px; border-radius: 18px; }
.store-product-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; }
.store-product-copy h2 { max-width: 600px; margin: 14px 0 9px; font-family: Georgia, serif; font-size: clamp(30px, 4vw, 50px); font-weight: 500; line-height: 1.05; }
.store-product-copy > p { max-width: 560px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.store-detail-price { display: block; margin: 26px 0; font-size: 28px; }
.store-detail-facts { display: grid; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.store-detail-facts b { margin-left: 6px; color: var(--ink); }
.store-product-actions { display: flex; gap: 10px; margin-top: 22px; }
.store-trust-note { margin-bottom: 0; font-size: 10px !important; }
.store-cart-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(250px, .55fr); gap: 16px; }
.store-cart-panel, .store-checkout-summary { border-radius: 15px; }
.store-cart-row, .store-order-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.store-cart-row:first-child, .store-order-row:first-child { border-top: 0; }
.store-cart-row > span, .store-order-row > span:first-child { flex: 1; min-width: 0; }
.store-cart-image { width: 56px; height: 56px; flex: 0 0 56px; overflow: hidden; border-radius: 8px; background: #edf3ef; }
.store-cart-image .store-product-image { display: block; }
.store-cart-row strong, .store-cart-row small, .store-order-row strong, .store-order-row small { display: block; }
.store-cart-row small, .store-order-row small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.store-cart-row b, .store-order-row b { white-space: nowrap; font-size: 12px; }
.store-quantity-control { display: inline-flex; align-items: center; gap: 7px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #f7faf8; }
.store-quantity-control .icon-button { width: 24px; height: 24px; padding: 0; border-radius: 5px; font-size: 13px; }
.store-quantity-control b { min-width: 16px; text-align: center; }
.store-checkout-summary small { display: block; margin-top: 15px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.store-summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; color: var(--muted); font-size: 11px; }
.store-summary-row.total { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink); font-size: 15px; }
.store-delivery-details { display: grid; gap: 5px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.4; }
.store-delivery-details .eyebrow { margin: 0 0 2px; }
.store-delivery-details strong { color: var(--ink); }
.store-delivery-details small { margin-top: 3px; }
.store-checkout-summary .primary-button { width: 100%; justify-content: center; margin-top: 18px; }
.store-orders-panel { border-radius: 15px; }
.store-order-detail-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(250px, .55fr); gap: 16px; }
.store-order-detail-panel { border-radius: 15px; }
.store-order-detail-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.store-order-detail-row:first-child { border-top: 0; }
.store-order-detail-row span { flex: 1; min-width: 0; }
.store-order-detail-row strong, .store-order-detail-row small { display: block; }
.store-order-detail-row small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.store-order-detail-row b { white-space: nowrap; font-size: 12px; }
.store-order-summary-note { padding: 16px 0; }
.store-order-summary-note p { margin-bottom: 0; }
.store-order-status { padding: 5px 8px; border-radius: 999px; color: #0c7452; background: #e2f7ed; font-size: 9px; font-weight: 700; white-space: nowrap; }
.store-order-status.pending { color: #876000; background: #fff1cf; }
.store-seller-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.store-seller-kpis article { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.store-seller-kpis span, .store-seller-kpis small { display: block; color: var(--muted); font-size: 10px; }
.store-seller-kpis strong { display: block; margin: 12px 0 5px; font-size: 21px; }
.store-dashboard-grid { grid-template-columns: 1.1fr .9fr; }
.store-usage { display: grid; gap: 9px; color: var(--muted); font-size: 10px; }
.store-usage i { display: block; height: 7px; border-radius: 999px; background: #e9f0ec; overflow: hidden; }
.store-usage em { display: block; height: 100%; border-radius: inherit; background: var(--moss); }
.store-wishlist-panel, .store-catalog-panel { border-radius: 15px; }
.store-wishlist-row { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto auto auto; align-items: center; gap: 15px; padding: 14px 0; border-top: 1px solid var(--line); }
.store-wishlist-row:first-child, .store-catalog-row:first-child { border-top: 0; }
.store-wishlist-row .store-product-art { height: 70px; border-radius: 10px; }
.store-wishlist-row h2 { margin: 5px 0 3px; font-size: 15px; }
.store-wishlist-row p { margin: 0; color: var(--muted); font-size: 10px; }
.store-wishlist-row > strong { white-space: nowrap; font-size: 13px; }
.store-wishlist-row .primary-button { padding: 7px 9px; font-size: 10px; }
.store-catalog-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto auto auto; align-items: center; gap: 13px; padding: 13px 0; border-top: 1px solid var(--line); }
.store-catalog-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: #fff; background: var(--moss); font-family: Georgia, serif; }
.store-catalog-row strong, .store-catalog-row small { display: block; }
.store-catalog-row strong { font-size: 12px; }
.store-catalog-row small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.store-catalog-row > b { white-space: nowrap; font-size: 12px; }
.store-stock { color: #0d7654; font-size: 10px; font-weight: 700; white-space: nowrap; }
.store-stock.low { color: #9a6400; }
@media (max-width: 720px) {
  .store-wishlist-row, .store-catalog-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .store-wishlist-row .store-product-art { height: 40px; }
  .store-wishlist-row > strong, .store-wishlist-row > button, .store-catalog-row > b, .store-catalog-row > .store-stock, .store-catalog-row > .store-order-status { grid-column: 2 / -1; }
}
.store-onboarding-layout { display: grid; grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr); gap: 16px; }
.store-onboarding-progress, .store-onboarding-form { border-radius: 15px; }
.store-onboarding-badge { padding: 5px 8px; border-radius: 999px; color: #886000; background: #fff1cf; font-size: 9px; font-weight: 700; }
.store-onboarding-progress ol { display: grid; gap: 4px; margin: 12px 0 0; padding: 0; list-style: none; counter-reset: onboarding; }
.store-onboarding-progress li { display: flex; align-items: center; gap: 10px; padding: 12px 8px; border-radius: 9px; color: var(--muted); }
.store-onboarding-progress li.complete { color: var(--ink); background: #f0f8f3; }
.store-onboarding-progress li b { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid var(--line); border-radius: 50%; font-size: 10px; }
.store-onboarding-progress li.complete b { border-color: var(--moss); color: #fff; background: var(--moss); }
.store-onboarding-progress strong, .store-onboarding-progress small { display: block; }
.store-onboarding-progress strong { font-size: 11px; }
.store-onboarding-progress small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.store-form-section { padding: 18px 0; border-bottom: 1px solid var(--line); }
.store-form-section:first-of-type { padding-top: 0; }
.store-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.store-form-grid label, .store-onboarding-form > label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; }
.store-form-grid input, .store-form-grid select, .store-onboarding-form textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--ink); background: #fff; font-size: 12px; }
.store-form-grid input:focus, .store-form-grid select:focus, .store-onboarding-form textarea:focus { border-color: var(--moss); box-shadow: 0 0 0 3px rgba(44,102,84,.1); }
.store-onboarding-form textarea { resize: vertical; }
.store-check-row { display: flex !important; grid-template-columns: none !important; align-items: flex-start; gap: 8px !important; margin-top: 16px; line-height: 1.4; }
.store-check-row input { margin-top: 1px; accent-color: var(--moss); }
.store-form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.store-form-actions .primary-button, .store-form-actions .secondary-button { padding: 9px 12px; font-size: 10px; }

@media (max-width: 1050px) { .store-product-grid, .store-seller-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .store-seller-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .store-header-actions { margin-top: 12px; } .store-hero { align-items: flex-start; padding: 24px; } .store-hero-mark { display: none; } .store-filter-row { align-items: stretch; flex-direction: column; } .store-filter-row select { width: 100%; } .store-product-grid, .store-seller-grid, .store-seller-directory, .store-product-detail, .store-cart-layout, .store-dashboard-grid, .store-onboarding-layout { grid-template-columns: 1fr; } .store-product-visual { min-height: 250px; } .store-cart-row, .store-order-row { align-items: flex-start; flex-wrap: wrap; } .store-form-grid { grid-template-columns: 1fr; } .store-form-actions { flex-wrap: wrap; } }

.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 8px; }

.dictionary-header { align-items: center; }
.dictionary-header > .status-pill { flex-shrink: 0; }
.dictionary-search { margin-bottom: 16px; padding: 16px 20px; border-radius: 16px; }
.dictionary-search-box { display: flex; align-items: center; gap: 12px; }
.dictionary-search-box > span { color: var(--muted); font-size: 20px; }
.dictionary-search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 17px; }
.dictionary-search-box .primary-button { flex-shrink: 0; }
.dictionary-search-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; color: var(--muted); font-size: 10px; }
.dictionary-layout { display: grid; grid-template-columns: minmax(210px, .55fr) minmax(0, 1.45fr); gap: 16px; }
.dictionary-sidebar, .dictionary-entry { border-radius: 16px; }
.dictionary-word-list { display: grid; gap: 4px; max-height: 520px; overflow: auto; }
.dictionary-word { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid transparent; border-radius: 10px; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.dictionary-word:hover, .dictionary-word.active { border-color: rgba(44, 102, 84, .18); background: #edf7f2; }
.dictionary-word strong { font-size: 13px; }
.dictionary-word small { color: var(--muted); font-size: 10px; }
.dictionary-entry { padding: 28px 30px; background: linear-gradient(135deg, #fbfdfb 0%, #f2f8f4 100%); }
.dictionary-entry-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.dictionary-entry-top h2 { margin: 4px 0 10px; font-size: clamp(34px, 5vw, 58px); line-height: 1; letter-spacing: 0; }
.dictionary-pronunciation { padding: 0; border: 0; color: var(--moss-dark); background: transparent; font-size: 14px; cursor: pointer; }
.dictionary-pronunciation span { margin-left: 5px; font-size: 11px; }
.dictionary-save { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; color: var(--moss-dark); background: white; font-size: 22px; cursor: pointer; }
.dictionary-save.saved { color: #b17a00; border-color: rgba(177, 122, 0, .3); background: #fff7df; }
.dictionary-definition, .dictionary-example, .dictionary-entry-section { margin-top: 24px; }
.dictionary-definition > span, .dictionary-example > span, .dictionary-entry-section > span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.dictionary-definition p { max-width: 680px; margin: 10px 0 0; color: var(--ink); font-size: 20px; line-height: 1.45; }
.dictionary-example { padding: 15px 18px; border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; background: rgba(255,255,255,.65); }
.dictionary-example p { margin: 7px 0 0; color: var(--ink); font-size: 13px; line-height: 1.5; }
.dictionary-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dictionary-tag { padding: 7px 10px; border: 1px solid rgba(44,102,84,.16); border-radius: 999px; color: var(--moss-dark); background: white; font-size: 11px; cursor: pointer; }
.dictionary-tag:hover { border-color: var(--moss); background: #edf7f2; }

.news-header { align-items: center; }
.news-header > .status-pill { flex-shrink: 0; }
.news-toolbar { margin-bottom: 24px; padding: 16px 20px; border-radius: 16px; }
.news-search-box { display: flex; align-items: center; gap: 12px; }
.news-search-box > span { color: var(--muted); font-size: 20px; }
.news-search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.news-category-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.news-category-filter { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fff; font-size: 10px; cursor: pointer; }
.news-category-filter:hover, .news-category-filter.active { border-color: rgba(44,102,84,.3); color: var(--moss-dark); background: #eaf6f0; }
.news-feed-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.news-feed-heading h2 { margin: 3px 0 0; font-size: 22px; }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.news-story-card { display: flex; flex-direction: column; min-height: 238px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, #fff 0%, #f6faf7 100%); box-shadow: var(--shadow); }
.news-story-card:first-child { border-top: 3px solid var(--gold); }
.news-story-card-top, .news-story-card-foot, .news-story-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.news-category { color: #8a6100; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.news-story-card h2 { max-width: 520px; margin: 18px 0 9px; font-family: Georgia, serif; font-size: clamp(20px, 2.2vw, 27px); font-weight: 500; line-height: 1.18; }
.news-story-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.news-story-card-foot { align-items: center; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.news-story-reader { max-width: 850px; margin: 0 auto; padding: clamp(24px, 5vw, 54px); border-radius: 18px; }
.news-story-meta { justify-content: flex-start; color: var(--muted); font-size: 10px; }
.news-story-reader h2 { max-width: 720px; margin: 22px 0 15px; font-family: Georgia, serif; font-size: clamp(30px, 5vw, 52px); font-weight: 500; line-height: 1.08; }
.news-story-lede { max-width: 680px; margin: 0; color: var(--moss-dark); font-size: 18px; line-height: 1.5; }
.news-story-body { max-width: 650px; margin: 34px 0; padding-top: 24px; border-top: 1px solid var(--line); }
.news-story-body p { margin: 0; color: var(--ink); font-family: Georgia, serif; font-size: 17px; line-height: 1.8; }

.radio-header { align-items: center; }
.radio-header > .status-pill { flex-shrink: 0; }
.radio-toolbar { margin-bottom: 20px; padding: 16px 20px; border-radius: 16px; }
.radio-search-box { display: flex; align-items: center; gap: 12px; }
.radio-search-box > span { color: var(--muted); font-size: 20px; }
.radio-search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.radio-tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.radio-tag { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fff; font-size: 10px; cursor: pointer; }
.radio-tag:hover, .radio-tag.active { border-color: rgba(44, 102, 84, .3); color: var(--moss-dark); background: #eaf6f0; }
.radio-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(260px, .75fr); gap: 16px; }
.radio-player-panel, .radio-side-panel { border-radius: 16px; }
.radio-player-panel { padding: 24px; background: linear-gradient(145deg, #f6faf7 0%, #eef8f5 100%); }
.radio-player-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.radio-status { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: rgba(44, 102, 84, .08); color: var(--moss-dark); font-size: 10px; font-weight: 700; }
.radio-player-panel h2 { margin: 12px 0 6px; font-size: clamp(26px, 5vw, 42px); }
.radio-blurb { margin: 16px 0; color: var(--ink); line-height: 1.6; }
.radio-player-panel audio { width: 100%; margin-top: 12px; }
.radio-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.radio-controls .primary-button { color: #fff; background: var(--moss); border-color: var(--moss); }
.radio-controls .primary-button:hover { color: #fff; background: var(--moss-dark); border-color: var(--moss-dark); }
.radio-volume { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.radio-volume input { width: 110px; }
.global-media-dock { position: fixed; right: 18px; bottom: 16px; z-index: 20; display: flex; align-items: center; gap: 10px; width: min(420px, calc(100vw - 28px)); padding: 8px 10px; border: 1px solid rgba(44,102,84,.25); border-radius: 10px; color: var(--ink); background: rgba(255,255,255,.96); box-shadow: 0 12px 26px rgba(18,43,35,.18); backdrop-filter: blur(12px); }
.global-media-dock[hidden] { display: none; }
.global-media-dock__meta { display: grid; gap: 2px; min-width: 0; flex: 1; cursor: grab; user-select: none; }
.global-media-dock__meta:active { cursor: grabbing; }
.global-media-dock__meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.global-media-dock__meta small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.global-media-dock__label { color: var(--moss); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.global-media-dock__actions { display: flex; align-items: center; gap: 7px; }
.global-media-dock__actions .text-button { padding: 5px 7px; }
.global-media-dock > .icon-button { width: 24px; height: 24px; border-radius: 5px; color: var(--muted); font-size: 17px; line-height: 1; }
.global-media-dock > .icon-button:hover { color: var(--coral); background: #fff1ef; }
.global-media-dock__volume { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.global-media-dock__volume input { width: 82px; accent-color: var(--moss); }
.radio-side-panel { padding: 18px 20px; }
.radio-mini-list { display: grid; gap: 10px; margin: 8px 0 18px; }
.radio-mini-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.radio-mini-item strong, .radio-mini-item small { display: block; }
.radio-mini-item small { color: var(--muted); font-size: 10px; }
.radio-station-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.radio-station-card { display: flex; flex-direction: column; min-height: 200px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(160deg, #fff 0%, #f6faf7 100%); box-shadow: var(--shadow); text-align: left; cursor: pointer; }
.radio-station-card.active { border-color: rgba(44, 102, 84, .28); box-shadow: 0 12px 28px rgba(44, 102, 84, .12); }
.radio-station-card-top, .radio-station-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.radio-genre-badge { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: #edf6f1; color: var(--moss-dark); font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.radio-fav { color: #b17a00; font-size: 16px; }
.radio-station-card h3 { margin: 18px 0 8px; font-size: 22px; }
.radio-station-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.radio-station-card-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.private-chat-header { align-items: center; }
.private-chat-header-actions { display: flex; align-items: center; gap: 9px; }
.private-chat-entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 900px; margin: 30px auto; }
.private-chat-entry-card { min-height: 270px; padding: 28px; }
.private-chat-entry-card h2 { margin: 18px 0 8px; }
.private-chat-entry-card > .muted { max-width: 320px; line-height: 1.55; }
.private-chat-card-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; color: var(--moss-dark); background: var(--mint); font-size: 23px; }
.private-chat-invite { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.private-chat-invite strong { padding: 7px 10px; border: 1px dashed var(--moss); border-radius: 7px; color: var(--moss-dark); background: #f2faf5; font-family: monospace; letter-spacing: .12em; }
.private-chat-invite img { width: 48px; height: 48px; margin-left: 4px; border-radius: 5px; }
.private-chat-entry-card > .primary-button { margin-top: 24px; }
.private-chat-form { display: grid; gap: 11px; margin-top: 16px; }
.private-chat-form label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; }
.private-chat-form input { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fbfdfb; font-size: 12px; }
.private-chat-form .primary-button { justify-content: center; }
.private-chat-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; min-height: 560px; }
.private-chat-participants { align-content: start; }
.private-chat-participant { display: flex; gap: 9px; align-items: center; padding: 10px 0; border-top: 1px solid #edf1ef; }
.private-chat-participant > span:last-child { min-width: 0; }
.private-chat-participant strong, .private-chat-participant small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.private-chat-participant strong { font-size: 11px; }
.private-chat-participant small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.private-chat-conversation { display: flex; flex-direction: column; min-height: 560px; padding: 15px; }
.private-chat-messages { display: grid; align-content: start; gap: 10px; flex: 1; min-height: 300px; max-height: 590px; overflow-y: auto; padding: 10px 8px; }
.private-chat-message { width: min(76%, 580px); padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px 10px 10px 2px; background: #f7faf8; }
.private-chat-message.own { justify-self: end; border-color: #c8e1d5; border-radius: 10px 10px 2px 10px; background: var(--mint); }
.private-chat-message > div { display: flex; justify-content: space-between; gap: 12px; color: var(--moss-dark); font-size: 10px; }
.private-chat-message time { color: var(--muted); font-size: 9px; }
.private-chat-message p { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.5; }
.private-chat-message p small { color: var(--muted); font-size: 9px; }
.private-chat-message-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 8px; opacity: .72; }
.private-chat-message-actions .text-button { font-size: 9px; }
.private-chat-message:hover .private-chat-message-actions, .private-chat-message:focus-within .private-chat-message-actions { opacity: 1; }
.private-chat-typing { min-height: 18px; margin: 0 8px 7px; color: var(--muted); font-size: 10px; }
.private-chat-composer { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.private-chat-attach { display: grid; place-items: center; width: 36px; border: 1px solid var(--line); border-radius: 7px; color: var(--moss); background: #fbfdfb; cursor: pointer; font-size: 18px; }
.private-chat-attach input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.private-chat-composer input { min-width: 0; flex: 1; padding: 10px 11px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fbfdfb; font-size: 12px; }
.private-chat-composer .primary-button { padding: 9px 14px; }

@media (max-width: 720px) {
  .news-search-box { flex-wrap: wrap; }
  .news-search-box input { flex-basis: calc(100% - 40px); }
  .news-search-box .primary-button { width: 100%; justify-content: center; }
  .news-feed-heading { align-items: flex-start; flex-direction: column; }
  .news-grid { grid-template-columns: 1fr; }
  .news-story-reader { padding: 22px 20px; }
  .news-story-meta { align-items: flex-start; flex-direction: column; }
  .radio-search-box { flex-wrap: wrap; }
  .radio-search-box input { flex-basis: calc(100% - 40px); }
  .radio-search-box .primary-button { width: 100%; justify-content: center; }
  .radio-layout, .radio-station-grid { grid-template-columns: 1fr; }
  .global-media-dock { right: 12px; bottom: 12px; gap: 7px; width: calc(100vw - 24px); padding: 7px 8px; }
  .global-media-dock__volume { display: none; }
  .private-chat-entry-grid, .private-chat-layout { grid-template-columns: 1fr; }
  .private-chat-header, .private-chat-header-actions { align-items: flex-start; flex-direction: column; }
  .private-chat-participants { order: 2; }
  .private-chat-conversation { min-height: 60vh; }
  .private-chat-message { width: 88%; }
}

@media (max-width: 720px) {
  .dictionary-layout { grid-template-columns: 1fr; }
  .dictionary-word-list { max-height: 220px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dictionary-entry { padding: 22px 20px; }
  .dictionary-search-box { flex-wrap: wrap; }
  .dictionary-search-box input { flex-basis: calc(100% - 40px); }
  .dictionary-search-box .primary-button { width: 100%; justify-content: center; }
}
.game-card { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; display: flex; flex-direction: column; min-height: 280px; }
.game-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(40,70,60,.12); border-color: var(--game-color, var(--moss)); }
.game-card:focus-within { outline: 2px solid var(--game-color, var(--moss)); outline-offset: 2px; }
.game-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.game-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; color: #fff; font-size: 26px; flex-shrink: 0; }
.game-status { font-size: 10px; font-weight: 600; padding: 4px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px; }
.game-status.offline { color: var(--moss-dark); background: var(--mint); }
.game-status.online { color: #1e6e3e; background: #dcfce7; }
.game-name { margin: 0 0 10px; font-size: 20px; font-weight: 600; color: var(--ink); }
.game-description { flex: 1; margin: 0 0 20px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.game-meta { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 16px; color: var(--muted); font-size: 11px; }
.game-play-btn { width: 100%; justify-content: center; padding: 12px 16px; font-size: 13px; font-weight: 600; background: var(--game-color, var(--moss)); border-radius: 10px; }
.game-play-btn:hover { background: var(--game-color-dark, var(--moss-dark)); transform: scale(1.01); }
.game-play-btn:active { transform: scale(0.99); }

@media (max-width: 720px) {
  .game-grid { grid-template-columns: 1fr; gap: 14px; }
  .game-card { min-height: auto; padding: 20px; }
  .game-icon { width: 48px; height: 48px; font-size: 22px; }
}

/* ===== DRAUGHTS GAME STYLES ===== */
.draughts-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; margin-top: 16px; }
.draughts-main { min-width: 0; }
.draughts-status { margin-bottom: 12px; padding: 10px 14px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.draughts-status.game-over { background: #fff8ed; border-color: #f0dfc4; color: #78601d; font-weight: 600; }
.draughts-status strong.light { color: #2c6654; }
.draughts-status strong.dark { color: #1a3a2e; }

.draughts-board-wrapper { position: relative; width: 100%; max-width: 600px; margin: 0 auto; aspect-ratio: 1; padding: 10px; background: #f2c900; border: 4px solid #d7a900; box-shadow: 0 12px 30px rgba(105,75,0,.28), inset 0 0 0 3px #ffe45c; }
.draughts-board { display: grid; grid-template-columns: repeat(10, 1fr); grid-template-rows: repeat(10, 1fr); gap: 0; width: 100%; height: 100%; border: 3px solid #f7d52e; background: #f7d52e; box-shadow: inset 0 0 0 2px #a98200, 0 2px 0 rgba(86,58,0,.35); position: relative; z-index: 1; overflow: hidden; }
.draughts-board-wrapper.board-theme-classic { background: #f2c900; }
.draughts-board-wrapper.board-theme-modern { background: #e8edf0; border-color: #aeb8be; box-shadow: 0 12px 30px rgba(34,48,56,.2), inset 0 0 0 3px #fff; }
.draughts-board-wrapper.board-theme-modern .draughts-board { background: #f4f6f7; border-color: #d8dee2; box-shadow: inset 0 0 0 2px #87939a, 0 2px 0 rgba(34,48,56,.25); }
.draughts-board-wrapper.board-theme-modern .draughts-square.light { background: #f4f6f7 !important; }
.draughts-board-wrapper.board-theme-modern .draughts-square:not(.light) { background: #263238 !important; }
.draughts-board-wrapper.board-theme-nigerian { background: #f2c900; }

/* Wood grain texture overlay */
.draughts-board::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.12), transparent 35%, rgba(0,0,0,.08)); pointer-events: none; z-index: 10; }

.draughts-square { position: relative; aspect-ratio: 1; border: none; padding: 0; background: transparent; cursor: pointer; transition: background .15s, box-shadow .15s, transform .1s; display: flex; align-items: center; justify-content: center; z-index: 2; }
.draughts-square.light { background: #f7d52e !important; cursor: default; pointer-events: none; }
.draughts-square:not(.light) { background: #111 !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 -3px 5px rgba(0,0,0,.45); }
.draughts-square:not(.light):hover { background: #252525 !important; transform: scale(1.02); z-index: 3; }
.draughts-square.selected { background: #ff9f1c !important; box-shadow: inset 0 0 0 3px #e31b23, inset 0 0 12px rgba(255,255,255,.32); }

.draughts-square.active-capturer { background: #e31b23 !important; box-shadow: inset 0 0 0 3px #ffe45c, 0 0 0 2px #111, 0 0 14px rgba(227,27,35,.8); animation: activeCapturePulse 1s ease-in-out infinite; }

.draughts-square.active-capturer .draughts-piece { transform: scale(1.2); box-shadow: 0 8px 24px rgba(227,27,35,.65), inset 0 -3px 6px rgba(0,0,0,.2), 0 0 20px rgba(227,27,35,.55); }

@keyframes activeCapturePulse { 
  0%, 100% { box-shadow: inset 0 0 0 3px #ffe45c, 0 0 0 2px #111, 0 0 12px rgba(227,27,35,.6); }
  50% { box-shadow: inset 0 0 0 3px #ffe45c, 0 0 0 2px #111, 0 0 24px rgba(227,27,35,.9); }
}

@keyframes pulseStatus { 0%, 100% { opacity: 1; } 50% { opacity: .82; } }

.draughts-status.multi-capture { background: #ffe45c; color: #8f1118; border: 2px solid #e31b23; font-weight: 600; animation: pulseStatus 1s ease-in-out infinite; }
.draughts-square.valid-move::after { content: ''; position: absolute; width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #81c784 0%, #4caf50 70%, transparent 100%); opacity: .7; pointer-events: none; animation: pulse 1.5s ease-in-out infinite; }
.draughts-square.capture-target { background: radial-gradient(circle at 30% 30%, #ffcdd2 0%, #ef9a9a 40%, #e57373 100%); }
.draughts-square:focus-visible { outline: 2px solid #f9a825; outline-offset: -2px; z-index: 4; }

@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.2); opacity: .4; } }

.draughts-piece { width: 72%; height: 72%; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; cursor: pointer; transition: transform .15s, box-shadow .15s, filter .15s; user-select: none; position: relative; z-index: 3; }
.draughts-piece.light { background: linear-gradient(145deg, #fafafa 0%, #f0f0f0 25%, #e0e0e0 50%, #d0d0d0 75%, #c0c0c0 100%); color: #333; border: 2px solid #b0b0b0; box-shadow: 0 4px 12px rgba(0,0,0,.35), inset 0 -3px 6px rgba(0,0,0,.2), inset 0 2px 4px rgba(255,255,255,.4); }
.draughts-piece.dark { background: linear-gradient(145deg, #69b34c 0%, #3f8f3a 25%, #277332 50%, #1b5e2b 75%, #10451f 100%); color: #f5fff2; border: 2px solid #0d4f24; box-shadow: 0 4px 12px rgba(13,79,36,.5), inset 0 -3px 6px rgba(0,40,15,.35), inset 0 2px 4px rgba(255,255,255,.25); }
.draughts-board-wrapper.piece-style-flat .draughts-piece { box-shadow: none; border-radius: 6px; }
.draughts-board-wrapper.piece-style-flat .draughts-piece.king::before { font-size: 1.1rem; }
.draughts-board-wrapper.piece-style-3d .draughts-piece { box-shadow: 0 8px 0 rgba(0,0,0,.24), 0 12px 18px rgba(0,0,0,.38), inset 0 4px 8px rgba(255,255,255,.35); }
.draughts-board-wrapper.piece-style-nigerian .draughts-piece { border-radius: 4px; border-width: 3px; }
.draughts-piece.king { box-shadow: 0 4px 12px rgba(0,0,0,.35), inset 0 -3px 6px rgba(0,0,0,.2), inset 0 2px 4px rgba(255,255,255,.4), 0 0 0 3px #f9a825, 0 0 12px rgba(249,168,37,.6); }
.draughts-piece.king::before { content: '♔'; font-size: 1.3rem; position: absolute; top: -3px; text-shadow: 0 1px 2px rgba(0,0,0,.5); filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
.draughts-piece:hover { transform: scale(1.08); z-index: 5; filter: brightness(1.1); }
.draughts-square.selected .draughts-piece { transform: scale(1.15); box-shadow: 0 6px 20px rgba(249,168,37,.5), inset 0 -3px 6px rgba(0,0,0,.2), 0 0 16px rgba(249,168,37,.4); }
.draughts-coordinate-label { position: absolute; right: 3px; bottom: 2px; z-index: 4; color: rgba(255,255,255,.7); font: 600 8px/1 sans-serif; pointer-events: none; }
.draughts-square.light .draughts-coordinate-label { color: rgba(0,0,0,.45); }
.move-animation-off .draughts-square, .move-animation-off .draughts-piece { transition: none; }
.move-animation-fast .draughts-square, .move-animation-fast .draughts-piece { transition-duration: .08s; }
.move-animation-smooth .draughts-square, .move-animation-smooth .draughts-piece { transition-duration: .3s; }

.draughts-captured { display: flex; gap: 24px; justify-content: center; margin-top: 16px; padding: 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.draughts-captured strong { font-family: Georgia, serif; font-size: 18px; }
.draughts-captured strong:first-of-type { color: #2c6654; }
.draughts-captured strong:last-of-type { color: #1a3a2e; }

.draughts-rules { margin-top: 20px; }
.draughts-rules details { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 12px 16px; }
.draughts-rules summary { cursor: pointer; font-weight: 600; color: var(--moss-dark); }
.draughts-rules ul { margin: 10px 0 0; padding-left: 20px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.draughts-rules li strong { color: var(--ink); }

.draughts-sidebar { display: grid; gap: 16px; }

.ludo-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; margin-top: 16px; }
.ludo-board { position: relative; display: grid; grid-template-columns: repeat(15, 1fr); grid-template-rows: repeat(15, 1fr); max-width: 680px; aspect-ratio: 1; margin: 0 auto; padding: 8px; gap: 2px; border: 8px solid #1b7f5a; border-radius: 18px; background: #f8f4e8; box-shadow: 0 12px 32px rgba(27,127,90,.2); overflow: hidden; }
.ludo-cell { min-width: 0; min-height: 0; background: transparent; }
.ludo-home-corner { display: grid; place-items: center; min-height: 90px; border-radius: 12px; color: #fff; font-weight: 700; text-align: center; gap: 6px; padding: 8px; }
.ludo-base-tokens { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.ludo-home-corner.red { background: #d94f4f; } .ludo-home-corner.green { background: #35a66f; } .ludo-home-corner.yellow { background: #e0ad28; } .ludo-home-corner.blue { background: #4285c5; }
.ludo-track-cell { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; min-width: 0; min-height: 26px; border: 1px solid #d7d1bd; background: #fffdf5; }
.ludo-track-cell.safe { background: #ffe782; box-shadow: inset 0 0 0 2px #d4a000; }
.ludo-yard { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 12px; color: #fff; text-align: center; }
.ludo-yard.red { grid-row: 1 / 7; grid-column: 1 / 7; background: #d94f4f; } .ludo-yard.green { grid-row: 1 / 7; grid-column: 10 / 16; background: #35a66f; } .ludo-yard.yellow { grid-row: 10 / 16; grid-column: 1 / 7; background: #e0ad28; } .ludo-yard.blue { grid-row: 10 / 16; grid-column: 10 / 16; background: #4285c5; }
.ludo-home-center { position: absolute; z-index: 4; inset: 40% 40%; display: grid; place-items: center; border: 5px solid #1b7f5a; border-radius: 50%; background: #fff; color: #1b7f5a; font-size: 11px; font-weight: 800; }
.ludo-token { width: 24px; height: 24px; padding: 0; border: 2px solid #fff; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,.22); }
.ludo-token.red, .ludo-dot.red { background: #d94f4f; } .ludo-token.green, .ludo-dot.green { background: #35a66f; } .ludo-token.yellow, .ludo-dot.yellow { background: #e0ad28; } .ludo-token.blue, .ludo-dot.blue { background: #4285c5; }
.ludo-token.legal { outline: 3px solid #fff; outline-offset: 2px; animation: ludoTokenPulse 1s ease-in-out infinite; }
.ludo-token:disabled { opacity: .75; cursor: not-allowed; }
@keyframes ludoTokenPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.ludo-panel { display: grid; align-content: start; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.ludo-turn { display: grid; gap: 5px; } .ludo-turn span { color: var(--muted); font-size: 12px; } .ludo-turn strong { color: var(--ludo-color, #1b7f5a); font-size: 20px; }
.ludo-dice { width: 88px; aspect-ratio: 1; margin: 0 auto; border: 3px solid #1b7f5a; border-radius: 14px; background: #fff; color: #1b7f5a; cursor: pointer; }
.ludo-die-face { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); width: 58px; height: 58px; margin: auto; padding: 8px; border-radius: 10px; background: #fff; box-shadow: 0 4px 10px rgba(0,0,0,.16); }
.die-dot { display: none; width: 9px; height: 9px; align-self: center; justify-self: center; border-radius: 50%; background: #1b7f5a; }
.value-1 .dot-5, .value-2 .dot-1, .value-2 .dot-9, .value-3 .dot-1, .value-3 .dot-5, .value-3 .dot-9, .value-4 .dot-1, .value-4 .dot-3, .value-4 .dot-7, .value-4 .dot-9, .value-5 .dot-1, .value-5 .dot-3, .value-5 .dot-5, .value-5 .dot-7, .value-5 .dot-9, .value-6 .dot-1, .value-6 .dot-3, .value-6 .dot-4, .value-6 .dot-6, .value-6 .dot-7, .value-6 .dot-9 { display: block; }
.ludo-dice:disabled { opacity: .55; cursor: not-allowed; } .ludo-message { margin: 0; color: var(--muted); font-size: 13px; text-align: center; }
.ludo-player-list { display: grid; gap: 8px; } .ludo-player-row { display: grid; grid-template-columns: 14px 1fr auto; gap: 8px; align-items: center; padding: 8px; border-radius: 6px; font-size: 12px; } .ludo-player-row.active { background: #e8f4ed; }
.ludo-dot { width: 12px; height: 12px; border-radius: 50%; } .ludo-player-row b { color: var(--muted); font-size: 11px; }
.ludo-hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; } .ludo-hub-card { display: grid; gap: 8px; min-height: 120px; padding: 18px; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; } .ludo-hub-card:hover, .ludo-hub-card.featured { border-color: #1b7f5a; box-shadow: 0 8px 20px rgba(27,127,90,.12); } .ludo-hub-card strong { color: #1b7f5a; font-size: 17px; } .ludo-hub-card span { color: var(--muted); font-size: 13px; }
.ludo-hub-lower { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; } .ludo-link-list { display: grid; gap: 8px; } .ludo-link-list button { padding: 9px; border: 1px solid var(--line); border-radius: 6px; background: #fffdf5; text-align: left; cursor: pointer; }
.ludo-rules-grid { display: grid; gap: 7px; margin: 12px 0; }
.ludo-rule { display: flex; justify-content: space-between; gap: 12px; align-items: center; color: var(--muted); font-size: 12px; }
.ludo-rule select { padding: 5px 7px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
@media (max-width: 800px) { .ludo-layout, .ludo-hub-lower { grid-template-columns: 1fr; } .ludo-hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ludo-hub-grid { grid-template-columns: 1fr; } .ludo-board { padding: 4px; border-width: 5px; gap: 1px; } .ludo-token { width: 18px; height: 18px; font-size: 8px; } .ludo-track-cell { min-height: 18px; } .ludo-yard { padding: 4px; gap: 4px; font-size: 10px; } .ludo-base-tokens { gap: 2px; } }

.draughts-competitive { margin-top: 24px; }
.checkers-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 20px; margin-top: 16px; }
.checkers-board { position: relative; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); grid-template-rows: repeat(10, minmax(0, 1fr)); width: min(600px, 100%); aspect-ratio: 1; margin: auto; overflow: hidden; border: 8px solid #4b2d1d; box-shadow: 0 14px 30px rgba(43,28,18,.25); }
.checkers-board::before, .checkers-board::after { content: ''; position: absolute; z-index: 2; pointer-events: none; background: rgba(75,45,29,.34); }
.checkers-board::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-1px); }
.checkers-board::after { top: 0; left: 50%; width: 2px; height: 100%; transform: translateX(-1px); }
.checkers-square { position: relative; z-index: 1; display: grid; place-items: center; min-width: 0; min-height: 0; border: 0; padding: 0; }
.checkers-square.light { background: #f1d7a1; } .checkers-square.dark { background: #7b3f28; cursor: pointer; }
.checkers-square.legal { box-shadow: inset 0 0 0 5px #f5c542; } .checkers-square.active { box-shadow: inset 0 0 0 5px #51b878; } .checkers-square.selected { box-shadow: inset 0 0 0 5px #2f80ed; }
.checkers-piece { width: 70%; aspect-ratio: 1; border-radius: 50%; border: 4px solid rgba(255,255,255,.7); box-shadow: 0 6px 8px rgba(0,0,0,.3), inset 0 5px 5px rgba(255,255,255,.2); }
.checkers-piece.red { background: linear-gradient(145deg, #ed6a5a, #9e211b); } .checkers-piece.black { background: linear-gradient(145deg, #4caf72, #14532d); }
.checkers-piece.king::after { content: '♛'; display: grid; place-items: center; height: 100%; color: #fff8dc; font-size: 1.5rem; text-shadow: 0 2px 2px rgba(0,0,0,.45); }
.checkers-panel, .checkers-result { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.checkers-turn { display: grid; gap: 5px; margin-bottom: 18px; } .checkers-turn span { color: var(--muted); font-size: 12px; } .checkers-turn strong { font-size: 22px; } .checkers-turn strong.red { color: #a92c22; } .checkers-turn strong.black { color: #176337; }
.checkers-score { display: grid; gap: 8px; } .checkers-score span { display: flex; justify-content: space-between; color: var(--muted); } .checkers-score b { color: var(--ink); }
.checkers-result { margin-bottom: 16px; text-align: center; } .checkers-result h2 { margin: 0 0 6px; color: #176337; }
.checkers-hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; } .checkers-hub-card { display: grid; gap: 8px; min-height: 115px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-align: left; cursor: pointer; } .checkers-hub-card:hover, .checkers-hub-card.featured { border-color: #176337; box-shadow: 0 8px 20px rgba(23,99,55,.13); } .checkers-hub-card strong { color: #176337; font-size: 17px; } .checkers-hub-card span, .checkers-hub-lower .muted { color: var(--muted); font-size: 13px; }
.checkers-hub-lower { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; }
@media (max-width: 760px) { .checkers-layout, .checkers-hub-lower { grid-template-columns: 1fr; } .checkers-hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .checkers-hub-grid { grid-template-columns: 1fr; } .checkers-board { border-width: 4px; } .checkers-piece { border-width: 2px; } }
.draughts-competitive-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.draughts-competitive-nav button { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; background: var(--surface); color: var(--muted); cursor: pointer; }
.draughts-competitive-nav button.active { background: #1b5e2b; border-color: #1b5e2b; color: #fff; }
.draughts-competitive-feature { margin-top: 16px; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.draughts-stage-result { display: grid; gap: 6px; margin: 16px 0; padding: 14px; border: 1px solid #d7a900; border-radius: 8px; background: #fff8d9; color: var(--ink); }
.draughts-stage-result strong { color: #1b5e2b; }
.draughts-stage-result span { color: var(--muted); font-size: 13px; }
.draughts-competitive-feature h2 { margin: 4px 0 8px; color: var(--ink); }

/* Checkers match workspace */
.checkers-layout { --checkers-light: #e8d2a9; --checkers-dark: #6e3e2a; --checkers-frame: #3f271d; --checkers-accent: #d9a441; align-items: start; }
.checkers-layout.theme-modern { --checkers-light: #cbd2d0; --checkers-dark: #46524f; --checkers-frame: #202d2a; --checkers-accent: #e4b44f; }
.checkers-layout.theme-elegant { --checkers-light: #f0e2bf; --checkers-dark: #79533a; --checkers-frame: #38261d; --checkers-accent: #c8953e; }
.checkers-layout.theme-neon { --checkers-light: #17273a; --checkers-dark: #0b111d; --checkers-frame: #061016; --checkers-accent: #66e0b5; }
.checkers-main { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, #fffdf6, #f3eee3); box-shadow: 0 16px 38px rgba(43,28,18,.12); }
.checkers-matchbar { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 16px; padding: 12px 14px; border-left: 3px solid var(--checkers-accent); background: rgba(255,255,255,.64); }
.match-kicker, .match-rule { display: block; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.checkers-matchbar strong { display: block; margin-top: 3px; color: var(--ink); font-size: 17px; }
.match-rule { color: var(--checkers-accent); white-space: nowrap; }
.checkers-board-frame { width: min(600px, 100%); margin: auto; padding: 0 22px; position: relative; }
.checkers-board { width: 100%; border-color: var(--checkers-frame); background: var(--checkers-frame); }
.checkers-square.light { background: var(--checkers-light); }
.checkers-square.dark { background: var(--checkers-dark); }
.checkers-board::before, .checkers-board::after { background: color-mix(in srgb, var(--checkers-accent) 70%, transparent); }
.checkers-board-coordinates { position: absolute; left: 22px; right: 22px; display: flex; justify-content: space-around; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.checkers-board-coordinates.top { top: -15px; }
.checkers-board-coordinates.bottom { bottom: -15px; }
.checkers-square.legal { box-shadow: inset 0 0 0 4px var(--checkers-accent); }
.checkers-square.active { box-shadow: inset 0 0 0 4px #52b889; }
.checkers-square.selected { box-shadow: inset 0 0 0 4px #2f80ed, inset 0 0 18px rgba(47,128,237,.35); }
.checkers-square.hint { box-shadow: inset 0 0 0 4px #f4d35e, inset 0 0 22px rgba(244,211,94,.48); }
.checkers-move-marker { position: absolute; width: 18%; aspect-ratio: 1; border-radius: 50%; background: var(--checkers-accent); box-shadow: 0 0 0 4px rgba(255,255,255,.26); opacity: .9; }
.checkers-piece { position: relative; z-index: 3; display: grid; place-items: center; color: #fff8dc; animation: checkersPieceIn .28s ease-out both; }
.checkers-move-marker { animation: checkersMarkerPulse 1.3s ease-in-out infinite; }
.checkers-layout.motion-off .checkers-piece, .checkers-layout.motion-off .checkers-move-marker { animation: none; }
@keyframes checkersPieceIn { from { opacity: .35; transform: scale(.88); } to { opacity: 1; transform: scale(1); } }
@keyframes checkersMarkerPulse { 0%, 100% { transform: scale(.82); opacity: .68; } 50% { transform: scale(1); opacity: 1; } }
.checkers-piece.king::after { position: relative; z-index: 1; }
.checkers-panel { display: grid; gap: 16px; }
.checkers-panel-heading, .history-heading { display: flex; justify-content: space-between; align-items: center; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #4b9f70; box-shadow: 0 0 0 4px rgba(75,159,112,.14); }
.status-dot.black { background: #d9a441; box-shadow: 0 0 0 4px rgba(217,164,65,.14); }
.checkers-score { padding: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.score-disc { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: #b9342b; }
.score-disc.black { background: #176337; }
.checkers-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.checkers-actions .secondary-button { min-height: 38px; padding: 8px 10px; }
.checkers-settings { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.55); color: var(--muted); font-size: 12px; }
.checkers-settings label { display: grid; gap: 6px; }
.checkers-settings select { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); }
.checkers-settings .toggle-row { display: flex; grid-template-columns: none; align-items: center; gap: 8px; }
.checkers-settings input { accent-color: #176337; }
.checkers-history { padding: 14px; border-radius: 8px; background: #f7f3e9; }
.history-heading { margin-bottom: 8px; color: var(--ink); font-size: 12px; font-weight: 700; }
.history-heading b { color: var(--muted); }
.checkers-history ol { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.checkers-history li { display: grid; grid-template-columns: 22px 1fr auto; gap: 7px; align-items: center; color: var(--muted); font-size: 11px; }
.checkers-history li b { color: var(--ink); font-weight: 600; }
.checkers-history li em { color: #b0731d; font-size: 9px; font-style: normal; text-transform: uppercase; }
.checkers-history .empty-history { display: block; padding: 5px 0; }
.checkers-help { margin: 0; font-size: 12px; }
.checkers-layout.theme-neon .checkers-main { background: #101b25; border-color: #244451; }
.checkers-layout.theme-neon .checkers-matchbar strong, .checkers-layout.theme-neon .checkers-piece { color: #f0fffa; }
@media (max-width: 760px) { .checkers-main { padding: 12px; } .checkers-board-frame { padding: 0 16px; } .checkers-board-coordinates { left: 16px; right: 16px; } }
.draughts-competitive-feature > .primary-button { margin-top: 16px; }
.draughts-stage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 18px; }
.draughts-stage-card { display: grid; gap: 5px; min-height: 112px; padding: 12px; text-align: left; border: 1px solid #d7a900; border-radius: 8px; background: #fff8d9; color: var(--ink); cursor: pointer; }
.draughts-stage-card:hover:not(:disabled), .draughts-stage-card.completed { border-color: #1b5e2b; box-shadow: 0 4px 12px rgba(27,94,43,.15); }
.draughts-stage-card span, .draughts-stage-card small { color: var(--muted); font-size: 11px; }
.draughts-stage-card b { color: #c58a00; letter-spacing: 1px; }
.draughts-stage-card.locked { background: #f3f4f4; border-color: var(--line); cursor: not-allowed; }
.draughts-option-grid, .draughts-achievement-grid, .draughts-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0; }
.draughts-option-grid button, .draughts-achievement-grid span, .draughts-stat-grid span { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fffdf5; color: var(--ink); }
.draughts-option-grid button { text-align: left; cursor: pointer; }
.draughts-stat-grid span { display: grid; gap: 5px; color: var(--muted); }
.draughts-stat-grid b { font-size: 22px; color: #1b5e2b; }
.draughts-leaderboard-row { display: grid; grid-template-columns: 70px 1fr 90px 90px; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.draughts-leaderboard-row:first-of-type { color: var(--muted); font-size: 12px; }

@media (max-width: 720px) {
  .draughts-competitive-feature { padding: 16px; }
  .draughts-stage-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .draughts-stage-card { min-height: 96px; padding: 9px; }
  .draughts-leaderboard-row { grid-template-columns: 45px 1fr 65px 65px; gap: 7px; font-size: 12px; }
}
.draughts-history { max-height: 300px; overflow: auto; font-size: 12px; font-family: monospace; }
.history-entry { padding: 4px 8px; border-bottom: 1px solid #edf1ef; display: flex; gap: 8px; }
.history-entry span { color: var(--muted); min-width: 2.5em; }

/* Winner Modal Overlay */
.draughts-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

.draughts-modal {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
}

.draughts-modal.winner-light { border-color: #2c6654; }
.draughts-modal.winner-dark { border-color: #1a3a2e; }

.draughts-modal-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: bounce 0.6s ease-out;
}

.draughts-modal.winner-light .draughts-modal-icon { color: #2c6654; }
.draughts-modal.winner-dark .draughts-modal-icon { color: #f9a825; }

.draughts-modal-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}

.draughts-modal.winner-light .draughts-modal-title { color: #2c6654; }
.draughts-modal.winner-dark .draughts-modal-title { color: #1a3a2e; }

.draughts-modal-message {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.draughts-modal-result {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 24px;
  font-size: 1rem;
  color: var(--ink);
}

.draughts-modal-result strong {
  font-family: Georgia, serif;
  font-size: 1.25rem;
}

.draughts-modal.winner-light .draughts-modal-result strong { color: #2c6654; }
.draughts-modal.winner-dark .draughts-modal-result strong { color: #f9a825; }

.draughts-modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.draughts-modal-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  min-width: 120px;
}

.draughts-modal-btn.primary {
  background: var(--moss);
  color: white;
  border-color: var(--moss);
}

.draughts-modal-btn.primary:hover {
  background: var(--moss-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 102, 84, 0.4);
}

.draughts-modal-btn.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.draughts-modal-btn.secondary:hover {
  background: var(--mint);
  border-color: var(--moss);
  transform: translateY(-2px);
}

.draughts-modal-btn.danger {
  background: var(--coral);
  color: white;
  border-color: var(--coral);
}

.draughts-modal-btn.danger:hover {
  background: #e57373;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200, 60, 60, 0.4);
}

/* Settings Modal */
.draughts-settings-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.draughts-settings-modal {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

.draughts-settings-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
}

.draughts-settings-modal .modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--ink);
}

.draughts-settings-modal .icon-button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
  color: var(--muted);
}

.draughts-settings-modal .icon-button:hover {
  background: var(--paper);
  color: var(--ink);
}

.draughts-settings-modal .modal-content {
  padding: 24px;
}

.settings-section {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.settings-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.settings-section h3 {
  margin: 0 0 16px 0;
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 600;
  display: flex;
  align-items: center;
}

.settings-section > p {
  margin: 0 0 12px 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.section-toggle {
  background: none;
  border: none;
  padding: 0;
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  display: inline;
}

.section-toggle:hover {
  color: var(--accent);
}

.preset-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.preset-btn {
  flex: 1;
  min-width: 150px;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.preset-btn:hover {
  border-color: var(--accent);
  background: rgba(44, 102, 84, 0.05);
}

.preset-btn.active {
  border-color: var(--accent);
  background: rgba(44, 102, 84, 0.1);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.preset-btn strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

.preset-btn small {
  color: var(--muted);
}

.setting-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.setting-item:hover {
  background: var(--paper);
}

.setting-item.locked {
  opacity: 0.6;
  cursor: not-allowed;
}

.setting-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.setting-item span {
  font-weight: 500;
  color: var(--ink);
  flex: 1;
}

.setting-item small {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

.setting-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.setting-group span {
  font-weight: 500;
  color: var(--ink);
  font-size: 0.95rem;
}

.setting-group select {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.setting-group select:hover {
  border-color: var(--accent);
}

.setting-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(44, 102, 84, 0.1);
}

.advanced-rules {
  margin-top: 16px;
  padding: 16px;
  background: var(--paper);
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}

.advanced-rules .setting-item {
  margin-bottom: 8px;
}

.modal-footer {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  bottom: 0;
  z-index: 10;
  justify-content: flex-end;
}

.modal-footer button {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.secondary-button {
  background: var(--paper);
  border: 2px solid var(--line);
  color: var(--ink);
}

.secondary-button:hover {
  border-color: var(--muted);
  background: white;
}

.primary-button {
  background: var(--accent);
  color: white;
  border: 2px solid var(--accent);
}

.primary-button:hover {
  background: #1f5a43;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 102, 84, 0.3);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

@media (max-width: 1050px) {
  .draughts-layout { grid-template-columns: 1fr; }
  .draughts-sidebar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .draughts-board { max-width: 100%; }
  .draughts-piece { font-size: 1.4rem; }
  .draughts-sidebar { grid-template-columns: 1fr; }
  .draughts-captured { flex-direction: column; gap: 8px; text-align: center; }
}

/* ===== WHOT CARD GAME STYLES ===== */
.whot-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; margin-top: 16px; }
.whot-main { min-width: 0; display: flex; flex-direction: column; }
.whot-table { flex: 1; display: flex; flex-direction: column; background: radial-gradient(ellipse at center, #2d5a2d 0%, #1a3a1a 100%); border-radius: 16px; padding: 20px; position: relative; overflow: hidden; }
.whot-table::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,.03) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(0,0,0,.1) 0%, transparent 50%); pointer-events: none; }
.whot-players-ring { display: flex; justify-content: space-around; align-items: center; padding: 16px 0; flex-wrap: wrap; gap: 12px; }
.whot-player-panel { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 16px; background: var(--surface); border: 2px solid var(--line); border-radius: 12px; min-width: 100px; transition: all 0.3s ease; position: relative; }
.whot-player-panel.current { border-color: var(--gold); box-shadow: 0 0 20px rgba(249,168,37,.4); transform: scale(1.05); z-index: 10; }
.whot-player-panel.ai { opacity: 0.8; }
.whot-player-avatar { font-size: 2rem; }
.whot-player-name { font-weight: 600; font-size: 0.9rem; text-align: center; }
.turn-indicator { color: var(--gold); animation: pulse 1s ease-in-out infinite; }
.whot-player-cards { font-size: 0.8rem; color: var(--muted); background: var(--paper); padding: 4px 10px; border-radius: 20px; }
.whot-last-card-btn { background: var(--coral); color: white; border: none; padding: 6px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; cursor: pointer; animation: pulse 0.5s ease-in-out infinite; margin-top: 4px; }
.whot-last-card-declared { font-size: 0.7rem; color: var(--moss); font-weight: 600; margin-top: 4px; }
.whot-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; position: relative; z-index: 1; }
.whot-required-shape { display: flex; align-items: center; gap: 10px; padding: 10px 20px; background: rgba(0,0,0,.3); border-radius: 30px; border: 2px solid var(--gold); }
.whot-required-shape.whot-chosen { border-color: var(--moss); }
.whot-required-shape .label { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.whot-required-shape .shape-icon { font-size: 1.5rem; }
.whot-required-shape .shape-name { font-weight: 700; text-transform: capitalize; }
.whot-piles { display: flex; align-items: center; gap: 24px; }
.whot-draw-pile, .whot-discard-pile { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; transition: transform 0.2s ease; }
.whot-draw-pile:hover { transform: translateY(-4px); }
.whot-draw-pile[data-whot-draw="true"] { animation: pulse 1s ease-in-out infinite; }
.whot-draw-count, .whot-discard-count { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.whot-draw-hint { font-size: 0.7rem; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* ===== WHOT CARD DESIGN - Enhanced ===== */
.whot-card {
  position: relative;
  width: 70px;
  height: 100px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 
    0 2px 8px rgba(0,0,0,0.25),
    0 0 0 1px rgba(0,0,0,0.05),
    inset 0 1px 0 rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  user-select: none;
  overflow: hidden;
}

.whot-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(0,0,0,0.05) 0%, transparent 40%);
  pointer-events: none;
  border-radius: 8px;
}

.whot-card.large { width: 90px; height: 130px; }

/* Corner indices - top-left and bottom-right */
.whot-card::after,
.whot-card .corner-index {
  position: absolute;
  width: 24px;
  height: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  opacity: 0.85;
}

.whot-card::after {
  top: 4px;
  left: 4px;
}

.whot-card .corner-index {
  bottom: 4px;
  right: 4px;
  transform: rotate(180deg);
}

.whot-card.large::after,
.whot-card.large .corner-index {
  width: 28px;
  height: 28px;
  font-size: 0.75rem;
}

.whot-card .corner-shape {
  font-size: 0.9em;
  margin-top: 1px;
}

.whot-card.large .corner-shape { font-size: 1em; }

/* Hover & interaction states */
.whot-card:not(.face-down):hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 
    0 12px 32px rgba(0,0,0,0.35),
    0 0 0 1px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.9);
  z-index: 10;
}

.whot-card.playable {
  border-color: var(--gold);
  box-shadow: 
    0 0 0 3px rgba(249,168,37,0.25),
    0 4px 16px rgba(249,168,37,0.2),
    0 2px 8px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.9);
  animation: playableGlow 2s ease-in-out infinite;
}

@keyframes playableGlow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(249,168,37,0.25), 0 4px 16px rgba(249,168,37,0.2), 0 2px 8px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.9); }
  50% { box-shadow: 0 0 0 5px rgba(249,168,37,0.4), 0 6px 20px rgba(249,168,37,0.3), 0 2px 8px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.9); }
}

.whot-card.playable:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 
    0 0 0 4px rgba(249,168,37,0.35),
    0 16px 40px rgba(249,168,37,0.3),
    0 4px 16px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.95);
}

.whot-card.unplayable { 
  opacity: 0.45; 
  cursor: not-allowed; 
  filter: grayscale(0.6);
}

.whot-card.selected {
  transform: translateY(-16px) scale(1.04);
  box-shadow: 
    0 0 0 5px var(--gold),
    0 20px 50px rgba(249,168,37,0.5),
    0 8px 24px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.95);
  z-index: 20;
}

/* Face down / back design */
.whot-card.face-down {
  background: 
    linear-gradient(135deg, #0d1f17 0%, #1a3a2e 30%, #0f2a1f 70%, #0a1a12 100%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 8px,
      rgba(44,102,84,0.08) 8px,
      rgba(44,102,84,0.08) 16px
    );
  border: 2px solid #2c6654;
  box-shadow: 
    0 4px 16px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(44,102,84,0.2),
    inset 0 -1px 0 rgba(0,0,0,0.3);
}

.whot-card.face-down::before {
  background-image: 
    radial-gradient(ellipse at center, rgba(44,102,84,0.15) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 10C18.95 10 10 18.95 10 30s8.95 20 20 20 20-8.95 20-20S41.05 10 30 10zm0 36c-8.84 0-16-7.16-16-16S21.16 14 30 14s16 7.16 16 16-7.16 16-16 16z' fill='none' stroke='%232c6654' stroke-width='1.5' opacity='0.3'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  background-position: center;
  background-repeat: no-repeat;
}

.whot-card-back { 
  font-size: 2.2rem; 
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-4px) rotate(2deg); }
}

/* Card inner content */
.whot-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 10px 8px;
  position: relative;
  z-index: 2;
}

/* Shape symbols - large center */
.whot-card-shape {
  font-size: 2.4rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
  transition: transform 0.2s ease;
}

.whot-card.large .whot-card-shape { font-size: 3.5rem; }

.whot-card:hover .whot-card-shape {
  transform: scale(1.1);
}

/* Number display */
.whot-card-number {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  margin-top: 2px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.whot-card.large .whot-card-number { font-size: 2.8rem; }

/* Special card badge */
.whot-card-special {
  font-size: 0.55rem;
  background: linear-gradient(135deg, var(--gold) 0%, #f9a825 100%);
  color: #1a1a1a;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
  box-shadow: 0 2px 6px rgba(249,168,37,0.4);
  white-space: nowrap;
  border: 1px solid rgba(249,168,37,0.6);
}

.whot-card.large .whot-card-special { font-size: 0.65rem; padding: 4px 10px; }

/* ===== SHAPE-SPECIFIC CARD DESIGNS ===== */

/* Circle - Red/Pink theme */
.whot-card.circle {
  background: 
    linear-gradient(135deg, #fff0f5 0%, #ffe0ec 40%, #ffd1e0 100%),
    radial-gradient(ellipse at 30% 30%, rgba(233,30,99,0.1) 0%, transparent 50%);
  border-color: rgba(233,30,99,0.3);
}

.whot-card.circle .whot-card-shape { color: #e91e63; }
.whot-card.circle .whot-card-number { color: #c2185b; }
.whot-card.circle::after,
.whot-card.circle .corner-index { color: #e91e63; }

/* Triangle - Orange/Amber theme */
.whot-card.triangle {
  background: 
    linear-gradient(135deg, #fff8e1 0%, #ffecb3 40%, #ffe082 100%),
    radial-gradient(ellipse at 30% 30%, rgba(255,152,0,0.1) 0%, transparent 50%);
  border-color: rgba(255,152,0,0.3);
}

.whot-card.triangle .whot-card-shape { color: #ff9800; }
.whot-card.triangle .whot-card-number { color: #f57c00; }
.whot-card.triangle::after,
.whot-card.triangle .corner-index { color: #ff9800; }

/* Cross - Blue theme */
.whot-card.cross {
  background: 
    linear-gradient(135deg, #e3f2fd 0%, #bbdefb 40%, #90caf9 100%),
    radial-gradient(ellipse at 30% 30%, rgba(33,150,243,0.1) 0%, transparent 50%);
  border-color: rgba(33,150,243,0.3);
}

.whot-card.cross .whot-card-shape { color: #2196f3; }
.whot-card.cross .whot-card-number { color: #1976d2; }
.whot-card.cross::after,
.whot-card.cross .corner-index { color: #2196f3; }

/* Square - Green theme */
.whot-card.square {
  background: 
    linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 40%, #a5d6a7 100%),
    radial-gradient(ellipse at 30% 30%, rgba(76,175,80,0.1) 0%, transparent 50%);
  border-color: rgba(76,175,80,0.3);
}

.whot-card.square .whot-card-shape { color: #4caf50; }
.whot-card.square .whot-card-number { color: #388e3c; }
.whot-card.square::after,
.whot-card.square .corner-index { color: #4caf50; }

/* Star - Purple theme */
.whot-card.star {
  background: 
    linear-gradient(135deg, #f3e5f5 0%, #e1bee7 40%, #ce93d8 100%),
    radial-gradient(ellipse at 30% 30%, rgba(156,39,176,0.1) 0%, transparent 50%);
  border-color: rgba(156,39,176,0.3);
}

.whot-card.star .whot-card-shape { color: #9c27b0; }
.whot-card.star .whot-card-number { color: #7b1fa2; }
.whot-card.star::after,
.whot-card.star .corner-index { color: #9c27b0; }

/* Whot (Wild) - Gold/Rainbow theme */
.whot-card.whot {
  background: 
    linear-gradient(135deg, #fffde7 0%, #fff9c4 25%, #fff59d 50%, #ffeb3b 75%, #fdd835 100%),
    conic-gradient(from 0deg at 50% 50%, #ffd700, #ff8c00, #ff0080, #8000ff, #0080ff, #00ff80, #ffd700);
  border: 3px solid var(--gold);
  box-shadow: 
    0 0 0 2px rgba(255,215,0,0.3),
    0 4px 20px rgba(255,215,0,0.4),
    0 2px 8px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.9);
  animation: whotShimmer 3s linear infinite;
}

@keyframes whotShimmer {
  0% { background-position: 0% 50%, 0% 50%; }
  100% { background-position: 100% 50%, 100% 50%; }
}

.whot-card.whot .whot-card-shape { 
  color: #b8860b; 
  filter: drop-shadow(0 2px 4px rgba(255,215,0,0.5));
  animation: whotPulse 1.5s ease-in-out infinite;
}

@keyframes whotPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(5deg); }
}

.whot-card.whot .whot-card-number { color: #8b6914; }
.whot-card.whot::after,
.whot-card.whot .corner-index { color: #b8860b; }

/* Whot card special badge */
.whot-card.whot .whot-card-special {
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  color: #1a1a1a;
  border-color: rgba(255,215,0,0.8);
  box-shadow: 0 2px 8px rgba(255,215,0,0.5);
}

/* Decorative pattern overlays for each shape */
.whot-card.circle .whot-card-inner::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(233,30,99,0.2);
  border-radius: 50%;
  pointer-events: none;
}

.whot-card.triangle .whot-card-inner::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 14px solid rgba(255,152,0,0.2);
  pointer-events: none;
}

.whot-card.cross .whot-card-inner::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 16px;
  height: 16px;
  background-image: 
    linear-gradient(45deg, rgba(33,150,243,0.2) 40%, transparent 40%, transparent 60%, rgba(33,150,243,0.2) 60%),
    linear-gradient(-45deg, rgba(33,150,243,0.2) 40%, transparent 40%, transparent 60%, rgba(33,150,243,0.2) 60%);
  background-size: 8px 8px;
  pointer-events: none;
}

.whot-card.square .whot-card-inner::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(76,175,80,0.2);
  pointer-events: none;
}

.whot-card.star .whot-card-inner::after {
  content: '★';
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 12px;
  color: rgba(156,39,176,0.2);
  pointer-events: none;
}

.whot-card.whot .whot-card-inner::after {
  content: '✦';
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 14px;
  color: rgba(255,215,0,0.4);
  animation: spin 4s linear infinite;
  pointer-events: none;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Responsive card sizes */
@media (max-width: 720px) {
  .whot-card { width: 55px; height: 80px; }
  .whot-card.large { width: 70px; height: 100px; }
  .whot-card::after,
  .whot-card .corner-index { width: 20px; height: 20px; font-size: 0.55rem; }
  .whot-card.large::after,
  .whot-card.large .corner-index { width: 24px; height: 24px; font-size: 0.65rem; }
  .whot-card-shape { font-size: 1.8rem; }
  .whot-card.large .whot-card-shape { font-size: 2.8rem; }
  .whot-card-number { font-size: 1.3rem; }
  .whot-card.large .whot-card-number { font-size: 2.2rem; }
  .whot-card-special { font-size: 0.5rem; padding: 2px 6px; }
}

@media (max-width: 480px) {
  .whot-card { width: 48px; height: 70px; }
  .whot-card.large { width: 60px; height: 85px; }
  .whot-card::after,
  .whot-card .corner-index { width: 18px; height: 18px; font-size: 0.5rem; }
  .whot-card.large::after,
  .whot-card.large .corner-index { width: 20px; height: 20px; font-size: 0.55rem; }
  .whot-card-shape { font-size: 1.5rem; }
  .whot-card.large .whot-card-shape { font-size: 2.2rem; }
  .whot-card-number { font-size: 1.1rem; }
  .whot-card.large .whot-card-number { font-size: 1.8rem; }
  .whot-card-special { font-size: 0.45rem; padding: 2px 5px; }
}
.whot-hand-area { margin-top: 16px; }
.whot-hand-controls { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.whot-hand { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; min-height: 120px; align-items: flex-end; padding: 8px; }
.whot-sidebar { display: grid; gap: 16px; }
.whot-history { max-height: 200px; overflow: auto; font-size: 0.8rem; font-family: monospace; }
.whot-scores { display: flex; flex-direction: column; gap: 6px; }
.whot-score-row { display: flex; justify-content: space-between; padding: 8px 12px; background: var(--surface); border-radius: 8px; border: 1px solid var(--line); font-size: 0.9rem; }
.whot-score-row.current { border-color: var(--gold); background: rgba(249,168,37,.1); }
.whot-score-row.winner { border-color: var(--moss); background: rgba(44,102,84,.1); font-weight: 700; }
.whot-penalty-notice { background: #fff3e0; border: 2px solid var(--gold); border-radius: 8px; padding: 12px 16px; color: #e65100; font-weight: 600; text-align: center; animation: pulse 1s ease-in-out infinite; }
.whot-current-turn { text-align: center; font-size: 1rem; }
.whot-timer { display: inline-flex; align-items: center; gap: 6px; background: var(--coral); color: white; padding: 4px 12px; border-radius: 20px; font-weight: 700; font-size: 0.9rem; margin-left: 12px; animation: pulse 1s ease-in-out infinite; }
.whot-turn-info { text-align: center; width: 100%; }

/* Whot Modals */
.whot-modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.8); display: flex; align-items: center; justify-content: center; z-index: 1000; animation: fadeIn 0.3s ease-out; }
.whot-modal { background: var(--surface); border: 2px solid var(--line); border-radius: 16px; padding: 24px; max-width: 90vw; width: 400px; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); animation: slideUp 0.3s ease-out; }
.whot-shape-chooser h3 { margin-bottom: 20px; color: var(--ink); }
.whot-shape-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.whot-shape-option { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px; background: var(--paper); border: 2px solid var(--line); border-radius: 12px; cursor: pointer; transition: all 0.2s ease; }
.whot-shape-option:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 8px 20px rgba(249,168,37,.3); }
.whot-shape-option .shape-icon { font-size: 2.5rem; }
.whot-winner-modal .whot-winner-icon { font-size: 4rem; margin-bottom: 16px; animation: bounce 0.6s ease-out; }
.whot-winner-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 8px; color: var(--moss); }
.whot-winner-message { font-size: 1.1rem; color: var(--muted); margin-bottom: 24px; }
.whot-final-scores { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 24px; text-align: left; }
.whot-score-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.whot-score-row:last-child { border-bottom: none; }
.whot-score-row.winner { color: var(--moss); font-weight: 700; }
.whot-modal-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.whot-modal-btn { padding: 12px 24px; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; border: 2px solid transparent; min-width: 110px; }
.whot-modal-btn.primary { background: var(--moss); color: white; border-color: var(--moss); }
.whot-modal-btn.primary:hover { background: var(--moss-dark); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(44, 102, 84, 0.4); }
.whot-modal-btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.whot-modal-btn.secondary:hover { background: var(--mint); border-color: var(--moss); transform: translateY(-2px); }
.whot-modal-btn.danger { background: var(--coral); color: white; border-color: var(--coral); }
.whot-modal-btn.danger:hover { background: #e57373; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(200, 60, 60, 0.4); }

/* Whot Settings Modal */
.whot-settings-modal { max-width: 600px; max-height: 80vh; overflow-y: auto; }
.whot-settings-modal h2 { margin-bottom: 20px; }
.whot-settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.setting-group { display: flex; flex-direction: column; gap: 6px; }
.setting-group label { font-size: 0.8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.setting-group select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font-size: 0.9rem; cursor: pointer; }
.setting-group select:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 3px rgba(44,102,84,.2); }
.player-type-selectors { display: flex; gap: 8px; flex-wrap: wrap; }
.player-type-selectors select { flex: 1; min-width: 100px; }
.whot-settings-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 20px; }
.whot-rules-summary { border-top: 1px solid var(--line); padding-top: 20px; }
.whot-rules-summary summary { cursor: pointer; font-weight: 600; color: var(--moss-dark); margin-bottom: 12px; }
.whot-rules-content h4 { margin: 16px 0 8px; color: var(--ink); }
.whot-rules-content ul { margin: 0 0 12px 20px; font-size: 0.85rem; color: var(--muted); line-height: 1.8; }
.whot-rules-content li { margin-bottom: 4px; }
.whot-rules-content strong { color: var(--ink); }

/* Whot Animations */
@keyframes dealCard {
  from { opacity: 0; transform: translateY(-100px) rotate(-180deg) scale(0.5); }
  to { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}
@keyframes playCard {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-50px) scale(0.8); }
}
@keyframes drawCard {
  from { opacity: 0; transform: translateX(100px) rotate(90deg) scale(0.5); }
  to { opacity: 1; transform: translateX(0) rotate(0) scale(1); }
}
.whot-card.dealing { animation: dealCard 0.5s ease-out forwards; }
.whot-card.playing { animation: playCard 0.3s ease-in forwards; }
.whot-card.drawing { animation: drawCard 0.4s ease-out forwards; }

/* Responsive */
@media (max-width: 1050px) {
  .whot-layout { grid-template-columns: 1fr; }
  .whot-sidebar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .whot-table { padding: 12px; border-radius: 12px; }
  .whot-players-ring { gap: 8px; }
  .whot-player-panel { min-width: 80px; padding: 8px 12px; }
  .whot-card { width: 55px; height: 80px; }
  .whot-card.large { width: 70px; height: 100px; }
  .whot-hand { gap: 4px; }
  .whot-shape-options { grid-template-columns: repeat(2, 1fr); }
  .whot-settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .whot-player-panel { min-width: 70px; padding: 6px 8px; }
  .whot-card { width: 48px; height: 70px; }
  .whot-card.large { width: 60px; height: 85px; }
  .whot-card-number { font-size: 1.2rem; }
  .whot-card.large .whot-card-number { font-size: 2rem; }
  .whot-shape-options { grid-template-columns: 1fr; }
}

/* Whot table refresh */
.whot-layout { gap: 24px; }
.whot-table { min-height: 620px; padding: 22px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: radial-gradient(circle at 50% 48%, #356e58 0, #1d493c 48%, #12362f 100%); box-shadow: 0 20px 40px rgba(18,54,47,.18); }
.whot-table::after { content: ''; position: absolute; inset: 13px; border: 1px solid rgba(231,196,117,.24); border-radius: 12px; pointer-events: none; }
.whot-table-header { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 0 3px 15px; border-bottom: 1px solid rgba(255,255,255,.15); color: #f6f1df; }
.whot-table-kicker { display: block; margin-bottom: 3px; color: #e7c476; font-size: 9px; font-weight: bold; letter-spacing: 1.8px; text-transform: uppercase; }
.whot-table-header strong { font-family: Georgia, serif; font-size: 21px; font-weight: normal; letter-spacing: .8px; }
.whot-deck-status { display: flex; gap: 7px; align-items: center; color: #b6cec2; font-size: 10px; }
.whot-deck-status b { padding-left: 7px; border-left: 1px solid rgba(255,255,255,.2); color: #f6f1df; font-weight: normal; }
.whot-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #e5c06a; box-shadow: 0 0 0 4px rgba(229,192,106,.13); }
.whot-players-ring { position: relative; z-index: 1; padding: 20px 0 10px; }
.whot-player-panel { min-width: 112px; padding: 11px 15px; border: 1px solid #d9e4de; border-radius: 10px; box-shadow: 0 7px 15px rgba(8,34,29,.12); }
.whot-player-panel.current { border-color: #e7c476; box-shadow: 0 0 0 3px rgba(231,196,118,.2), 0 10px 20px rgba(8,34,29,.22); transform: translateY(-3px); }
.whot-player-avatar { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; color: #f7f1dc; background: #2c6654; font-size: 9px; font-weight: bold; letter-spacing: .5px; }
.whot-player-panel.current .whot-player-avatar { color: #183b31; background: #e7c476; }
.whot-player-name { font-size: 11px; }
.whot-player-cards { padding: 4px 9px; color: #6b8178; background: #f2f6f3; font-size: 10px; }
.whot-center { gap: 20px; }
.whot-required-shape { border-color: #e7c476; background: rgba(10,35,30,.35); }
.whot-required-shape .label { color: #b8cdc3; font-size: 9px; }
.whot-required-shape .shape-name { color: #f6f1df; font-size: 12px; }
.whot-piles { gap: 30px; }
.whot-draw-pile, .whot-discard-pile { gap: 7px; }
.whot-draw-hint { color: #e7c476; }
.whot-turn-info { max-width: 430px; }
.whot-current-turn { padding-top: 14px; border-top: 1px solid rgba(255,255,255,.13); color: #bdd1c7; font-size: 12px; }
.whot-current-turn strong { color: #fff7e4; font-weight: 600; }
.whot-hand-area { margin-top: 20px; padding: 16px 18px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.72); }
.whot-hand-controls { justify-content: flex-end; margin-bottom: 3px; }
.whot-hand-controls .text-button { padding: 5px 8px; border-radius: 5px; font-size: 10px; }
.whot-hand-controls .text-button:hover { background: var(--mint); }
.whot-hand { min-height: 135px; padding: 8px 0 3px; }
.whot-card { border-radius: 9px; box-shadow: 0 8px 15px rgba(18,45,37,.18); }
.whot-card.playable { box-shadow: 0 8px 15px rgba(18,45,37,.18), 0 0 0 1px rgba(255,255,255,.5); }
.whot-card.playable:hover { box-shadow: 0 14px 21px rgba(18,45,37,.25), 0 0 0 2px #e7c476; }
.whot-card.unplayable { opacity: .42; filter: saturate(.6); }
.whot-card-special { letter-spacing: .7px; }
.whot-sidebar { gap: 14px; }
.whot-sidebar .panel { border-radius: 11px; box-shadow: 0 8px 20px rgba(40,70,60,.05); }
.whot-rules-panel { background: #fbfcf8; }
.whot-rules-badge { padding: 4px 7px; border-radius: 4px; color: #765b20; background: #fff2cc; font-size: 9px; font-weight: bold; text-transform: uppercase; letter-spacing: .7px; }
.whot-rule-list { display: grid; gap: 12px; }
.whot-rule-list > div { display: grid; grid-template-columns: 26px 1fr; gap: 9px; align-items: start; padding-top: 10px; border-top: 1px solid #edf1ef; }
.whot-rule-number { color: var(--coral); font-family: Georgia, serif; font-size: 11px; }
.whot-rule-list p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.whot-rule-list strong { color: var(--ink); }
@media (max-width: 720px) {
  .whot-table { min-height: 540px; padding: 16px; }
  .whot-table-header strong { font-size: 17px; }
  .whot-deck-status { flex-wrap: wrap; justify-content: flex-end; max-width: 125px; text-align: right; }
  .whot-hand-area { padding: 12px 9px 8px; }
}

.bible-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr); gap: 16px; }.bible-reader { min-height: 510px; display: flex; flex-direction: column; }.bible-toolbar { display: flex; gap: 12px; align-items: end; padding-bottom: 17px; border-bottom: 1px solid var(--line); }.bible-toolbar label { color: var(--ink); font-size: 10px; font-weight: bold; }.bible-toolbar select, .bible-search input { display: block; margin-top: 6px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; outline: 0; color: var(--ink); background: #fbfdfb; font-size: 11px; }.bible-reference { margin-left: auto; color: var(--moss); font-family: Georgia, serif; font-size: 18px; }.bible-passage { flex: 1; padding: 28px 10px; }.bible-passage p { max-width: 680px; margin: 0 auto 20px; color: var(--ink); font-family: Georgia, serif; font-size: 20px; line-height: 1.7; }.bible-passage sup { display: inline-block; width: 26px; color: var(--coral); font-family: inherit; font-size: 11px; font-weight: bold; }.bible-reader-foot { display: flex; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 10px; }.bible-bookmark-state { color: var(--moss); }.bible-search { align-self: start; }.bible-search > input { width: 100%; margin-bottom: 14px; }.bible-results { display: grid; }.bible-results button { display: grid; gap: 5px; padding: 12px 0; border: 0; border-top: 1px solid #edf1ef; color: var(--ink); background: transparent; text-align: left; }.bible-results button:hover { background: #f7faf8; }.bible-results strong { color: var(--moss-dark); font-size: 11px; }.bible-results span { color: var(--muted); font-family: Georgia, serif; font-size: 12px; line-height: 1.4; }
.bible-header-actions { display: flex; gap: 10px; align-items: center; }.bible-sidebar { display: grid; align-content: start; gap: 14px; }.bible-passage-heading { max-width: 680px; margin: 0 auto 28px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }.bible-passage-heading h2 { margin-top: 5px; font-family: Georgia, serif; font-size: 25px; }.bible-verse { display: flex; gap: 12px; align-items: flex-start; }.bible-verse.saved { padding: 8px 10px; border-radius: 7px; background: #fff9e7; }.bible-verse-number { width: 26px; flex: 0 0 26px; padding: 3px 0; border: 0; color: var(--coral); background: transparent; font-family: Georgia, serif; font-size: 11px; font-weight: bold; cursor: pointer; }.bible-verse-number:hover { color: var(--moss-dark); }.bible-reader-controls { display: flex; justify-content: space-between; align-items: center; padding: 14px 10px; border-top: 1px solid var(--line); }.bible-reader-controls .icon-button:disabled { opacity: .35; cursor: not-allowed; }.bible-recent-item { display: grid; gap: 4px; width: 100%; padding: 11px 0; border: 0; border-top: 1px solid #edf1ef; color: var(--ink); background: transparent; text-align: left; }.bible-recent-item:hover { color: var(--moss-dark); }.bible-recent-item strong { font-family: Georgia, serif; font-size: 14px; }.bible-recent-item span { color: var(--muted); font-size: 10px; }
.bible-verse.selected { padding: 8px 10px; border-left: 3px solid var(--moss); border-radius: 0 7px 7px 0; background: #eef8f3; }.bible-verse-text { flex: 1; padding: 0; border: 0; color: inherit; background: transparent; font: inherit; line-height: inherit; text-align: left; cursor: pointer; }.bible-verse-text:focus-visible, .bible-verse-number:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }.bible-selection-label { min-width: 130px; color: var(--moss-dark); font-size: 10px; text-align: center; }
.auth-layout { min-height: 560px; display: grid; grid-template-columns: 1fr minmax(320px, 430px); gap: 12%; align-items: center; max-width: 980px; margin: 0 auto; }.auth-intro h1 { max-width: 500px; font-size: clamp(34px, 4vw, 58px); }.auth-intro > .muted { max-width: 470px; line-height: 1.6; }.auth-points { display: grid; gap: 12px; margin-top: 28px; color: var(--moss-dark); font-size: 12px; }.auth-points b { display: inline-grid; place-items: center; width: 19px; height: 19px; margin-right: 8px; border-radius: 50%; color: #fff; background: var(--moss); font-size: 10px; }.auth-form { padding: 28px; }.auth-form label { display: block; margin-top: 17px; color: var(--ink); font-size: 11px; font-weight: bold; }.auth-form input { width: 100%; display: block; margin-top: 7px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 7px; outline: 0; color: var(--ink); background: #fbfdfb; font-size: 12px; }.auth-form input:focus { border-color: var(--moss); box-shadow: 0 0 0 3px rgba(44,102,84,.1); }.auth-form .primary-button { width: 100%; justify-content: center; margin-top: 23px; }.auth-mark { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; color: var(--ink); background: var(--gold); font-family: Georgia, serif; font-weight: bold; }.password-field { position: relative; }.password-field input { padding-right: 62px; }.password-toggle { position: absolute; right: 8px; bottom: 8px; min-height: 24px; padding: 3px 6px; border: 0; border-radius: 5px; color: var(--moss-dark); background: transparent; font-size: 10px; font-weight: bold; }.password-toggle:hover { background: var(--mint); }.auth-switch, .auth-recovery { display: block; margin: 18px auto 0; }.auth-recovery { margin-top: 12px; }.form-error { min-height: 15px; margin: 12px 0 0; color: var(--coral); font-size: 11px; line-height: 1.4; }.auth-tabs { display: flex; gap: 8px; margin: 16px 0 12px; }.auth-tab { flex: 1; padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--muted); font-size: 11px; font-weight: bold; cursor: pointer; text-align: center; }.auth-tab.active { background: var(--moss); color: #fff; border-color: var(--moss); }
.account-layout { max-width: 620px; margin: 60px auto; padding: 36px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }.account-avatar { width: 62px; height: 62px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 18px; color: #493a20; background: var(--gold); font-family: Georgia, serif; font-size: 22px; font-weight: bold; }.account-layout h1 { margin-bottom: 7px; }.account-status { display: flex; gap: 8px; align-items: center; width: fit-content; margin-top: 24px; padding: 9px 11px; border-radius: 20px; color: var(--moss-dark); background: #eef8f3; font-size: 11px; }.profile-form { display: grid; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }.profile-form label { color: var(--ink); font-size: 11px; font-weight: bold; }.profile-form input { display: block; width: 100%; margin-top: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; outline: 0; font-size: 11px; }.profile-form .primary-button { width: fit-content; }.account-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 28px; }.text-button.danger { color: var(--coral); }
.settings-billing { display: grid; gap: 16px; }.billing-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }.billing-summary-grid div { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }.billing-summary-grid span, .billing-summary-grid strong { display: block; }.billing-summary-grid span { color: var(--muted); font-size: 10px; }.billing-summary-grid strong { margin-top: 5px; font-size: 14px; }.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }.plan-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }.plan-card.current { border-color: var(--moss); box-shadow: 0 0 0 2px rgba(44,102,84,.12); }.plan-card-header { display: flex; justify-content: space-between; gap: 10px; align-items: start; }.plan-card h3 { margin: 3px 0 0; font-family: Georgia, serif; font-size: 22px; }.plan-card-header > strong { color: var(--moss-dark); font-size: 12px; text-align: right; }.plan-card p { min-height: 38px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }.plan-card-limits { display: grid; gap: 5px; color: var(--ink); font-size: 10px; }.plan-card > small { min-height: 28px; color: var(--muted); font-size: 9px; line-height: 1.4; }.plan-card .primary-button { width: 100%; justify-content: center; margin-top: auto; }.billing-footnote { margin: 0; font-size: 11px; }
.notes-layout { display: grid; grid-template-columns: 280px 1fr; gap: 16px; min-height: 500px; }.notes-list { padding: 16px; }.notes-search { width: 100%; margin-bottom: 12px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; outline: 0; font-size: 11px; }.note-list-item { width: 100%; display: block; padding: 12px 9px; border: 0; border-top: 1px solid #edf1ef; background: transparent; text-align: left; }.note-list-item:hover { background: #f4f8f5; }.note-list-item strong, .note-list-item span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.note-list-item strong { color: var(--ink); font-size: 12px; }.note-list-item span { margin-top: 4px; color: var(--muted); font-size: 10px; }.empty-copy { padding: 18px 5px; color: var(--muted); font-size: 12px; }.note-editor { display: flex; flex-direction: column; min-height: 500px; }.empty-editor { display: grid; place-items: center; align-content: center; flex: 1; text-align: center; }.empty-editor .action-icon { font-size: 30px; }.empty-editor h2 { margin-top: 14px; }.note-editor-head { display: flex; gap: 15px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 15px; }.note-editor-head input { width: 100%; border: 0; outline: 0; color: var(--ink); font-family: Georgia, serif; font-size: 23px; }.note-editor textarea { width: 100%; flex: 1; min-height: 330px; resize: vertical; padding: 19px 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-family: inherit; font-size: 13px; line-height: 1.7; }.note-editor-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 13px; }.note-editor-foot .primary-button { padding: 8px 11px; }
.file-picker { position: relative; overflow: hidden; }.file-picker input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }.files-panel { min-height: 430px; }.file-list { display: grid; }.file-row { display: flex; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid #edf1ef; }.file-row .file-badge { flex: 0 0 auto; }.file-row > .muted { font-size: 10px; white-space: nowrap; }.file-folder-select { width: 130px; flex: 0 0 130px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--moss-dark); background: #fbfdfb; font-size: 10px; }
.files-search { width: 170px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; outline: 0; font-size: 11px; }.file-actions { display: flex; gap: 10px; margin-left: auto; }.text-button.danger { color: var(--coral); }
.drive-actions { display: flex; gap: 9px; align-items: center; }.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 9px; margin-bottom: 15px; }.folder-chip { display: grid; grid-template-columns: 1fr auto; align-items: center; width: 100%; padding: 7px; border: 1px solid #d8e8e0; border-radius: 8px; color: var(--moss-dark); background: #f5faf7; text-align: left; }.folder-chip:hover, .folder-chip.active { border-color: var(--moss); background: #eaf5ef; }.folder-open { display: grid; grid-template-columns: 20px 1fr; column-gap: 7px; align-items: center; min-width: 0; padding: 4px; border: 0; color: inherit; background: transparent; text-align: left; }.folder-open span { grid-row: span 2; font-size: 18px; }.folder-chip strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }.folder-chip small { color: var(--muted); font-size: 9px; }.folder-rename { padding: 4px; border: 0; color: var(--moss); background: transparent; font-size: 9px; font-weight: bold; }
.folder-form { display: flex; gap: 9px; align-items: end; margin-bottom: 14px; padding: 13px; border: 1px solid #cfe3da; border-radius: 10px; background: #f5faf7; }.folder-form label { color: var(--moss-dark); font-size: 11px; font-weight: bold; }.folder-form input { width: 220px; margin-left: 2px; padding: 9px; border: 1px solid var(--line); border-radius: 6px; outline: 0; font-size: 11px; }.folder-form .primary-button { padding: 9px 11px; }
.search-results-panel { max-width: 860px; }.search-result { width: 100%; display: flex; gap: 12px; align-items: center; padding: 14px 0; border: 0; border-top: 1px solid #edf1ef; color: var(--ink); background: transparent; text-align: left; }.search-result:hover { background: #f6faf7; }.search-result .file-badge { flex: 0 0 auto; }.search-result > span { margin-left: auto; color: var(--moss); font-size: 18px; }
.conversation-history { max-height: 260px; overflow: auto; }.conversation-search { width: 100%; margin-bottom: 8px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 6px; outline: 0; font-size: 10px; }.conversation-row { display: flex; gap: 6px; align-items: center; border-top: 1px solid #edf1ef; }.conversation-item { width: 100%; display: block; padding: 10px 0; border: 0; background: transparent; text-align: left; }.conversation-item:hover { background: #f6faf7; }.conversation-item strong, .conversation-item span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.conversation-item strong { color: var(--ink); font-size: 11px; }.conversation-item span { margin-top: 3px; color: var(--muted); font-size: 9px; }.conversation-delete { border: 0; color: var(--muted); background: transparent; font-size: 16px; }.conversation-delete:hover { color: var(--coral); }
.ai-hero { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 25px; padding: 26px 28px; border-radius: 16px; color: #eff8f2; background: #183f36; box-shadow: var(--shadow); }.ai-hero h1 { margin-bottom: 7px; color: #fff; }.ai-hero .muted { color: #bad2c7; }.ai-hero .eyebrow { color: #f4c875; }.ai-status { display: flex; gap: 8px; align-items: center; padding: 9px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; color: #e4f3eb; font-size: 11px; white-space: nowrap; }.ai-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .75fr); gap: 16px; }.ai-chat-panel { min-height: 570px; display: flex; flex-direction: column; }.ai-messages { flex: 1; overflow: auto; padding: 4px 0 12px; }.ai-message { display: flex; gap: 11px; max-width: 86%; margin: 16px 0; }.ai-message.user { flex-direction: row-reverse; margin-left: auto; }.message-avatar { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: #fff; background: var(--moss); font-size: 10px; font-weight: bold; }.ai-message.user .message-avatar { color: #4c3b20; background: var(--gold); }.ai-message p { margin: 3px 0 0; padding: 11px 13px; border-radius: 4px 12px 12px 12px; color: var(--ink); background: #f0f5f2; font-size: 12px; line-height: 1.5; }.ai-message.user p { border-radius: 12px 4px 12px 12px; color: #fff; background: var(--moss); }.approval-card { margin-top: 8px; padding: 13px; border: 1px solid #efc6a3; border-radius: 9px; background: #fff8f1; }.approval-card p { margin: 0; padding: 0; border-radius: 0; color: var(--ink); background: transparent; }.approval-card .primary-button { padding: 8px 11px; margin-top: 8px; }.approval-card .text-button { margin-left: 12px; }.suggestion-row { display: flex; gap: 7px; overflow-x: auto; padding: 12px 0; }.suggestion-row button { flex: 0 0 auto; padding: 8px 10px; border: 1px solid #cfe3da; border-radius: 18px; color: var(--moss-dark); background: #f5faf7; font-size: 10px; }.ai-composer { display: flex; gap: 8px; align-items: center; padding: 7px; border: 1px solid #bdd5ca; border-radius: 10px; background: #fbfdfb; }.ai-composer input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }.composer-icon { border: 0; color: var(--moss); background: transparent; font-size: 18px; }.send-button { width: 30px; height: 30px; border: 0; border-radius: 7px; color: #fff; background: var(--moss); font-weight: bold; }.composer-note { display: block; margin-top: 9px; color: var(--muted); font-size: 10px; text-align: center; }.ai-side { display: grid; align-content: start; gap: 16px; }.permission-list { display: grid; gap: 14px; }.permission-list > div { display: grid; grid-template-columns: 9px 1fr auto; gap: 8px; align-items: center; }.permission-list strong { font-size: 12px; }.permission-list small { color: var(--muted); font-size: 10px; }.module-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }.module-dot.green { background: #4baf79; }.module-dot.muted-dot { background: #b4c0bc; }.activity-item { display: grid; grid-template-columns: 65px 1fr; gap: 9px; padding: 12px 0; border-top: 1px solid #edf1ef; }.activity-item span { color: var(--muted); font-size: 10px; }.activity-item p { margin: 0; font-size: 12px; }.activity-item small { display: block; margin-top: 4px; color: var(--moss); font-size: 10px; }.ai-fab { position: fixed; right: 27px; bottom: 25px; z-index: 4; display: flex; gap: 8px; align-items: center; padding: 12px 15px; border: 0; border-radius: 24px; color: #fff; background: var(--moss-dark); box-shadow: 0 10px 25px rgba(18,55,44,.25); font-size: 11px; }.ai-fab span { color: var(--gold); font-size: 18px; }
.permission-list select { max-width: 116px; padding: 5px 6px; border: 1px solid var(--line); border-radius: 6px; color: var(--moss-dark); background: #fbfdfb; font-size: 10px; }
.settings-layout { display: grid; grid-template-columns: 210px 1fr; gap: 20px; }.settings-menu { padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }.settings-menu button { width: 100%; padding: 11px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); text-align: left; font-size: 12px; }.settings-menu button.active { color: var(--moss-dark); background: var(--mint); font-weight: bold; }.settings-panels { display: grid; gap: 14px; }.organization-form, .invite-form { display: grid; gap: 12px; }.organization-form label, .invite-form label, .plan-select-label { color: var(--ink); font-size: 11px; font-weight: bold; }.organization-form input, .invite-form input, .organization-form select, .invite-form select, .plan-select-label select { display: block; width: 100%; margin-top: 6px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; outline: 0; color: var(--ink); background: #fbfdfb; font-size: 11px; }.organization-fields { display: grid; grid-template-columns: 1fr 120px; gap: 10px; }.organization-form .primary-button, .invite-form .primary-button { width: fit-content; }.billing-summary { display: flex; justify-content: space-between; margin: 15px 0; padding: 12px; border-radius: 8px; color: var(--moss-dark); background: var(--mint); font-size: 11px; }.billing-summary strong { font-size: 13px; }.plan-label { color: var(--moss); font-size: 12px; }.billing-note { margin-top: 10px; font-size: 10px; }.member-list { display: grid; margin-bottom: 16px; }.member-row { display: flex; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid #edf1ef; }.member-avatar { width: 28px; height: 28px; flex: 0 0 auto; font-size: 9px; }.member-row select { width: 120px; padding: 6px; border: 1px solid var(--line); border-radius: 6px; color: var(--moss-dark); background: #fbfdfb; font-size: 10px; }.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid #edf1ef; }.setting-row:first-of-type { border-top: 0; }.setting-row strong { display: block; font-size: 13px; }.setting-row span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }.switch { width: 39px; height: 22px; position: relative; border: 0; border-radius: 12px; background: #c6d2ce; }.switch.on { background: var(--moss); }.switch:after { content: ""; position: absolute; width: 16px; height: 16px; top: 3px; left: 3px; border-radius: 50%; background: #fff; transition: .2s; }.switch.on:after { left: 20px; }
.toast { position: fixed; right: 25px; bottom: 25px; z-index: 5; max-width: 300px; padding: 12px 16px; border-radius: 8px; color: #fff; background: var(--ink); box-shadow: var(--shadow); font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .25s; }.toast.show { opacity: 1; transform: translateY(0); }
.hidden { display: none !important; }
.settings-control-center .settings-menu { max-height: 720px; overflow-y: auto; }
.settings-category-icon { display: inline-grid; width: 24px; height: 24px; place-items: center; margin-right: 7px; border-radius: 6px; color: var(--moss-dark); background: var(--mint); font-size: 11px; font-weight: bold; }
.settings-control-center .settings-menu button { display: flex; gap: 7px; align-items: center; }
.settings-control-center .settings-menu button span:last-child { min-width: 0; }
.settings-control-center .settings-menu button strong, .settings-control-center .settings-menu button small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-control-center .settings-menu button small { margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: normal; }
.settings-search-label { display: block; padding: 7px 3px 12px; color: var(--muted); font-size: 10px; font-weight: bold; }
.settings-search-label input, .settings-filter-row select { display: block; width: 100%; margin-top: 6px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; outline: 0; color: var(--ink); background: var(--surface); font-size: 11px; }
.settings-control-panel .setting-row { min-height: 52px; }
.settings-control-panel .setting-row input[type="text"], .settings-control-panel .setting-row input[type="number"], .settings-control-panel .setting-row select { width: 170px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--surface); font-size: 11px; }
.settings-control-panel .setting-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--moss); }
.settings-empty { padding: 28px 4px; }
@media (max-width: 720px) { .settings-control-center .settings-menu { max-height: none; }.settings-control-center .settings-menu button { min-width: 190px; }.settings-control-panel .setting-row { align-items: flex-start; }.settings-control-panel .setting-row input[type="text"], .settings-control-panel .setting-row input[type="number"], .settings-control-panel .setting-row select { width: 140px; } }
.app-shell.theme-dark { --ink: #edf5f0; --muted: #a6b8b0; --line: #344b43; --paper: #14211e; --surface: #1c2c27; --mint: #294b3f; --moss: #75c4a2; --moss-dark: #a5e0c4; --shadow: 0 18px 40px rgba(0,0,0,.22); background: var(--paper); color: var(--ink); }
html.theme-dark { color-scheme: dark; }
html.theme-dark body { background-color: var(--paper); color: var(--ink); }
.app-shell.theme-dark .topbar { background: rgba(20,33,30,.9); }.app-shell.theme-dark body, .app-shell.theme-dark .panel, .app-shell.theme-dark .quick-action, .app-shell.theme-dark .settings-menu { background-color: var(--surface); }.app-shell.theme-dark input, .app-shell.theme-dark select, .app-shell.theme-dark textarea { color: var(--ink); background: #182722; }.app-shell.theme-dark .nav-item.active { color: #163b2d; background: #b7e4cf; }
.app-shell.density-compact .panel { padding: 15px; }.app-shell.density-compact .content-wrap { padding-top: 28px; }.app-shell.density-compact .setting-row, .app-shell.density-compact .member-row { padding-top: 7px; padding-bottom: 7px; }
.app-shell.font-size-small { font-size: 90%; }.app-shell.font-size-large { font-size: 112%; }.app-shell.reduced-motion *, .app-shell.reduced-motion *::before, .app-shell.reduced-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
@media (max-width: 1050px) { .quick-actions { grid-template-columns: repeat(3, 1fr); }.center-strip-grid { grid-template-columns: repeat(2, 1fr); }.workspace-grid { grid-template-columns: 1fr 1fr; }.recent-panel { grid-row: auto; grid-column: span 2; } }
@media (max-width: 720px) { .app-shell.sidebar-collapsed .sidebar, .sidebar { width: 248px; flex-basis: 248px; position: fixed; inset: 0 auto 0 0; z-index: 10; transform: translateX(-100%); transition: transform .25s; box-shadow: 15px 0 35px rgba(0,0,0,.18); }.sidebar.open { transform: translateX(0); }.app-shell.mobile-nav-open::after { content: ''; position: fixed; inset: 0; z-index: 9; background: rgba(8,18,15,.42); }.topbar { padding: 0 18px; }.menu-toggle { display: block; margin-right: 12px; }.breadcrumbs { margin-right: auto; }.global-search { width: 35px; padding: 8px; border: 0; background: transparent; }.global-search input, .global-search kbd { display: none; }.topbar-actions { gap: 10px; }.content-wrap { padding: 28px 18px 42px; }.dashboard-head, .view-header { display: block; }.dashboard-head .status-pill { width: fit-content; margin-top: 16px; }.quick-actions { grid-template-columns: repeat(2, 1fr); }.center-strip-head { display: block; }.center-strip-head .muted { display: block; margin-top: 5px; }.center-strip-grid { grid-template-columns: 1fr; }.workspace-grid { display: block; }.panel { margin-bottom: 14px; }.recent-panel { margin-top: 14px; }.settings-layout { display: block; }.settings-menu { display: flex; overflow-x: auto; margin-bottom: 14px; }.settings-menu button { min-width: max-content; }.view-header .primary-button { margin-top: 15px; }.ai-hero { display: block; padding: 22px; }.ai-status { width: fit-content; margin-top: 17px; }.ai-layout { display: block; }.ai-chat-panel { min-height: 570px; }.ai-side { margin-top: 14px; }.ai-fab { right: 16px; bottom: 17px; }.ai-message { max-width: 94%; }.auth-layout { display: block; min-height: auto; }.auth-intro { margin-bottom: 27px; }.auth-intro h1 { font-size: 39px; }.auth-form { padding: 22px; } }
@media (max-width: 720px) { .center-hero { display: block; min-height: 0; padding: 25px 22px; }.center-orbit { margin: 24px 0 0; }.center-metrics { grid-template-columns: 1fr; gap: 8px; }.center-metric { padding: 14px 16px; }.center-layout { display: block; }.center-insight { margin-top: 14px; } }
.social-view-header { align-items: center; }.social-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }.social-kpi-grid article { padding: 17px 19px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: 0 5px 15px rgba(40,70,60,.03); }.social-kpi-grid span, .social-kpi-grid small { display: block; color: var(--muted); font-size: 10px; }.social-kpi-grid strong { display: block; margin: 7px 0 4px; color: var(--ink); font-family: Georgia, serif; font-size: 27px; font-weight: normal; }.social-kpi-grid small.positive { color: #33835e; }.social-dashboard-grid, .analytics-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; }.social-posts-panel { grid-row: span 2; }.social-post-row, .social-account-mini, .top-content-row, .social-simple-row { display: flex; gap: 11px; align-items: center; width: 100%; padding: 12px 0; border: 0; border-top: 1px solid #edf1ef; color: var(--ink); background: transparent; text-align: left; }.social-post-row:hover, .social-simple-row:hover { background: #f7faf8; }.social-post-row > span:nth-child(2), .social-account-mini > span:nth-child(2), .top-content-row > span { min-width: 0; flex: 1; }.social-post-row strong, .social-post-row small, .social-account-mini strong, .social-account-mini small, .top-content-row strong, .top-content-row small, .social-simple-row strong, .social-simple-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.social-post-row strong, .social-account-mini strong, .top-content-row strong, .social-simple-row strong { font-size: 11px; }.social-post-row small, .social-account-mini small, .top-content-row small, .social-simple-row small { margin-top: 4px; color: var(--muted); font-size: 9px; }.social-post-row > b, .social-simple-row > b { color: var(--moss); font-size: 17px; font-weight: normal; }.social-post-mark, .social-account-avatar, .social-platform-logo { display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: #fff; background: var(--platform-color); font-size: 10px; font-weight: bold; }.social-post-mark { width: 34px; height: 34px; }.social-account-avatar { width: 30px; height: 30px; }.social-status { flex: 0 0 auto; padding: 5px 7px; border-radius: 5px; font-size: 9px; font-weight: bold; }.social-status.scheduled { color: #78601d; background: #fff1c9; }.social-status.published { color: #276946; background: #def2e6; }.social-status.draft { color: #53637a; background: #e8edf3; }.social-status.failed { color: #a14738; background: #fde5de; }.mini-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 20px 0; }.mini-day { display: grid; justify-items: center; gap: 7px; padding: 8px 2px; border-radius: 7px; color: var(--muted); font-size: 10px; }.mini-day strong { color: var(--ink); font-size: 12px; }.mini-day.today { color: var(--moss-dark); background: var(--mint); }.mini-day i { width: 5px; height: 5px; border-radius: 50%; background: var(--coral); box-shadow: calc(var(--posts) * 8px) 0 0 var(--gold); }.social-insight { background: #fff8ed; border-color: #f0dfc4; }.social-insight h2 { line-height: 1.25; }.social-insight .primary-button { margin-top: 14px; }.composer-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 16px; }.social-composer-form { padding: 24px; }.social-platform-options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }.social-platform-option { display: flex; gap: 8px; align-items: center; min-width: 150px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }.social-platform-option:has(input:checked) { border-color: var(--moss); background: #eef7f1; }.social-platform-option.disabled { opacity: .55; cursor: not-allowed; }.social-platform-option input { accent-color: var(--moss); }.social-platform-logo { width: 25px; height: 25px; }.social-platform-option strong, .social-platform-option small { display: block; }.social-platform-option strong { font-size: 11px; }.social-platform-option small { margin-top: 3px; color: var(--muted); font-size: 9px; }.composer-label { display: block; color: var(--ink); font-size: 11px; font-weight: bold; }.composer-label textarea { display: block; width: 100%; min-height: 145px; margin-top: 7px; resize: vertical; padding: 12px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--ink); background: #fbfdfb; font-size: 12px; line-height: 1.55; }.composer-toolbar { display: flex; gap: 14px; padding: 12px 0; }.composer-toolbar button { border: 0; color: var(--moss); background: transparent; font-size: 10px; }.media-dropzone { display: grid; justify-items: center; gap: 5px; padding: 24px; border: 1px dashed #a9cdbb; border-radius: 9px; color: var(--moss-dark); background: #f5faf7; text-align: center; cursor: pointer; }.media-dropzone span { font-size: 22px; }.media-dropzone strong { font-size: 11px; }.media-dropzone small { color: var(--muted); font-size: 9px; }.media-dropzone input { display: none; }.composer-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 18px; }.composer-footer > div { display: flex; align-items: center; gap: 14px; }.social-preview-card { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdfb; }.social-preview-head { display: flex; gap: 8px; align-items: center; }.social-preview-head span:nth-child(2) { flex: 1; }.social-preview-head strong, .social-preview-head small { display: block; }.social-preview-head strong { font-size: 11px; }.social-preview-head small { margin-top: 3px; color: var(--muted); font-size: 9px; }.social-preview-image { display: grid; place-items: center; height: 180px; margin: 12px -14px; color: #8aa198; background: #e8f0eb; font-size: 11px; }.social-preview-copy { min-height: 42px; color: var(--ink); font-size: 11px; line-height: 1.5; white-space: pre-wrap; }.social-preview-actions { display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); color: var(--moss); }.checklist { display: grid; grid-template-columns: 20px 1fr; gap: 9px; align-items: start; }.checklist span { color: var(--moss); font-weight: bold; }.checklist p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.3; }.social-calendar-toolbar, .library-toolbar, .analytics-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 15px; }.social-calendar-toolbar select, .library-toolbar select, .analytics-toolbar select, .social-view-header select, .panel-head select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--moss-dark); background: var(--surface); font-size: 10px; }.segmented-control { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #f0f5f2; }.segmented-control button { padding: 7px 10px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; font-size: 10px; }.segmented-control button.active { color: var(--moss-dark); background: #fff; box-shadow: 0 2px 5px rgba(40,70,60,.08); }.social-calendar { overflow: auto; }.calendar-heading { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }.calendar-heading h2 { margin: 0 auto 0 0; }.calendar-heading .muted { padding: 7px 10px; border-radius: 6px; background: var(--mint); font-size: 10px; }.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(105px, 1fr)); min-width: 760px; }.calendar-days { gap: 1px; }.calendar-days strong { padding: 10px; color: var(--muted); background: #f6f9f7; font-size: 10px; }.calendar-cells { gap: 1px; background: var(--line); }.calendar-cell { min-height: 112px; padding: 8px; background: #fff; }.calendar-cell > b { color: var(--muted); font-size: 10px; }.calendar-cell.today { background: #f3faf5; }.calendar-post { display: block; margin-top: 7px; padding: 5px; overflow: hidden; border-left: 3px solid var(--moss); border-radius: 4px; color: var(--ink); background: #e6f2eb; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.calendar-post.instagram { border-color: #c6537d; background: #faeaf0; }.calendar-post.facebook { border-color: #4267b2; background: #e7edf9; }.calendar-post.draft { border-color: var(--gold); background: #fff5d9; }.library-toolbar input { flex: 1; min-width: 180px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; outline: 0; font-size: 11px; }.social-library-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }.library-card { display: grid; grid-template-columns: 58px 1fr auto; gap: 11px; align-items: center; padding: 12px; }.library-thumb { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 8px; color: #fff; font-size: 10px; font-weight: bold; }.library-thumb.green { background: var(--moss); }.library-thumb.gold { color: #5c471d; background: var(--gold); }.library-thumb.coral { background: var(--coral); }.library-card h3 { margin: 0; font-family: inherit; font-size: 11px; font-weight: bold; }.library-card p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }.social-accounts-table { overflow: auto; }.social-table-head, .social-table-row { display: grid; grid-template-columns: 1.1fr 1.4fr .9fr .8fr 1.2fr; gap: 12px; align-items: center; min-width: 760px; }.social-table-head { padding: 10px 0; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .7px; }.social-table-row { padding: 13px 0; border-top: 1px solid #edf1ef; font-size: 10px; }.social-table-row > span:nth-child(2) strong, .social-table-row > span:nth-child(2) small { display: block; }.social-table-row > span:nth-child(2) small { margin-top: 3px; color: var(--muted); font-size: 9px; }.social-table-row .text-button { margin-right: 9px; }.connection-status { color: #33835e; font-size: 10px; }.connection-status i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #4baf79; }.muted-connection { color: var(--muted); }.muted-connection i { background: var(--gold); }.chart-panel { min-height: 300px; }.fake-chart { position: relative; display: flex; gap: 15px; align-items: end; height: 190px; padding: 15px 10px 25px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0, transparent 46px, #edf1ef 47px); }.fake-chart i { position: relative; flex: 1; min-width: 15px; border-radius: 5px 5px 0 0; background: var(--mint); }.fake-chart i:nth-of-type(4n) { background: var(--moss); }.fake-chart i b { position: absolute; bottom: -20px; left: 50%; color: var(--muted); font-size: 9px; font-weight: normal; transform: translateX(-50%); }.top-content-row > b { color: var(--muted); font-family: Georgia, serif; font-size: 18px; font-weight: normal; }.social-simple-list { max-width: 950px; }.social-simple-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--moss-dark); background: var(--mint); font-size: 15px; }
@media (max-width: 1050px) { .social-kpi-grid { grid-template-columns: repeat(2, 1fr); }.social-library-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .social-view-header .text-button { margin-top: 16px; }.social-kpi-grid { grid-template-columns: 1fr 1fr; }.social-dashboard-grid, .analytics-grid, .composer-layout { display: block; }.social-dashboard-grid > article, .social-dashboard-grid > aside, .composer-preview > article { margin-bottom: 14px; }.social-calendar-toolbar, .library-toolbar, .analytics-toolbar { align-items: stretch; flex-wrap: wrap; }.social-calendar-toolbar .text-button { width: 100%; text-align: left; }.social-library-grid { grid-template-columns: 1fr; }.social-table-row { padding: 12px 0; }.social-composer-form { padding: 18px; }.social-platform-option { min-width: calc(50% - 4px); }.composer-footer { display: block; }.composer-footer > div { justify-content: flex-end; margin-top: 12px; }.social-preview-image { height: 150px; } }
.social-customization, .social-schedule-fields { margin: 20px 0; padding-top: 18px; border-top: 1px solid var(--line); }.social-custom-tabs { display: flex; gap: 5px; margin-bottom: 9px; overflow-x: auto; }.social-custom-tabs button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--surface); font-size: 10px; white-space: nowrap; }.social-custom-tabs button.active { border-color: var(--moss); color: var(--moss-dark); background: var(--mint); font-weight: bold; }.social-custom-copy { width: 100%; min-height: 70px; resize: vertical; padding: 10px; border: 1px solid var(--line); border-radius: 7px; outline: 0; color: var(--ink); background: #fbfdfb; font-size: 11px; }.social-schedule-badge { padding: 5px 7px; border-radius: 5px; color: #78601d; background: #fff1c9; font-size: 9px; font-weight: bold; }.social-schedule-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }.social-schedule-grid label { color: var(--ink); font-size: 10px; font-weight: bold; }.social-schedule-grid input, .social-schedule-grid select { display: block; width: 100%; margin-top: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; outline: 0; color: var(--ink); background: #fbfdfb; font-size: 10px; }
.social-data-note { display: flex; gap: 8px; align-items: center; width: fit-content; margin: -10px 0 16px; padding: 8px 10px; border: 1px solid #e6dfc6; border-radius: 7px; color: #78601d; background: #fffaf0; font-size: 10px; }
.social-activity-list { display: grid; }.social-activity-row { display: flex; gap: 9px; align-items: center; padding: 10px 0; border-top: 1px solid #edf1ef; }.social-activity-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--moss); }.social-activity-row span:nth-child(2) { min-width: 0; }.social-activity-row strong, .social-activity-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.social-activity-row strong { font-size: 10px; text-transform: capitalize; }.social-activity-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.social-post-list-row { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid #edf1ef; }.social-post-list-row > span:nth-child(2) { min-width: 0; flex: 1; }.social-post-list-row strong, .social-post-list-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.social-post-list-row strong { font-size: 12px; }.social-post-list-row small { margin-top: 4px; color: var(--muted); font-size: 10px; }
@media (max-width: 720px) { .social-schedule-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .bible-layout { display: block; }.bible-search { margin-top: 14px; }.bible-toolbar { flex-wrap: wrap; }.bible-reference { width: 100%; margin-left: 0; }.bible-passage p { font-size: 17px; }.bible-reader-foot { display: block; }.bible-bookmark-state { display: block; margin-top: 7px; } }
.workspace-switcher-panel { max-width: 620px; margin: 32px auto 14px; }.workspace-switcher-panel select, .team-member-form select { display: block; width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fbfdfb; font-size: 11px; }.team-list { display: grid; }.team-row { display: flex; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid #edf1ef; }.team-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--moss-dark); background: var(--mint); }.team-member-form { display: flex; gap: 7px; align-items: center; margin-left: auto; }.team-member-form select { width: 150px; }.team-member-form .text-button { white-space: nowrap; }
.platform-admin-nav { color: #f4c875 !important; background: rgba(232,180,92,.08) !important; }.admin-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 16px; padding: 30px 32px; border-radius: 16px; color: #eff8f2; background: #183f36; box-shadow: var(--shadow); }.admin-hero h1 { margin-bottom: 8px; color: #fff; }.admin-hero p:not(.eyebrow) { max-width: 720px; margin-bottom: 0; color: #bad2c7; line-height: 1.5; }.admin-hero .eyebrow { color: #f4c875; }.admin-badge { padding: 9px 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 7px; color: #f4c875; font-size: 10px; font-weight: bold; letter-spacing: 1px; white-space: nowrap; }.admin-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }.admin-kpi-grid article { padding: 18px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: 0 5px 15px rgba(40,70,60,.03); }.admin-kpi-grid span, .admin-kpi-grid small { display: block; color: var(--muted); font-size: 10px; }.admin-kpi-grid strong { display: block; margin: 7px 0 4px; color: var(--ink); font-family: Georgia, serif; font-size: 27px; font-weight: normal; }.admin-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }.admin-table { display: grid; }.admin-table-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid #edf1ef; }.admin-table-row strong, .admin-table-row small { display: block; }.admin-table-row strong { font-size: 11px; }.admin-table-row small { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.admin-table-row .status-pill { padding: 5px 7px; border: 0; border-radius: 5px; color: var(--moss-dark); background: var(--mint); font-size: 9px; }.admin-table-row select { min-width: 105px; padding: 6px; border: 1px solid var(--line); border-radius: 6px; color: var(--moss-dark); background: #fbfdfb; font-size: 10px; }.admin-create-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }.admin-create-form input { min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; outline: 0; color: var(--ink); background: #fbfdfb; font-size: 11px; }.admin-create-form .primary-button { grid-column: span 2; width: fit-content; }.admin-activity-row { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-top: 1px solid #edf1ef; font-size: 10px; }.admin-activity-row span { color: var(--muted); text-align: right; }
@media (max-width: 720px) { .admin-hero { display: block; padding: 24px 20px; }.admin-badge { display: inline-block; margin-top: 17px; }.admin-kpi-grid { grid-template-columns: 1fr 1fr; }.admin-layout { display: block; }.admin-layout > .panel { margin-bottom: 14px; }.admin-table-row { grid-template-columns: minmax(0, 1fr) auto; }.admin-table-row > :not(:first-child) { justify-self: end; }.admin-table-row select, .admin-table-row .text-button { grid-column: 2; }.admin-create-form { grid-template-columns: 1fr; }.admin-create-form .primary-button { grid-column: auto; }.admin-activity-row { display: block; }.admin-activity-row span { display: block; margin-top: 4px; text-align: left; } }
.invoice-header-actions, .invoice-editor-actions, .invoice-filters { display: flex; gap: 10px; align-items: center; }.invoice-header-actions .active { color: var(--moss-dark); }.invoice-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }.invoice-kpi-grid button { display: block; padding: 17px 19px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: var(--surface); box-shadow: 0 5px 15px rgba(40,70,60,.03); text-align: left; }.invoice-kpi-grid button:hover { border-color: #9bc5b5; }.invoice-kpi-grid span, .invoice-kpi-grid small { display: block; color: var(--muted); font-size: 10px; }.invoice-kpi-grid strong { display: block; margin: 7px 0 4px; color: var(--ink); font-family: Georgia, serif; font-size: 25px; font-weight: normal; }.invoice-workspace { display: grid; grid-template-columns: minmax(360px, .9fr) minmax(0, 1.5fr); gap: 16px; }.invoice-list { min-height: 520px; }.invoice-search { width: 180px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; outline: 0; color: var(--ink); background: var(--surface); font-size: 11px; }.invoice-filters select, .invoice-form-grid select, .invoice-form-grid input, .invoice-bottom-grid input, .invoice-bottom-grid select, .invoice-settings-form input, .invoice-settings-form select, .invoice-settings-form textarea { width: 100%; margin-top: 6px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; outline: 0; color: var(--ink); background: #fbfdfb; font-size: 11px; }.invoice-filters select { width: 120px; margin-top: 0; }.invoice-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 18px; gap: 10px; align-items: center; width: 100%; padding: 14px 0; border: 0; border-top: 1px solid #edf1ef; color: var(--ink); background: transparent; text-align: left; }.invoice-row:hover, .invoice-row.active { background: #f5faf7; }.invoice-row > span:first-child { min-width: 0; }.invoice-row strong, .invoice-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.invoice-row strong { font-size: 11px; }.invoice-row small { margin-top: 4px; color: var(--muted); font-size: 9px; }.invoice-row > b { font-size: 11px; font-weight: bold; white-space: nowrap; }.invoice-row > span:last-child { color: var(--moss); font-size: 16px; }.invoice-status { padding: 5px 7px; border-radius: 5px; color: #78601d; background: #fff1c9; font-size: 9px; font-weight: bold; white-space: nowrap; }.invoice-status.paid { color: #26704e; background: #e4f4eb; }.invoice-status.draft { color: var(--muted); background: #eef2f0; }.invoice-status.overdue { color: #a74739; background: #fff0ed; }.invoice-status.cancelled { color: #8d6460; background: #f5e9e7; }.invoice-editor { min-width: 0; }.invoice-form-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 10px; }.invoice-form-grid label, .invoice-bottom-grid label, .invoice-settings-form label { color: var(--ink); font-size: 10px; font-weight: bold; }.invoice-lines { margin-top: 22px; }.invoice-lines-head, .invoice-line-row { display: grid; grid-template-columns: minmax(0, 1fr) 72px 96px 100px 25px; gap: 9px; align-items: center; }.invoice-lines-head { padding-bottom: 8px; color: var(--muted); font-size: 9px; text-transform: uppercase; }.invoice-lines-head h3 { display: none; }.invoice-line-row { padding: 8px 0; border-top: 1px solid #edf1ef; }.invoice-line-row input { min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 6px; outline: 0; color: var(--ink); background: #fbfdfb; font-size: 10px; }.invoice-line-row strong { font-size: 10px; text-align: right; }.invoice-line-row .icon-button { color: var(--coral); }.invoice-lines > .text-button { margin-top: 9px; }.invoice-bottom-grid { display: grid; grid-template-columns: 1fr 220px; gap: 20px; margin-top: 22px; }.invoice-bottom-grid textarea, .invoice-settings-form textarea { display: block; width: 100%; margin-top: 6px; resize: vertical; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; outline: 0; color: var(--ink); background: #fbfdfb; font: inherit; font-size: 11px; }.invoice-bottom-grid label + label { display: block; margin-top: 12px; }.invoice-total-box { display: grid; gap: 9px; align-content: start; padding: 14px; border-radius: 9px; background: #f5faf7; }.invoice-total-box > div { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }.invoice-total-box .invoice-total { margin-top: 4px; padding-top: 10px; border-top: 1px solid #cfe3da; color: var(--ink); font-size: 12px; }.invoice-total strong { color: var(--moss-dark); font-family: Georgia, serif; font-size: 19px; font-weight: normal; }.invoice-preview { display: flex; justify-content: space-between; gap: 20px; margin-top: 20px; padding: 14px; border-top: 2px solid var(--gold); background: #fffdf8; }.invoice-preview strong, .invoice-preview small, .invoice-preview span { display: block; }.invoice-preview strong { font-family: Georgia, serif; font-size: 14px; }.invoice-preview small, .invoice-preview span { margin-top: 4px; color: var(--muted); font-size: 9px; }.invoice-preview > div:nth-child(2) { text-align: right; }.invoice-preview p { align-self: end; margin: 0; color: var(--muted); font-size: 9px; }.invoice-empty { display: grid; place-items: center; align-content: center; min-height: 520px; text-align: center; }.invoice-empty .action-icon { font-size: 34px; }.invoice-empty h2 { margin-top: 12px; }.invoice-settings { max-width: 760px; }.invoice-settings-form { display: grid; gap: 14px; }.invoice-settings-form .invoice-form-grid { grid-template-columns: repeat(3, 1fr); }.invoice-settings-form .primary-button { width: fit-content; }.invoice-settings-form textarea { font-family: inherit; }
@media print { .sidebar, .topbar, .ai-fab, .invoice-header, .invoice-kpi-grid, .invoice-list, .invoice-editor-actions, .invoice-lines button, .invoice-form-grid, .invoice-bottom-grid, .module-window-controls { display: none !important; }.content-wrap { padding: 0; }.invoice-workspace { display: block; }.invoice-editor { border: 0; box-shadow: none; }.invoice-preview { margin-top: 30px; } }
@media (max-width: 1050px) { .invoice-workspace { grid-template-columns: 1fr; }.invoice-editor { order: -1; }.invoice-kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .invoice-header-actions { flex-wrap: wrap; margin-top: 15px; }.invoice-header-actions .primary-button { width: 100%; justify-content: center; }.invoice-filters { display: grid; grid-template-columns: 1fr 120px; }.invoice-search { width: 100%; }.invoice-form-grid, .invoice-settings-form .invoice-form-grid { grid-template-columns: 1fr 1fr; }.invoice-lines-head { display: none; }.invoice-line-row { grid-template-columns: minmax(0, 1fr) 60px 80px 25px; }.invoice-line-row strong { grid-column: 1 / 4; text-align: left; }.invoice-line-row .icon-button { grid-column: 4; grid-row: 1; }.invoice-bottom-grid { display: block; }.invoice-total-box { margin-top: 16px; }.invoice-preview { display: block; }.invoice-preview > div:nth-child(2) { margin-top: 12px; text-align: left; }.invoice-preview p { margin-top: 16px; }.invoice-row { grid-template-columns: minmax(0, 1fr) auto 18px; }.invoice-row > b { display: none; } }
.report-header-actions { display: flex; gap: 10px; align-items: center; }.report-toolbar { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 16px; }.report-toolbar label { color: var(--muted); font-size: 10px; font-weight: bold; }.report-toolbar select { margin-left: 7px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--surface); font-size: 11px; }.report-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }.report-kpi-grid article { padding: 17px 19px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: 0 5px 15px rgba(40,70,60,.03); }.report-kpi-grid span, .report-kpi-grid small { display: block; color: var(--muted); font-size: 10px; }.report-kpi-grid strong { display: block; margin: 7px 0 4px; color: var(--ink); font-family: Georgia, serif; font-size: 25px; font-weight: normal; }.report-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 16px; margin-bottom: 16px; }.report-bars { display: grid; gap: 18px; }.report-bar-row > div:first-child { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }.report-bar-row strong { color: var(--ink); }.report-bar-track { height: 9px; margin-top: 8px; overflow: hidden; border-radius: 5px; background: #edf2ef; }.report-bar-track i { display: block; height: 100%; border-radius: inherit; }.report-insight { background: #fff8ed; border-color: #f0dfc4; }.report-insight h2 { margin-bottom: 12px; line-height: 1.2; }.report-insight .primary-button { margin-top: 15px; }.report-record { display: grid; grid-template-columns: minmax(0, 1fr) 130px 150px; gap: 14px; align-items: center; padding: 13px 0; border-top: 1px solid #edf1ef; }.report-record strong { font-size: 11px; }.report-record span, .report-record small { color: var(--muted); font-size: 10px; }.report-record small { text-align: right; }.report-settings { max-width: 700px; }.report-settings-form { display: grid; gap: 15px; }.report-settings-form label:not(.report-check) { color: var(--ink); font-size: 11px; font-weight: bold; }.report-settings-form input { display: block; width: 100%; margin-top: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; outline: 0; color: var(--ink); background: #fbfdfb; font-size: 11px; }.report-check { display: flex; gap: 9px; align-items: center; color: var(--ink); font-size: 11px; }.report-check input { accent-color: var(--moss); }.report-settings-form .primary-button { width: fit-content; }.report-type-settings { color: var(--moss-dark); background: var(--mint); }.report-settings + .report-grid { display: none; }
@media print { .report-header, .report-toolbar, .report-kpi-grid, .report-settings, .module-window-controls { display: none !important; }.content-wrap { padding: 0; }.report-grid { display: grid; }.report-insight .primary-button { display: none; }.report-table { box-shadow: none; } }
@media (max-width: 1050px) { .report-kpi-grid { grid-template-columns: repeat(2, 1fr); }.report-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .report-header-actions { flex-wrap: wrap; margin-top: 15px; }.report-header-actions .primary-button { width: 100%; justify-content: center; }.report-toolbar { align-items: stretch; flex-direction: column; }.report-toolbar .segmented-control { overflow-x: auto; }.report-record { grid-template-columns: minmax(0, 1fr) auto; }.report-record small { grid-column: 1 / 3; text-align: left; } }
.operation-header { align-items: center; }.operation-actions { display: flex; gap: 12px; align-items: center; }.operation-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }.operation-kpis article { padding: 17px 19px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: 0 5px 15px rgba(40,70,60,.03); }.operation-kpis span, .operation-kpis small { display: block; color: var(--muted); font-size: 10px; }.operation-kpis strong { display: block; margin: 7px 0 4px; color: var(--ink); font-family: Georgia, serif; font-size: 27px; font-weight: normal; }.operation-filters { display: flex; gap: 8px; align-items: center; }.operation-filters input, .operation-filters select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; outline: 0; color: var(--ink); background: var(--surface); font-size: 11px; }.operation-list { display: grid; }.operation-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto auto auto; gap: 11px; align-items: center; padding: 13px 0; border-top: 1px solid #edf1ef; }.operation-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--moss-dark); background: var(--mint); font-size: 13px; }.operation-copy { min-width: 0; }.operation-copy strong, .operation-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.operation-copy strong { font-size: 11px; }.operation-copy small { margin-top: 4px; color: var(--muted); font-size: 9px; }.operation-row > b { font-size: 11px; white-space: nowrap; }.operation-status { padding: 5px 7px; border-radius: 5px; color: #78601d; background: #fff1c9; font-size: 9px; font-weight: bold; white-space: nowrap; }.operation-status.completed, .operation-status.resolved, .operation-status.approved { color: #26704e; background: #e4f4eb; }.operation-status.archived { color: var(--muted); background: #eef2f0; }.operation-empty { min-height: 310px; }.operation-empty h2 { margin-top: 12px; }.report-settings + .report-grid { display: none; }
@media print { .operation-header, .operation-kpis, .operation-filters, .operation-row button, .module-window-controls { display: none !important; }.content-wrap { padding: 0; }.operation-panel { box-shadow: none; } }
@media (max-width: 1050px) { .operation-kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .operation-header { display: block; }.operation-actions { flex-wrap: wrap; margin-top: 15px; }.operation-actions .primary-button { width: 100%; justify-content: center; }.operation-filters { display: grid; grid-template-columns: 1fr 120px; }.operation-filters input { min-width: 0; width: 100%; }.operation-row { grid-template-columns: 30px minmax(0, 1fr) auto; }.operation-row > b { display: none; }.operation-row .operation-status { grid-column: 2; width: fit-content; }.operation-row button { grid-column: 3; }.operation-row button:last-child { grid-column: 3; } }
.bible-preferences { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; margin: -12px auto 20px; max-width: 680px; padding: 8px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; }.bible-preferences button { padding: 5px 7px; border: 1px solid var(--line); border-radius: 5px; color: var(--moss-dark); background: var(--surface); font-size: 9px; }.bible-preferences button:hover { border-color: var(--moss); background: var(--mint); }.bible-integrity { margin-left: auto; }.bible-reader.bible-theme-sepia .bible-passage { background: #fffaf0; }.bible-reader.bible-theme-dark { color: #e5eee9; background: #1d302b; border-color: #345348; }.bible-reader.bible-theme-dark .bible-passage, .bible-reader.bible-theme-dark .bible-passage-heading { background: #1d302b; border-color: #345348; }.bible-reader.bible-theme-dark .bible-passage p { color: #e5eee9; }.bible-reader.bible-theme-dark .bible-preferences { border-color: #345348; }.bible-reader.bible-theme-dark .bible-preferences button { color: #dceee7; background: #29463d; border-color: #41685a; }.bible-reader.bible-font-16 .bible-passage p { font-size: 16px; }.bible-reader.bible-font-18 .bible-passage p { font-size: 18px; }.bible-reader.bible-font-20 .bible-passage p { font-size: 20px; }.bible-reader.bible-font-22 .bible-passage p { font-size: 22px; }.bible-reader.bible-font-24 .bible-passage p { font-size: 24px; }.bible-reader.bible-font-26 .bible-passage p { font-size: 26px; }.bible-reader.bible-font-28 .bible-passage p { font-size: 28px; }.bible-reader.bible-font-30 .bible-passage p { font-size: 30px; }
@media (max-width: 720px) { .module-window-controls { margin-top: 15px; margin-left: 0; width: fit-content; }.module-state-label { display: none; }.workspace-dock { right: 10px; bottom: 10px; left: 10px; overflow-x: auto; }.workspace-dock-item { min-width: 58px; }.workspace-dock-open { grid-template-columns: 1fr; grid-template-rows: 1fr; padding: 7px 4px; }.workspace-dock-open > span { grid-row: auto; }.workspace-dock-open strong, .workspace-dock-open small { display: none; }.workspace-dock-close { width: 20px; font-size: 12px; }.app-shell.fullscreen .topbar { padding-right: 10px; }.app-shell.fullscreen .content-wrap { padding: 24px 18px 86px; } }
@media (max-width: 720px) { .topbar-actions { gap: 5px; }.app-shell.fullscreen .quick-access { top: 16px; left: 10px; }.quick-access-menu { top: 59px; left: 10px; }.minimized-modules-menu { position: fixed; top: 67px; right: 10px; max-height: calc(100vh - 88px); }.minimized-modules-toggle b { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
.spreadsheet-module { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }.spreadsheet-header { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 18px; }.spreadsheet-header h1 { margin-bottom: 3px; font-size: 30px; }.spreadsheet-header-actions { display: flex; gap: 12px; align-items: center; }.spreadsheet-menubar { display: flex; gap: 5px; align-items: center; overflow-x: auto; padding: 7px; border: 1px solid var(--line); border-radius: 8px; background: #f7faf8; }.spreadsheet-menubar button { flex: 0 0 auto; padding: 7px 9px; border: 1px solid transparent; border-radius: 5px; color: var(--moss-dark); background: transparent; font-size: 10px; }.spreadsheet-menubar button:hover { border-color: var(--line); background: var(--surface); }.spreadsheet-zoom { display: flex; gap: 5px; align-items: center; margin-left: auto; color: var(--muted); font-size: 10px; white-space: nowrap; }.spreadsheet-zoom input { width: 80px; accent-color: var(--moss); }.spreadsheet-formula-row { display: grid; grid-template-columns: 75px 24px minmax(0, 1fr) auto; gap: 7px; align-items: center; margin: 10px 0; }.spreadsheet-formula-row > span { color: var(--moss); font-family: Georgia, serif; font-size: 18px; text-align: center; }.spreadsheet-formula-row input { width: 100%; padding: 8px 9px; border: 1px solid var(--line); border-radius: 6px; outline: 0; color: var(--ink); background: #fbfdfb; font-size: 11px; }.spreadsheet-grid-wrap { overflow: auto; max-height: min(62vh, 620px); border: 1px solid var(--line); background: #fff; transform-origin: top left; }.spreadsheet-grid { border-collapse: collapse; min-width: 900px; width: 100%; font-size: 11px; transform: scale(var(--sheet-zoom, 1)); transform-origin: top left; }.spreadsheet-grid th, .spreadsheet-grid td { min-width: 105px; height: 30px; border-right: 1px solid #e8efeb; border-bottom: 1px solid #e8efeb; }.spreadsheet-grid thead th, .spreadsheet-grid tbody th { position: sticky; z-index: 1; color: var(--muted); background: #f3f7f4; font-size: 10px; font-weight: bold; text-align: center; }.spreadsheet-grid thead th { top: 0; }.spreadsheet-grid tbody th { left: 0; min-width: 40px; width: 40px; }.spreadsheet-grid td { padding: 0; }.spreadsheet-grid td.selected { outline: 2px solid var(--moss); outline-offset: -2px; }.spreadsheet-grid td.header { color: #fff; background: var(--moss); }.spreadsheet-grid td.total { color: var(--moss-dark); background: #eef8f3; font-weight: bold; }.spreadsheet-grid td input { width: 100%; height: 29px; padding: 7px; border: 0; outline: 0; color: inherit; background: transparent; font-size: 11px; }.spreadsheet-grid td input:focus { box-shadow: inset 0 0 0 2px var(--gold); }.spreadsheet-footer { display: flex; gap: 16px; align-items: center; min-height: 42px; padding-top: 10px; color: var(--muted); font-size: 10px; }.spreadsheet-footer > span:last-child { margin-left: auto; }.spreadsheet-tabs { display: flex; gap: 4px; align-items: center; }.spreadsheet-sheet-tab, .spreadsheet-add-sheet { padding: 7px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--moss-dark); background: #f7faf8; font-size: 10px; }.spreadsheet-sheet-tab.active { border-color: var(--moss); background: var(--mint); font-weight: bold; }.spreadsheet-add-sheet { padding: 7px 9px; font-size: 14px; }
@media (max-width: 720px) { .spreadsheet-module { padding: 14px; }.spreadsheet-header { display: block; }.spreadsheet-header-actions { flex-wrap: wrap; margin-top: 14px; }.spreadsheet-formula-row { grid-template-columns: 58px 18px minmax(0, 1fr); }.spreadsheet-formula-row .text-button { grid-column: 1 / -1; text-align: left; }.spreadsheet-footer { overflow-x: auto; white-space: nowrap; }.spreadsheet-footer > span:last-child { margin-left: 0; } }
.documents-module { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }.documents-header { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 18px; }.documents-header h1 { margin-bottom: 3px; font-size: 30px; }.documents-header-actions { display: flex; gap: 12px; align-items: center; }.document-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 16px; }.document-kpis button { display: flex; gap: 8px; align-items: baseline; padding: 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--moss-dark); background: #f7faf8; text-align: left; }.document-kpis button:hover { border-color: var(--moss); background: var(--mint); }.document-kpis strong { font-family: Georgia, serif; font-size: 22px; font-weight: normal; }.document-kpis span { color: var(--muted); font-size: 9px; }.documents-workspace { display: grid; grid-template-columns: 225px minmax(0, 1fr) 245px; gap: 14px; }.document-library, .document-inspector { min-width: 0; padding: 14px; }.document-search { width: 100%; margin-bottom: 9px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; outline: 0; font-size: 10px; }.document-filter-tabs { display: flex; gap: 4px; margin-bottom: 9px; }.document-filter-tabs button, .document-template-list button { padding: 6px 7px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; font-size: 9px; }.document-filter-tabs button:hover, .document-template-list button:hover { color: var(--moss-dark); background: var(--mint); }.document-list-item { display: grid; grid-template-columns: 29px 1fr 15px; gap: 7px; align-items: center; width: 100%; padding: 9px 4px; border: 0; border-top: 1px solid #edf1ef; color: var(--ink); background: transparent; text-align: left; }.document-list-item:hover, .document-list-item.active { background: #f2f8f4; }.document-list-item strong, .document-list-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.document-list-item strong { font-size: 10px; }.document-list-item small { margin-top: 3px; color: var(--muted); font-size: 8px; }.document-list-item > b { color: var(--gold); font-size: 12px; }.document-type, .document-type-large { display: grid; place-items: center; width: 29px; height: 32px; border-radius: 5px; color: #fff; background: var(--moss); font-size: 8px; font-weight: bold; }.document-editor-panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fbfdfb; }.document-editor-toolbar { display: flex; gap: 3px; align-items: center; overflow-x: auto; padding: 8px; border-bottom: 1px solid var(--line); background: var(--surface); }.document-editor-toolbar button { flex: 0 0 auto; padding: 6px 8px; border: 0; border-radius: 5px; color: var(--moss-dark); background: transparent; font-size: 10px; }.document-editor-toolbar button:hover { background: var(--mint); }.document-editor-toolbar > span { flex: 1; }.document-editor-meta { display: flex; gap: 12px; align-items: center; padding: 13px 22px 0; }.document-editor-meta input { min-width: 0; flex: 1; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-family: Georgia, serif; font-size: 23px; }.document-save-status { color: var(--muted); font-size: 9px; white-space: nowrap; }.document-editor { min-height: 470px; padding: 25px 42px 35px; outline: 0; color: var(--ink); background: #fff; font-family: Georgia, serif; font-size: 15px; line-height: 1.7; }.document-editor h1 { font-size: 30px; }.document-editor h2 { margin-top: 26px; font-size: 21px; }.document-editor blockquote { padding-left: 15px; border-left: 3px solid var(--gold); color: var(--muted); }.document-editor-footer { display: flex; justify-content: space-between; gap: 10px; padding: 10px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }.document-inspector-tabs { display: flex; gap: 3px; overflow-x: auto; margin-bottom: 18px; }.document-inspector-tabs button { padding: 7px 6px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; font-size: 9px; white-space: nowrap; }.document-inspector-tabs button.active { color: var(--moss-dark); background: var(--mint); font-weight: bold; }.document-type-large { width: 38px; height: 42px; margin-bottom: 13px; font-size: 10px; }.document-info h2 { margin-bottom: 4px; font-size: 19px; }.document-info-actions { display: flex; gap: 12px; margin: 15px 0; }.document-info label { display: block; color: var(--ink); font-size: 10px; font-weight: bold; }.document-info label input { display: block; width: 100%; margin-top: 5px; padding: 7px; border: 1px solid var(--line); border-radius: 6px; font-size: 10px; }.document-info h3 { margin: 20px 0 7px; font-family: inherit; font-size: 10px; font-weight: bold; }.document-template-list { display: grid; gap: 4px; }.document-template-list button { border: 1px solid var(--line); background: #f7faf8; text-align: left; }.document-comment { padding: 7px 0; border-top: 1px solid #edf1ef; }.document-comment strong { font-size: 9px; }.document-comment p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
@media (max-width: 1050px) { .documents-workspace { grid-template-columns: 210px minmax(0, 1fr); }.document-inspector { grid-column: 1 / -1; } }
@media (max-width: 720px) { .documents-module { padding: 14px; }.documents-header { display: block; }.documents-header-actions { flex-wrap: wrap; margin-top: 14px; }.document-kpis { grid-template-columns: 1fr 1fr; }.documents-workspace { display: block; }.document-library, .document-editor-panel, .document-inspector { margin-bottom: 14px; }.document-editor-meta { display: block; padding-right: 14px; padding-left: 14px; }.document-save-status { display: block; margin-top: 6px; }.document-editor { min-height: 360px; padding: 20px; }.document-editor-footer { display: block; }.document-editor-footer span { display: block; margin-top: 4px; } }
.crm-header { align-items: center; }.crm-header-actions { display: flex; gap: 12px; align-items: center; }.crm-kpi-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin-bottom: 16px; }.crm-kpi-grid button { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); text-align: left; }.crm-kpi-grid button:hover { border-color: var(--moss); background: var(--mint); }.crm-kpi-grid span, .crm-kpi-grid small { display: block; color: var(--muted); font-size: 9px; }.crm-kpi-grid strong { display: block; margin: 6px 0 3px; color: var(--moss-dark); font-family: Georgia, serif; font-size: 22px; font-weight: normal; }.crm-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; }.crm-main, .crm-detail { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }.crm-toolbar { display: flex; gap: 9px; align-items: center; margin-bottom: 14px; }.crm-view-tabs { display: flex; gap: 3px; }.crm-view-tabs button { padding: 8px 10px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 10px; }.crm-view-tabs button.active, .crm-view-tabs button:hover { color: var(--moss-dark); background: var(--mint); font-weight: bold; }.crm-search { width: min(260px, 35%); margin-left: auto; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; outline: 0; font-size: 10px; }.crm-toolbar select { padding: 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--moss-dark); background: #fbfdfb; font-size: 10px; }.crm-contact-list { display: grid; }.crm-list-heading { display: grid; grid-template-columns: 1fr 100px 55px; padding: 0 8px 8px; color: var(--muted); font-size: 9px; text-transform: uppercase; }.crm-contact-row { display: grid; grid-template-columns: 34px minmax(130px, 1fr) 80px 20px; gap: 9px; align-items: center; width: 100%; padding: 10px 8px; border: 0; border-top: 1px solid #edf1ef; color: var(--ink); background: transparent; text-align: left; }.crm-contact-row:hover, .crm-contact-row.active { background: #f3f9f5; }.crm-contact-row strong, .crm-contact-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.crm-contact-row strong { font-size: 11px; }.crm-contact-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }.crm-contact-row > b { color: var(--moss); }.crm-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--moss-dark); background: var(--mint); font-size: 10px; font-weight: bold; }.crm-contact-status { padding: 4px 5px; border-radius: 4px; color: var(--moss-dark); background: var(--mint); font-size: 8px; text-align: center; }.crm-contact-status.lead { color: #936b1d; background: #fff4d6; }.crm-pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }.crm-pipeline-column { min-width: 0; padding: 10px; border-radius: 8px; background: #f5f8f6; }.crm-pipeline-column h3 { display: flex; justify-content: space-between; font-family: inherit; font-size: 11px; font-weight: bold; }.crm-pipeline-column h3 span { color: var(--muted); }.crm-deal-card { display: grid; gap: 5px; width: 100%; margin-top: 7px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--surface); text-align: left; }.crm-deal-card:hover { border-color: var(--moss); }.crm-deal-card strong { font-size: 10px; }.crm-deal-card span, .crm-deal-card small { color: var(--muted); font-size: 9px; }.crm-deal-card b { color: var(--moss-dark); font-size: 12px; font-weight: normal; }.crm-activity { display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid #edf1ef; }.crm-activity > span { height: fit-content; padding: 4px 6px; border-radius: 4px; color: var(--moss-dark); background: var(--mint); font-size: 8px; }.crm-activity strong, .crm-activity small { display: block; }.crm-activity strong { font-size: 11px; }.crm-activity small { margin-top: 4px; color: var(--muted); font-size: 9px; }.crm-detail h2 { font-size: 21px; }.crm-detail-list { display: grid; gap: 10px; margin: 20px 0; }.crm-detail-list div { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid #edf1ef; }.crm-detail-list dt { color: var(--muted); font-size: 9px; }.crm-detail-list dd { max-width: 170px; margin: 0; overflow: hidden; color: var(--ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.crm-detail h3 { margin: 20px 0 7px; font-family: inherit; font-size: 10px; font-weight: bold; }.crm-timeline p { padding: 8px 0; border-top: 1px solid #edf1ef; color: var(--muted); font-size: 9px; }.crm-timeline b { display: inline-block; width: 60px; color: var(--moss-dark); }.crm-detail-actions { display: grid; gap: 8px; margin-top: 20px; }.crm-quick-add { display: grid; gap: 12px; max-width: 500px; margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }.crm-quick-add label { color: var(--ink); font-size: 10px; font-weight: bold; }.crm-quick-add input, .crm-quick-add select { display: block; width: 100%; margin-top: 5px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 10px; }.crm-quick-add > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.crm-quick-add[hidden] { display: none; }
@media (max-width: 1050px) { .crm-kpi-grid { grid-template-columns: repeat(3, 1fr); }.crm-workspace { grid-template-columns: 1fr; }.crm-detail { order: -1; }.crm-pipeline { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .crm-header-actions { margin-top: 15px; }.crm-kpi-grid { grid-template-columns: 1fr 1fr; }.crm-toolbar { display: block; }.crm-view-tabs { overflow-x: auto; }.crm-search { width: 100%; margin: 10px 0 7px; }.crm-toolbar select { width: 100%; }.crm-pipeline { grid-template-columns: 1fr; }.crm-list-heading, .crm-contact-row { min-width: 500px; }.crm-contact-list { overflow-x: auto; } }
.task-header { align-items: center; }.task-header-actions { display: flex; gap: 12px; align-items: center; }.task-kpi-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 9px; margin-bottom: 16px; }.task-kpi-grid button { min-width: 0; padding: 13px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); text-align: left; box-shadow: 0 4px 12px rgba(40,70,60,.03); }.task-kpi-grid button:hover { border-color: var(--moss); background: var(--mint); }.task-kpi-grid span, .task-kpi-grid small { display: block; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.task-kpi-grid strong { display: block; margin: 6px 0 3px; color: var(--moss-dark); font-family: Georgia, serif; font-size: 23px; font-weight: normal; }.task-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 16px; }.task-main, .task-detail { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }.task-toolbar { display: flex; gap: 9px; align-items: center; margin-bottom: 14px; }.task-view-tabs { display: flex; gap: 3px; }.task-view-tabs button { padding: 8px 10px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 10px; }.task-view-tabs button.active, .task-view-tabs button:hover { color: var(--moss-dark); background: var(--mint); font-weight: bold; }.task-search { width: min(250px, 30%); margin-left: auto; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; outline: 0; font-size: 10px; }.task-toolbar select { padding: 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--moss-dark); background: #fbfdfb; font-size: 10px; }.task-list-heading, .task-row { display: grid; grid-template-columns: 22px 9px minmax(130px, 1fr) 105px 105px 85px 55px; gap: 9px; align-items: center; }.task-list-heading { padding: 0 9px 8px; color: var(--muted); font-size: 9px; text-transform: uppercase; }.task-list-heading span:first-child { grid-column: 1 / 4; }.task-row { width: 100%; padding: 11px 9px; border: 0; border-top: 1px solid #edf1ef; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }.task-row:hover, .task-row.selected { background: #f4f9f6; }.task-row input { accent-color: var(--moss); }.task-row-main { min-width: 0; }.task-row-main strong, .task-row-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.task-row-main strong { font-size: 11px; }.task-row-main small, .task-assignee, .task-due, .task-progress { color: var(--muted); font-size: 9px; }.task-status { padding: 4px 5px; border-radius: 4px; color: var(--moss-dark); background: var(--mint); font-size: 8px; text-align: center; }.task-status.completed { color: #39734f; background: #e6f5e8; }.task-due.overdue { color: var(--coral); font-weight: bold; }.task-due.today { color: #a37218; font-weight: bold; }.task-priority { width: 7px; height: 7px; border-radius: 50%; background: #aab7b2; }.task-priority.critical, .task-priority.urgent { background: var(--coral); }.task-priority.high { background: var(--gold); }.task-kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }.task-column { min-width: 0; padding: 10px; border-radius: 8px; background: #f5f8f6; }.task-column h3 { display: flex; justify-content: space-between; color: var(--moss-dark); font-family: inherit; font-size: 11px; font-weight: bold; }.task-column h3 span { color: var(--muted); }.task-card { display: grid; grid-template-columns: 10px 1fr; gap: 6px; width: 100%; margin-top: 7px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); text-align: left; }.task-card strong, .task-card small { grid-column: 2; }.task-card strong { font-size: 10px; }.task-card small { color: var(--muted); font-size: 9px; }.task-calendar { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }.task-calendar-item { display: grid; gap: 5px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: #fbfdfb; color: var(--ink); text-align: left; }.task-calendar-item strong { color: var(--moss); font-size: 10px; }.task-calendar-item span { font-size: 11px; }.task-calendar-item small { color: var(--muted); font-size: 9px; }.task-detail h2 { margin-top: 4px; font-size: 21px; }.task-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 17px; }.task-detail-grid label, .task-quick-add label { color: var(--ink); font-size: 10px; font-weight: bold; }.task-detail-grid input, .task-detail-grid select, .task-quick-add input, .task-quick-add textarea, .task-quick-add select { display: block; width: 100%; margin-top: 5px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; outline: 0; font-size: 10px; }.task-detail-section { margin-top: 20px; padding-top: 13px; border-top: 1px solid var(--line); }.task-detail-section h3 { font-family: inherit; font-size: 11px; font-weight: bold; }.task-subtask { display: flex; gap: 7px; align-items: center; padding: 7px 0; color: var(--ink); font-size: 10px; }.task-subtask input { accent-color: var(--moss); }.task-timer { display: flex; justify-content: space-between; align-items: center; }.task-timer strong { color: var(--moss-dark); font-family: Georgia, serif; font-size: 20px; font-weight: normal; }.task-timer .primary-button { padding: 7px 9px; }.task-quick-add { display: grid; gap: 12px; max-width: 500px; margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }.task-quick-add > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.task-quick-add[hidden] { display: none; }
@media (max-width: 1050px) { .task-kpi-grid { grid-template-columns: repeat(4, 1fr); }.task-workspace { grid-template-columns: 1fr; }.task-detail { order: -1; }.task-kanban { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .task-header-actions { margin-top: 15px; }.task-kpi-grid { grid-template-columns: repeat(2, 1fr); }.task-toolbar { display: block; }.task-view-tabs { overflow-x: auto; }.task-search { width: 100%; margin: 10px 0 7px; }.task-toolbar select { width: 100%; }.task-list-table { overflow-x: auto; }.task-list-heading, .task-row { min-width: 680px; }.task-kanban { grid-template-columns: 1fr; }.task-detail-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Megga Phone Module Styling
   ========================================================================== */

.phone-module-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  color: var(--ink);
}

.phone-header-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px;
  background: linear-gradient(135deg, #16302b 0%, #0d1e1a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: #f5f8f6;
}

.phone-title-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone-brand-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  background: #1b493f;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  font-size: 26px;
  color: #52e3b6;
}

.phone-brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-brand-title h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
}

.phone-mode-pill {
  padding: 3px 8px;
  background: rgba(82, 227, 182, 0.15);
  border: 1px solid #52e3b6;
  border-radius: 12px;
  font-size: 11px;
  color: #52e3b6;
  font-weight: 600;
  text-transform: uppercase;
}

.phone-brand-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: #a3c4bc;
}

.phone-quick-wallet-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.phone-quick-wallet-badge .wallet-glyph {
  font-size: 20px;
  color: #52e3b6;
}

.wallet-badge-meta small {
  display: block;
  font-size: 11px;
  color: #9cb8b0;
}

.wallet-badge-meta strong {
  font-size: 15px;
  color: #ffffff;
}

/* Tabs Navigation */
.phone-tabs-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.phone-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.phone-tab-btn:hover {
  background: var(--mint);
  color: var(--moss-dark);
}

.phone-tab-btn.active {
  background: #1b493f;
  color: #ffffff;
  border-color: #52e3b6;
}

.phone-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

.phone-tab-btn.active .phone-tab-count {
  background: #52e3b6;
  color: #12352d;
}

/* Overview Layout */
.phone-overview-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}

.phone-overview-main,
.phone-overview-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* eSIM Hero Card */
.phone-esim-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background: linear-gradient(135deg, #1c3b35 0%, #0e241f 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: #f1f7f4;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.esim-card-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 50px;
  height: 38px;
  background: #d4af37;
  border-radius: 6px;
  padding: 4px;
  margin-bottom: 16px;
}

.chip-circuit {
  width: 100%;
  height: 100%;
  border: 1px solid #997819;
  border-radius: 4px;
}

.chip-label {
  position: absolute;
  top: 24px;
  left: 90px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #a3c4bc;
}

.esim-card-carrier {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.esim-card-carrier strong {
  font-size: 17px;
  letter-spacing: 0.5px;
}

.network-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 11px;
}

.signal-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.signal-bars i {
  display: block;
  width: 2.5px;
  background: #52e3b6;
  border-radius: 1px;
}

.signal-bars i:nth-child(1) { height: 3px; }
.signal-bars i:nth-child(2) { height: 6px; }
.signal-bars i:nth-child(3) { height: 9px; }
.signal-bars i:nth-child(4) { height: 12px; }

.esim-card-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.esim-card-details small {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  color: #a3c4bc;
  margin-bottom: 4px;
}

.esim-card-details strong {
  font-size: 17px;
  font-family: monospace;
}

.esim-card-details code {
  font-size: 13px;
  color: #e2f0eb;
}

.esim-copy-value {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
}

.esim-copy-value strong,
.esim-copy-value code {
  min-width: 0;
  overflow-wrap: anywhere;
}

.esim-copy-btn {
  flex: 0 0 auto;
  padding: 2px 4px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 4px;
  background: transparent;
  color: #d5eee5;
  cursor: pointer;
  font-size: 12px;
}

.esim-copy-btn:hover {
  background: rgba(255, 255, 255, .12);
}

.esim-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: #a3c4bc;
}

/* Balance Gauges */
.phone-gauges-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.phone-gauge-card {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.gauge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.gauge-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.gauge-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.gauge-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.gauge-bar-fill.data-fill { background: #3b82f6; }
.gauge-bar-fill.voice-fill { background: #10b981; }
.gauge-bar-fill.sms-fill { background: #8b5cf6; }

.gauge-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}

/* Overview Sidebar Panels */
.phone-panel-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.phone-panel-card h3 {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 700;
}

.phone-quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.phone-quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.phone-quick-action-btn:hover {
  background: var(--mint);
  border-color: var(--moss);
}

.phone-quick-action-btn .action-icon {
  font-size: 20px;
  margin-bottom: 6px;
  color: var(--moss);
}

.phone-quick-action-btn strong {
  font-size: 13px;
  color: var(--ink);
}

.phone-refresh-btn {
  padding: 5px 9px;
  font-size: 11px;
}

.phone-refresh-btn:disabled {
  opacity: .6;
  cursor: wait;
}

.phone-snapshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.phone-snapshot-grid div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.phone-snapshot-grid small {
  color: var(--muted);
  font-size: 11px;
}

.phone-snapshot-grid strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.phone-snapshot-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.phone-quick-action-btn small {
  font-size: 11px;
  color: var(--muted);
}

.phone-status-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.phone-status-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.phone-status-list li:last-child {
  border-bottom: none;
}

.status-indicator-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Marketplace Styling */
.marketplace-hero-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 20px;
}

.marketplace-hero-text h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.marketplace-hero-text p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.marketplace-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.filter-pills-group {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.filter-pill {
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--mint);
  border-color: var(--moss);
  color: var(--moss-dark);
}

.search-input-wrapper input {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  min-width: 260px;
  background: var(--surface);
}

.esim-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.esim-plan-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.esim-plan-card:hover {
  border-color: var(--moss);
  transform: translateY(-2px);
}

.plan-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.plan-flag {
  font-size: 28px;
}

.plan-card-header h4 {
  margin: 0;
  font-size: 15px;
}

.plan-region-name {
  font-size: 11px;
  color: var(--muted);
}

.plan-speed-badge {
  margin-left: auto;
  padding: 3px 8px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.plan-hero-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.stat-gigabytes {
  font-size: 24px;
  font-weight: 800;
  color: var(--moss-dark);
}

.stat-validity {
  font-size: 12px;
  color: var(--muted);
}

.plan-features-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 18px;
  flex-grow: 1;
}

.feature-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.feature-row span {
  color: var(--muted);
}

.plan-card-pricing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.price-lockup small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}

.price-lockup strong {
  font-size: 17px;
  color: var(--ink);
}

/* Contacts Styling */
.contacts-top-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.contacts-search-and-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.contacts-search-and-filters input {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  min-width: 250px;
  background: var(--surface);
}

.contacts-action-buttons {
  display: flex;
  gap: 10px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.phone-contact-card {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 700;
  color: var(--moss-dark);
}

.contact-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-name-row strong {
  font-size: 14px;
}

.favorite-star { color: #f59e0b; }
.emergency-badge { font-size: 13px; }

.contact-type-tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 8px;
  font-weight: 600;
  width: fit-content;
}

.tag-app-user {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.tag-external {
  background: rgba(107, 114, 128, 0.1);
  color: #4b5563;
}

.contact-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.contact-detail-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.contact-action-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--line);
  background: #f8faf9;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.contact-action-btn.call-btn {
  background: #10b981;
  color: #ffffff;
  border-color: #059669;
}

.contact-action-btn.sms-btn {
  background: var(--mint);
  color: var(--moss-dark);
  border-color: var(--moss);
}

.contact-action-btn.delete-btn {
  margin-left: auto;
  color: #ef4444;
}

/* Dialpad Styling */
.phone-dialpad-container {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.dialpad-unit {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.dialpad-display-screen {
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
}

.country-prefix-selector select {
  width: 100%;
  padding: 6px 8px;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  cursor: pointer;
  margin-bottom: 6px;
}

.dialpad-number-input-row {
  display: flex;
  align-items: center;
}

.dialpad-digits-input {
  flex-grow: 1;
  border: none;
  background: transparent;
  font-size: 22px;
  font-weight: 700;
  font-family: monospace;
  outline: none;
}

.dialpad-backspace-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
}

.dialpad-rate-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 10px;
  margin-bottom: 20px;
  min-height: 48px;
}

.rate-preview-placeholder {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  width: 100%;
}

.rate-preview-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rate-flag { font-size: 20px; }

.rate-meta strong {
  display: block;
  font-size: 12px;
}

.rate-meta span {
  font-size: 11px;
  color: #059669;
}

.duration-meta {
  text-align: right;
}

.duration-meta small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}

.duration-meta strong {
  font-size: 12px;
  color: var(--moss-dark);
}

.tactile-keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.keypad-key {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.1s ease;
}

.keypad-key:active {
  background: #e2ede8;
  transform: scale(0.96);
}

.key-digit {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}

.key-sub {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1px;
}

.dialpad-launch-row {
  display: flex;
  justify-content: center;
}

.dialpad-start-call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  transition: transform 0.2s ease;
}

.dialpad-start-call-btn:hover {
  transform: scale(1.05);
}

/* SMS Grid & Composer */
.phone-sms-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.phone-sms-composer-card,
.phone-sms-history-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.composer-subhead {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.composer-field-group {
  margin-bottom: 16px;
}

.composer-field-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}

.sms-recipient-row {
  display: flex;
  gap: 8px;
}

.sms-recipient-row input {
  flex-grow: 1;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  background: var(--surface);
}

.sms-recipient-row select {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  background: #f8faf9;
  max-width: 160px;
}

.composer-field-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  background: var(--surface);
  box-sizing: border-box;
}

.sms-segment-stats-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 20px;
}

.stat-indicator small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 2px;
}

.stat-indicator strong {
  font-size: 13px;
}

.text-warning { color: #f59e0b; }
.text-success { color: #10b981; }
.text-primary { color: #3b82f6; }
.text-danger { color: #ef4444; }

.composer-actions-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sms-template-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: -4px 0 16px;
  color: var(--muted);
  font-size: 11px;
}

.phone-template-chip {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
  color: var(--moss-dark);
  cursor: pointer;
  font-size: 11px;
}

.phone-template-chip:hover {
  border-color: var(--moss);
  background: var(--mint);
}

.scheduled-sms-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.scheduled-sms-list h4 {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.scheduled-sms-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(59, 130, 246, .06);
  border: 1px solid rgba(59, 130, 246, .16);
  border-radius: 8px;
}

.scheduled-sms-item strong,
.scheduled-sms-item time {
  font-size: 11px;
}

.scheduled-sms-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.scheduled-sms-item time {
  flex: 0 0 auto;
  color: var(--moss-dark);
  text-align: right;
}

.sms-history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
}

.sms-log-item {
  padding: 12px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.log-item-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 4px;
}

.status-pill.delivered {
  padding: 2px 6px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.log-item-body {
  margin: 0 0 6px;
  font-size: 13px;
}

.log-item-footer {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}

/* Telecom Admin Subview */
.admin-status-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.strip-item {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.strip-item small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}

.strip-item strong {
  font-size: 18px;
  color: var(--ink);
}

.admin-ledger-table-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.phone-admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 12px;
}

.phone-admin-table th,
.phone-admin-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.phone-admin-table th {
  color: var(--muted);
  font-weight: 600;
  background: #f8faf9;
}

.ledger-tag {
  padding: 3px 8px;
  background: #f0f4f2;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

/* Modals */
.phone-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.phone-modal-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.phone-modal-box.activation-modal {
  max-width: 650px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

.modal-header h3 {
  margin: 0;
  font-size: 16px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  color: var(--muted);
  cursor: pointer;
}

.modal-body {
  padding: 24px;
}

.modal-input-group {
  margin-bottom: 16px;
}

.modal-input-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}

.modal-input-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  background: var(--surface);
  box-sizing: border-box;
}

.modal-checkboxes-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  cursor: pointer;
}

.modal-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.activation-qr-container {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
}

.qr-code-graphic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.qr-caption {
  font-size: 10px;
  text-align: center;
  color: #4b5563;
}

.activation-details-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activation-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}

.copy-input-row {
  display: flex;
  gap: 6px;
}

.copy-input-row input {
  flex-grow: 1;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  font-family: monospace;
}

.activation-instructions {
  margin-top: 8px;
  padding: 10px;
  background: #f8faf9;
  border-radius: 8px;
  font-size: 11px;
}

.activation-instructions ol {
  margin: 6px 0 0 16px;
  padding: 0;
}

.activation-instructions li {
  margin-bottom: 4px;
}

.compatibility-result-box {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 10px;
  margin-top: 16px;
}

.compatibility-result-box.compatible {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid #10b981;
}

.compatibility-result-box.incompatible {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
}

.result-icon {
  font-size: 20px;
  font-weight: 700;
}

.compatible .result-icon { color: #10b981; }
.incompatible .result-icon { color: #ef4444; }

/* Active In-Call Overlay */
.phone-active-call-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 35, 31, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  color: #ffffff;
}

.active-call-dialog {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 400px;
  padding: 40px 20px;
}

.pulsing-call-avatar {
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #10b981;
  font-size: 36px;
  margin-bottom: 24px;
  animation: pulseCall 2s infinite;
}

@keyframes pulseCall {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 25px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.active-call-meta h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.active-call-number {
  font-size: 14px;
  color: #a3c4bc;
  font-family: monospace;
}

.active-call-timer {
  font-size: 32px;
  font-weight: 700;
  font-family: monospace;
  margin: 20px 0 6px;
}

.active-call-status {
  font-size: 12px;
  color: #52e3b6;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.call-quality-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 8px;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.call-quality-pill.quality-hd {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.call-quality-pill.quality-good {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.call-quality-pill.quality-poor {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.active-call-controls {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.call-control-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  justify-content: center;
}

.call-control-btn.active {
  background: #ffffff;
  color: #10231f;
}

.call-control-btn.end-call-btn {
  background: #ef4444;
  border-color: #dc2626;
  color: #ffffff;
}

.call-control-btn.screen-active {
  background: #3b82f6 !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

/* In-Call Chat Drawer */
.incall-chat-drawer {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 340px;
  height: 480px;
  max-height: calc(100vh - 48px);
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  z-index: 2010;
  text-align: left;
}

.incall-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.incall-chat-header h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
}

.incall-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.incall-chat-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #94a3b8;
  font-size: 12px;
  text-align: center;
  padding: 20px;
}

.incall-msg {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}

.incall-msg.self {
  align-self: flex-end;
  background: #10b981;
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

.incall-msg.peer,
.incall-msg.remote {
  align-self: flex-start;
  background: #334155;
  color: #f1f5f9;
  border-bottom-left-radius: 2px;
}

.incall-msg-sender {
  display: block;
  font-size: 10px;
  font-weight: 700;
  opacity: 0.8;
  margin-bottom: 2px;
}

.incall-msg-text {
  margin: 0;
}

.incall-msg-time {
  display: block;
  font-size: 9px;
  opacity: 0.7;
  text-align: right;
  margin-top: 4px;
}

.incall-chat-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.incall-chat-input {
  flex: 1;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 12px;
  outline: none;
}

.incall-chat-input:focus {
  border-color: #10b981;
}

.incall-chat-send-btn {
  padding: 8px 14px;
  border-radius: 8px;
  background: #10b981;
  border: none;
  color: #ffffff;
  cursor: pointer;
  font-weight: bold;
}

/* Voicemail Audio Player Styles */
.vm-audio-player-wrapper {
  margin: 10px 0;
  padding: 8px;
  background: #f1f5f9;
  border-radius: 10px;
  display: flex;
  align-items: center;
}

.vm-native-audio-player {
  width: 100%;
  height: 36px;
  outline: none;
}

.recording-pulse-disc {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #ef4444;
  margin: 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 32px;
  animation: pulseRecording 1.5s infinite;
}

@keyframes pulseRecording {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { box-shadow: 0 0 0 20px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.voicemail-recording-clock {
  font-size: 24px;
  font-weight: 700;
  font-family: monospace;
  text-align: center;
  margin: 12px 0;
  color: #ef4444;
}

/* Store Seller Escrow & Payout Styles */
.seller-earnings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.seller-earnings-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  text-align: left;
}

.seller-earnings-card small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.seller-earnings-card strong {
  font-size: 20px;
  color: var(--ink);
}

.seller-earnings-card.highlight {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.05);
}

.seller-earnings-card.highlight strong {
  color: #10b981;
}

.escrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.escrow-badge.escrow-held {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.escrow-badge.escrow-released {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Button Helpers */
.phone-btn-primary {
  padding: 9px 18px;
  background: #10b981;
  border: 1px solid #059669;
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.phone-btn-primary:hover {
  background: #059669;
}

.phone-btn-outline {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.phone-btn-outline:hover {
  background: var(--mint);
  border-color: var(--moss);
}

.phone-btn-subtle {
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: inherit;
  font-size: 11px;
  cursor: pointer;
}

.phone-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  width: 100%;
  grid-column: 1 / -1;
}

.phone-empty-state .empty-icon {
  font-size: 36px;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* Responsive Breakpoints */
@media (max-width: 950px) {
  .phone-overview-grid,
  .phone-sms-grid {
    grid-template-columns: 1fr;
  }

  .phone-gauges-row,
  .admin-status-strip {
    grid-template-columns: 1fr;
  }

  .activation-qr-container {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

/* ====================================================
   MEGGA PHONE ADVANCED MODULE STYLING
   ==================================================== */

/* Direct Chat Layout */
.phone-chat-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 600px;
  overflow: hidden;
}

@media (max-width: 820px) {
  .phone-chat-layout {
    grid-template-columns: 1fr;
  }
}

.phone-chat-sidebar {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.02);
}

.chat-sidebar-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-sidebar-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.chat-threads-count {
  background: var(--mint);
  color: var(--moss);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.chat-threads-list {
  overflow-y: auto;
  flex: 1;
}

.chat-thread-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.15s ease;
}

.chat-thread-item:hover {
  background: var(--mint);
}

.chat-thread-item.active {
  background: rgba(14, 116, 144, 0.08);
  border-left: 3px solid var(--moss);
}

.thread-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0e7490, #059669);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.thread-info {
  flex: 1;
  min-width: 0;
}

.thread-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.thread-name {
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-time {
  font-size: 11px;
  color: var(--muted);
}

.thread-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preview-text {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2563eb;
}

/* Chat Main View */
.phone-chat-main {
  display: flex;
  flex-direction: column;
  height: 600px;
}

.chat-active-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
}

.chat-contact-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar-small {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0e7490;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.contact-status-sub {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.chat-header-actions {
  display: flex;
  gap: 8px;
}

.chat-action-btn {
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chat-action-btn:hover {
  background: var(--moss);
  color: #ffffff;
}

.chat-messages-container {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(0, 0, 0, 0.015);
}

.chat-message-row {
  display: flex;
  flex-direction: column;
  max-width: 72%;
  position: relative;
}

.chat-message-row.outbound {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-message-row.inbound {
  align-self: flex-start;
  align-items: flex-start;
}

.chat-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  position: relative;
  word-break: break-word;
}

.chat-message-row.outbound .chat-bubble {
  background: #0e7490;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chat-message-row.inbound .chat-bubble {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}

.chat-text {
  margin: 0 0 6px 0;
  font-size: 13.5px;
  line-height: 1.45;
}

.chat-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 10px;
  opacity: 0.8;
}

.read-receipt.read {
  color: #67e8f9;
  font-weight: 700;
}

.voice-memo-bubble {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
}

.voice-play-btn {
  background: rgba(255, 255, 255, 0.25);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-waveform-graphic {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 22px;
}

.voice-waveform-graphic .bar {
  width: 3px;
  background: currentColor;
  border-radius: 2px;
  opacity: 0.7;
}

.voice-waveform-graphic .b1 { height: 10px; }
.voice-waveform-graphic .b2 { height: 18px; }
.voice-waveform-graphic .b3 { height: 8px; }
.voice-waveform-graphic .b4 { height: 20px; }
.voice-waveform-graphic .b5 { height: 14px; }
.voice-waveform-graphic .b6 { height: 10px; }

.voice-duration {
  font-size: 11px;
  font-weight: 600;
}

.quick-reaction-bar {
  display: none;
  gap: 4px;
  margin-top: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.chat-message-row:hover .quick-reaction-bar {
  display: flex;
}

.quick-reaction-bar button {
  background: none;
  border: none;
  font-size: 13px;
  cursor: pointer;
  padding: 2px;
  transition: transform 0.1s ease;
}

.quick-reaction-bar button:hover {
  transform: scale(1.25);
}

.message-reactions-badge {
  position: absolute;
  bottom: -10px;
  right: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1px 6px;
  font-size: 11px;
  display: flex;
  gap: 2px;
}

/* Chat Composer */
.chat-composer-bar {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
}

.chat-text-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--mint);
  font-size: 13px;
  outline: none;
}

.chat-text-input:focus {
  border-color: var(--moss);
}

.chat-mic-btn,
.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.chat-mic-btn {
  background: var(--mint);
  color: var(--moss);
}

.chat-send-btn {
  background: #0e7490;
  color: #ffffff;
}

.voice-recording-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.recording-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dc2626;
  animation: pulse-recording 1.2s infinite;
}

@keyframes pulse-recording {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.4; }
  100% { transform: scale(0.9); opacity: 1; }
}

.recording-time {
  font-size: 13px;
  font-weight: 600;
  color: #dc2626;
  flex: 1;
}

/* Smart Caller ID & Spam Shield */
.dialpad-caller-id-badge {
  margin: 12px 0;
  text-align: center;
}

.shield-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.shield-badge.standard {
  background: var(--mint);
  color: var(--moss);
}

.shield-badge.verified_business {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.shield-badge.suspected_spam {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  box-shadow: 0 1px 3px rgba(185, 28, 28, 0.15);
}

/* HD Video Dialpad Button */
.dialpad-start-video-btn {
  flex: 1;
  background: #0e7490;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s ease;
}

.dialpad-start-video-btn:hover {
  background: #0891b2;
}

/* HD Video Overlay PiP */
.video-call-viewport {
  width: 100%;
  height: 240px;
  background: #09131a;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.remote-video-frame {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-placeholder-avatar {
  text-align: center;
  color: #94a3b8;
}

.video-placeholder-avatar span {
  display: inline-block;
  width: 70px;
  height: 70px;
  line-height: 70px;
  border-radius: 50%;
  background: #1e293b;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.local-pip-frame {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 85px;
  height: 110px;
  border-radius: 10px;
  border: 2px solid #38bdf8;
  background: #020617;
  overflow: hidden;
}

.pip-video-feed {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pip-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  font-size: 9px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 1px 4px;
  border-radius: 4px;
}

/* Visual Voicemail Inbox */
.phone-voicemail-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.voicemail-header-card {
  padding: 18px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.voicemail-header-card h3 {
  margin: 0 0 4px 0;
  font-size: 18px;
}

.voicemail-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.voicemail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  transition: all 0.15s ease;
}

.voicemail-card.unread {
  border-left: 4px solid #0e7490;
  background: rgba(14, 116, 144, 0.02);
}

.vm-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.vm-caller-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vm-icon {
  font-size: 20px;
}

.vm-phone {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.vm-meta-right {
  text-align: right;
  font-size: 12px;
  color: var(--muted);
}

.vm-duration {
  font-weight: 700;
  color: var(--ink);
  display: block;
}

.vm-transcription-box {
  background: var(--mint);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
}

.transcription-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--moss);
  display: block;
  margin-bottom: 4px;
}

.transcription-text {
  margin: 0;
  font-size: 13px;
  font-style: italic;
  color: var(--ink);
}

.vm-actions-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.phone-btn-danger-subtle {
  padding: 6px 12px;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  color: #b91c1c;
  font-size: 11.5px;
  cursor: pointer;
  font-weight: 600;
}

/* Virtual Numbers & Topup Package Cards */
.topup-packages-grid,
.virtual-numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.topup-package-card,
.virtual-number-card {
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.topup-validity,
.vn-country {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.topup-pack-action,
.vn-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}

.topup-price,
.vn-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--moss);
}

.vn-cap-tag {
  background: rgba(0, 0, 0, 0.06);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 4px;
}

/* ====================================================
   MEGGA PHONE WEBRTC CALL & INCOMING OVERLAY STYLING
   ==================================================== */
.phone-active-call-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease-out;
}

.active-call-dialog {
  background: #1e293b;
  color: #f8fafc;
  border-radius: 24px;
  width: 100%;
  max-width: 580px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.video-mode .active-call-dialog {
  max-width: 780px;
  padding: 24px;
}

.video-call-viewport {
  position: relative;
  width: 100%;
  height: 380px;
  background: #0f172a;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.remote-video-frame {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remote-video-feed {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.local-pip-frame {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 140px;
  height: 105px;
  background: #1e293b;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.3);
  z-index: 10;
}

.pip-video-feed {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.pip-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.video-placeholder-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.video-placeholder-avatar span {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #047857);
  color: white;
  font-size: 36px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.pulsing-call-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  animation: pulseRipple 2s infinite ease-out;
}

.pulsing-call-avatar.incoming-ring {
  background: rgba(59, 130, 246, 0.2);
  animation: ringShake 1.2s infinite ease-in-out;
}

.call-avatar-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.incoming-ring .call-avatar-icon {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

@keyframes pulseRipple {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 25px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes ringShake {
  0%, 100% { transform: rotate(0deg); }
  20%, 60% { transform: rotate(-8deg); }
  40%, 80% { transform: rotate(8deg); }
}

.active-call-meta h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}

.active-call-number {
  font-size: 15px;
  color: #94a3b8;
  font-family: monospace;
}

.active-call-timer {
  font-size: 28px;
  font-weight: 700;
  color: #34d399;
  font-family: monospace;
  margin: 14px 0 8px;
}

.active-call-status {
  display: inline-block;
  font-size: 12px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.active-call-controls {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.call-control-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.call-control-btn .ctrl-icon {
  font-size: 20px;
  line-height: 1;
}

.call-control-btn small {
  font-size: 9px;
  margin-top: 3px;
  opacity: 0.8;
}

.call-control-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.call-control-btn.active {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #0f172a;
}

.call-control-btn.end-call-btn,
.call-control-btn.decline-btn {
  background: #ef4444;
  border-color: #ef4444;
}

.call-control-btn.end-call-btn:hover,
.call-control-btn.decline-btn:hover {
  background: #dc2626;
}

.call-control-btn.answer-btn {
  background: #10b981;
  border-color: #10b981;
}

.call-control-btn.answer-btn:hover {
  background: #059669;
}

/* ====================================================
   MEGGA WALLET FILTERING & PRINTABLE RECEIPT STYLING
   ==================================================== */
.wallet-filters-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.wallet-category-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.wallet-filter-tab {
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.wallet-filter-tab:hover {
  background: var(--mint);
  border-color: var(--moss);
}

.wallet-filter-tab.active {
  background: var(--moss);
  color: white;
  border-color: var(--moss);
}

.wallet-search-box {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 10px;
  min-width: 220px;
}

.wallet-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  width: 100%;
  color: var(--ink);
}

/* Printable Receipt Dialog */
.wallet-receipt-dialog {
  border: none;
  border-radius: 16px;
  padding: 0;
  background: transparent;
  max-width: 520px;
  width: 90vw;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.wallet-receipt-dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.receipt-card {
  background: #ffffff;
  color: #1e293b;
  border-radius: 16px;
  padding: 32px 28px;
  border: 1px solid #e2e8f0;
  position: relative;
}

.receipt-header {
  text-align: center;
  border-bottom: 2px dashed #cbd5e1;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.receipt-brand-logo {
  font-size: 28px;
  margin-bottom: 4px;
}

.receipt-header h3 {
  margin: 0;
  font-size: 20px;
  color: #0f172a;
}

.receipt-header p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #64748b;
}

.receipt-amount-banner {
  text-align: center;
  background: #f8fafc;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.receipt-amount-banner small {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.5px;
}

.receipt-amount-banner strong {
  font-size: 26px;
  color: #059669;
}

.receipt-data-table {
  width: 100%;
  margin-bottom: 24px;
  font-size: 13px;
}

.receipt-data-table tr {
  border-bottom: 1px solid #f1f5f9;
}

.receipt-data-table td {
  padding: 10px 4px;
}

.receipt-data-table td:first-child {
  color: #64748b;
  font-weight: 500;
}

.receipt-data-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: #0f172a;
}

.receipt-footer-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

@media print {
  body * {
    visibility: hidden;
  }
  .wallet-receipt-dialog,
  .wallet-receipt-dialog * {
    visibility: visible;
  }
  .wallet-receipt-dialog {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }
  .receipt-footer-actions {
    display: none !important;
  }
}
/* Keep phone controls usable at narrow viewport widths. */
.phone-service-status, .phone-error { margin: 12px 0; overflow-wrap: anywhere; }
.phone-error { color: #b42318; }
.phone-module-container { min-width: 0; }
@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; height: auto; gap: 8px; }
  .topbar-actions { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
  .breadcrumbs { min-width: 0; flex: 1; flex-wrap: wrap; }
  .phone-title-lockup { min-width: 0; }
  .phone-brand-title { flex-wrap: wrap; }
  .phone-brand-subtitle { overflow-wrap: anywhere; }
  .phone-header-banner { padding: 16px; }
  .phone-overview-main, .phone-overview-sidebar, .phone-chat-main { min-width: 0; }
  .phone-module-container table { display: block; overflow-x: auto; max-width: 100%; }
}

/* E-Book reading room */
.ebook-module,
.ebook-reader-shell {
  --ebook-ink: #19352f;
  --ebook-muted: #64756f;
  --ebook-line: #d8e2dd;
  color: var(--ebook-ink);
}

.ebook-module-header,
.ebook-library-summary,
.ebook-section-head,
.ebook-reader-toolbar,
.ebook-reading-meta,
.ebook-page-controls,
.ebook-detail-actions,
.ebook-module-tabs,
.ebook-hero-actions,
.ebook-card-actions {
  display: flex;
  align-items: center;
}

.ebook-module-header,
.ebook-library-summary,
.ebook-section-head,
.ebook-reader-toolbar,
.ebook-reading-meta {
  justify-content: space-between;
  gap: 16px;
}

.ebook-module-header { margin-bottom: 24px; }
.ebook-module-header h1, .ebook-hero h2, .ebook-library-summary h2, .ebook-detail-view h2 { margin: 0; color: var(--ebook-ink); }
.ebook-module-header p:not(.eyebrow), .ebook-hero p, .ebook-library-summary p { max-width: 680px; margin: 8px 0 0; color: var(--ebook-muted); }
.ebook-module-tabs { gap: 6px; flex-wrap: wrap; }
.ebook-module-tabs button { border: 0; border-bottom: 2px solid transparent; padding: 9px 10px; background: transparent; color: var(--ebook-muted); cursor: pointer; font-weight: 700; }
.ebook-module-tabs button.active { border-color: #c96b4b; color: var(--ebook-ink); }
.ebook-module-tabs b { display: inline-flex; min-width: 18px; justify-content: center; margin-left: 4px; padding: 2px 5px; border-radius: 10px; background: #e8f1ec; font-size: 10px; }
.ebook-hero { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 24px; padding: 28px; border-radius: 16px; background: linear-gradient(120deg, #193f36, #356e5d 55%, #d38a63); color: #fff; overflow: hidden; }
.ebook-hero h2 { max-width: 580px; color: #fff; font-size: clamp(28px, 4vw, 52px); line-height: 1.03; }
.ebook-hero p { color: rgba(255,255,255,.82); }
.ebook-hero .eyebrow { color: #bde8d5; }
.ebook-hero-actions { gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.ebook-hero-stat { display: grid; align-content: center; min-width: 150px; padding: 18px; border-left: 1px solid rgba(255,255,255,.25); }
.ebook-hero-stat strong { font-size: 48px; line-height: 1; }
.ebook-hero-stat span { margin-top: 6px; font-weight: 700; }
.ebook-hero-stat small { margin-top: 8px; color: rgba(255,255,255,.72); }
.ebook-primary, .ebook-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 8px 14px; border-radius: 7px; cursor: pointer; font-weight: 700; }
.ebook-primary { border: 1px solid #d87953; background: #d87953; color: #fff; }
.ebook-primary:hover { background: #b95839; }
.ebook-secondary { border: 1px solid var(--ebook-line); background: #fff; color: var(--ebook-ink); }
.ebook-secondary:hover { border-color: #a9c1b5; background: #f2f8f4; }
.ebook-hero .ebook-secondary { border-color: rgba(255,255,255,.35); background: transparent; color: #fff; }
.ebook-search-bar { display: grid; grid-template-columns: minmax(0, 1fr) 180px 160px; gap: 10px; margin-bottom: 30px; }
.ebook-search-bar label { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--ebook-line); border-radius: 8px; background: var(--surface); }
.ebook-search-bar input, .ebook-search-bar select { min-width: 0; width: 100%; padding: 11px 12px; border: 1px solid var(--ebook-line); border-radius: 8px; background: var(--surface); color: var(--ebook-ink); }
.ebook-search-bar label input { padding-left: 0; border: 0; outline: 0; }
.ebook-section { margin: 0 0 34px; }
.ebook-section-head { margin-bottom: 12px; }
.ebook-section-head h2 { margin: 0; font-size: 22px; }
.ebook-card-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.ebook-card { min-width: 0; overflow: hidden; border: 1px solid var(--ebook-line); border-radius: 10px; background: var(--surface); }
.ebook-cover, .ebook-detail-cover { position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: .69; width: 100%; padding: 15px; border: 0; color: #fff; text-align: left; cursor: pointer; overflow: hidden; }
.ebook-cover img, .ebook-detail-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .78; mix-blend-mode: multiply; }
.ebook-cover::after, .ebook-detail-cover::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 25, 21, .12), rgba(10, 25, 21, .7)); content: ''; }
.ebook-cover span, .ebook-cover small, .ebook-detail-cover span, .ebook-detail-cover small { position: relative; z-index: 1; }
.ebook-cover span, .ebook-detail-cover span { font: 700 42px Georgia, serif; }
.ebook-cover small, .ebook-detail-cover small { align-self: flex-end; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.cover-teal { background: linear-gradient(145deg, #19584e, #79b59d); }.cover-coral { background: linear-gradient(145deg, #853b35, #e39b76); }.cover-indigo { background: linear-gradient(145deg, #2e376c, #8292c9); }.cover-gold { background: linear-gradient(145deg, #8e6427, #d9b36a); }.cover-lilac { background: linear-gradient(145deg, #66517b, #cf9dcc); }.cover-orange { background: linear-gradient(145deg, #9b4a27, #edb04f); }.cover-blue { background: linear-gradient(145deg, #1f526e, #79c1d3); }.cover-rose { background: linear-gradient(145deg, #8e4457, #e6a6ab); }.cover-green { background: linear-gradient(145deg, #305c42, #91b46d); }.cover-plum { background: linear-gradient(145deg, #4a294b, #b36b9b); }.cover-sage { background: linear-gradient(145deg, #536d61, #b3c79e); }.cover-black { background: linear-gradient(145deg, #151e25, #667681); }.cover-sand { background: linear-gradient(145deg, #947048, #dec28d); }.cover-ochre { background: linear-gradient(145deg, #76501f, #c9a24e); }.cover-mint { background: linear-gradient(145deg, #2c695f, #97d5bd); }
.ebook-card-body { padding: 12px; }.ebook-card-body h3 { margin: 4px 0; font-size: 15px; line-height: 1.2; }.ebook-card-kicker, .ebook-author, .ebook-card-body > small { color: var(--ebook-muted); font-size: 10px; }.ebook-author { margin: 0; }.ebook-rating { margin-top: 7px; color: #b06a27; font-size: 12px; font-weight: 700; }.ebook-rating span { color: var(--ebook-muted); font-weight: 400; }.ebook-rating.large { font-size: 15px; }.ebook-blurb { display: -webkit-box; min-height: 42px; margin: 8px 0; overflow: hidden; color: var(--ebook-muted); font-size: 11px; line-height: 1.35; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }.ebook-progress { height: 5px; margin-top: 9px; overflow: hidden; border-radius: 5px; background: #e5ece8; }.ebook-progress span { display: block; height: 100%; background: #d87953; }.ebook-card-actions { justify-content: space-between; gap: 4px; margin-top: 8px; }.ebook-card-actions .text-button { padding: 0; font-size: 11px; }.ebook-save-button { border: 0; background: transparent; color: #a45a43; cursor: pointer; font-size: 20px; }.ebook-empty { padding: 20px 0; color: var(--ebook-muted); }.ebook-library-summary { margin-bottom: 24px; }.ebook-library-summary > .ebook-secondary { flex: 0 0 auto; }
.ebook-reader-shell { min-height: 70vh; background: #fbfaf5; }.ebook-reader-shell.sepia { --reader-bg: #f2e4c9; background: #f2e4c9; }.ebook-reader-shell.night { --reader-bg: #17231f; --ebook-ink: #e7f1eb; --ebook-muted: #a8b9b1; --ebook-line: #3b5249; background: #17231f; color: #e7f1eb; }.ebook-reader-toolbar { padding: 12px 16px; border-bottom: 1px solid var(--ebook-line); background: rgba(255,255,255,.72); }.night .ebook-reader-toolbar { background: rgba(10,18,15,.72); }.ebook-reader-toolbar > div:nth-child(2) { display: grid; gap: 3px; min-width: 0; text-align: center; }.ebook-reader-toolbar small { color: var(--ebook-muted); }.ebook-reader-tools { display: flex; gap: 5px; }.ebook-reader-tools button { min-width: 34px; height: 34px; border: 1px solid var(--ebook-line); border-radius: 6px; background: transparent; color: inherit; cursor: pointer; }.ebook-reader-tools button.active { background: #d87953; color: #fff; }.ebook-reader-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); justify-content: center; gap: 36px; padding: 30px 20px; }.ebook-reader-sidebar { display: grid; align-content: start; gap: 14px; }.ebook-reader-sidebar label { display: grid; gap: 5px; color: var(--ebook-muted); font-size: 12px; }.ebook-reader-sidebar input, .ebook-reader-sidebar select { width: 100%; }.ebook-reader-progress { display: grid; gap: 3px; padding: 14px; border: 1px solid var(--ebook-line); border-radius: 8px; }.ebook-reader-progress span { color: var(--ebook-muted); font-size: 11px; }.ebook-reader-progress div { height: 5px; margin-top: 6px; border-radius: 5px; background: #dbe5df; }.ebook-reader-progress i { display: block; height: 100%; border-radius: inherit; background: #d87953; }.ebook-reading-column { min-width: 0; }.ebook-reading-meta { padding-bottom: 12px; color: var(--ebook-muted); font-size: 11px; }.ebook-text { max-width: 650px; margin: auto; font-family: Georgia, serif; font-size: var(--reader-size); line-height: var(--reader-leading); }.ebook-text p { margin: 0 0 1.4em; }.ebook-page-controls { justify-content: space-between; margin-top: 26px; }.ebook-annotation-box { margin-top: 28px; padding: 14px; border: 1px solid var(--ebook-line); border-radius: 8px; color: var(--ebook-muted); }.ebook-annotation-box p { margin-bottom: 0; }.ebook-detail-view > .ebook-secondary { margin-bottom: 24px; }.ebook-detail-grid { display: grid; grid-template-columns: 250px minmax(0, 620px); justify-content: center; gap: 32px; }.ebook-detail-cover { border-radius: 12px; }.ebook-detail-grid > div:last-child { align-self: center; }.ebook-detail-author { color: var(--ebook-muted); font-size: 16px; }.ebook-detail-grid > div:last-child > p:not(.eyebrow):not(.ebook-detail-author):not(.ebook-detail-note) { color: var(--ebook-muted); line-height: 1.6; }.ebook-tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0; }.ebook-tag-list span { padding: 5px 8px; border-radius: 14px; background: #e9f2ed; color: #376052; font-size: 11px; }.ebook-detail-actions { flex-wrap: wrap; gap: 8px; }.ebook-detail-note { margin-top: 16px; color: var(--ebook-muted); font-size: 12px; }.ebook-preview-panel { margin-top: 34px; padding: 20px; border-top: 1px solid var(--ebook-line); }.ebook-preview-panel h3 { margin-top: 0; }.ebook-preview-panel blockquote { margin: 14px 0; padding-left: 15px; border-left: 3px solid #d87953; color: var(--ebook-muted); font: italic 18px Georgia, serif; line-height: 1.5; }
@media (max-width: 1050px) { .ebook-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .ebook-module-header, .ebook-library-summary, .ebook-hero, .ebook-reader-toolbar { align-items: flex-start; flex-direction: column; }.ebook-hero-stat { width: 100%; min-width: 0; padding: 14px 0 0; border-top: 1px solid rgba(255,255,255,.25); border-left: 0; }.ebook-search-bar { grid-template-columns: 1fr; }.ebook-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }.ebook-layout, .ebook-reader-layout { grid-template-columns: 1fr; }.ebook-reader-sidebar { grid-template-columns: repeat(2, 1fr); }.ebook-reader-sidebar .eyebrow, .ebook-reader-sidebar .ebook-reader-progress, .ebook-reader-sidebar .ebook-secondary { grid-column: 1 / -1; }.ebook-reader-toolbar > div:nth-child(2) { order: -1; width: 100%; text-align: left; }.ebook-detail-grid { grid-template-columns: 1fr; }.ebook-detail-cover { max-width: 220px; }.ebook-snapshot { grid-template-columns: 1fr; } }
.ebook-reader-sidebar input, .ebook-reader-sidebar select { box-sizing: border-box; padding: 6px 7px; border: 1px solid var(--ebook-line); border-radius: 6px; background: transparent; color: inherit; }
.ebook-text mark { padding: 0 2px; background: #f5d477; color: inherit; }
.ebook-annotation-box blockquote { margin: 10px 0 0; padding-left: 10px; border-left: 3px solid #d87953; font-family: Georgia, serif; font-style: italic; }
.ebook-stats-view > .ebook-secondary { margin-bottom: 20px; }
.ebook-stats-hero { display: flex; justify-content: space-between; gap: 20px; padding: 28px; border-radius: 14px; background: #193f36; color: #fff; }
.ebook-stats-hero h2 { margin: 0; color: #fff; font-size: clamp(26px, 4vw, 44px); }
.ebook-stats-hero p:not(.eyebrow) { max-width: 620px; color: rgba(255,255,255,.78); }
.ebook-stats-hero > strong { display: grid; align-content: center; min-width: 100px; font-size: 44px; text-align: center; }
.ebook-stats-hero > strong small { display: block; color: #bde8d5; font-size: 11px; }
.ebook-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.ebook-stat-grid article { display: grid; gap: 4px; padding: 18px; border: 1px solid var(--ebook-line); border-radius: 10px; background: var(--surface); }
.ebook-stat-grid strong { font-size: 26px; color: #c46748; }
.ebook-stat-grid span { color: var(--ebook-muted); font-size: 12px; }
.ebook-goal-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; border: 1px solid var(--ebook-line); border-radius: 10px; background: #f8f4e8; }
.ebook-goal-panel h3 { margin: 0; }.ebook-goal-panel p { margin-bottom: 0; }
.ebook-goal-ring { display: grid; place-items: center; width: 78px; height: 78px; flex: 0 0 auto; border-radius: 50%; background: conic-gradient(#d87953 var(--goal), #e3e8df 0); }
.ebook-goal-ring::before { position: absolute; width: 60px; height: 60px; border-radius: 50%; background: #f8f4e8; content: ''; }.ebook-goal-ring span { position: relative; z-index: 1; font-size: 12px; font-weight: 700; }
.ebook-badges { margin-top: 28px; }.ebook-badge-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }.ebook-badge { display: flex; gap: 10px; padding: 14px; border: 1px solid var(--ebook-line); border-radius: 9px; opacity: .55; }.ebook-badge.earned { border-color: #e5bd66; background: #fff8df; opacity: 1; }.ebook-badge > strong { color: #c46748; font-size: 24px; }.ebook-badge h3 { margin: 0; font-size: 13px; }.ebook-badge p { margin: 4px 0 0; color: var(--ebook-muted); font-size: 11px; line-height: 1.4; }
@media (max-width: 720px) { .ebook-stats-hero { flex-direction: column; }.ebook-stats-hero > strong { display: block; min-width: 0; text-align: left; }.ebook-stat-grid, .ebook-badge-grid { grid-template-columns: repeat(2, 1fr); }.ebook-goal-panel { align-items: flex-start; }.ebook-badge:last-child { grid-column: 1 / -1; } }

/* ==========================================================================
   Megga Disk — Welcome & Onboarding Screen
   ========================================================================== */

.app-shell.welcome-mode .sidebar {
  display: none !important;
}

.app-shell.welcome-mode .topbar {
  display: none !important;
}

.app-shell.welcome-mode .ai-fab {
  display: none !important;
}

.app-shell.welcome-mode .content-wrap {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.welcome-page {
  --w-bg: #10231F;
  --w-panel: #163832;
  --w-raised: #1C463E;
  --w-accent: #3ECF8E;
  --w-accent-soft: #79E3B3;
  --w-text-primary: #EEF4F1;
  --w-text-secondary: #8FA9A0;
  --w-text-muted: #5E756D;
  --w-border: rgba(238, 244, 241, 0.09);
  --w-border-strong: rgba(238, 244, 241, 0.17);
  --w-radius: 10px;

  background: var(--w-bg);
  color: var(--w-text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

.welcome-page * {
  box-sizing: border-box;
}

.welcome-page h1,
.welcome-page h2,
.welcome-page h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}

.welcome-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

.welcome-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  border-bottom: 1px solid var(--w-border);
}

.welcome-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--w-text-primary);
}

.welcome-logo-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.welcome-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.welcome-nav-links a.plain {
  font-size: 14px;
  color: var(--w-text-secondary);
  transition: color .15s;
  text-decoration: none;
  cursor: pointer;
}

.welcome-nav-links a.plain:hover {
  color: var(--w-text-primary);
}

.welcome-btn {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.welcome-btn:active {
  transform: scale(0.97);
}

.welcome-btn-accent {
  background: var(--w-accent);
  color: #08251A;
  font-weight: 600;
}

.welcome-btn-accent:hover {
  background: var(--w-accent-soft);
}

.welcome-btn-ghost {
  background: transparent;
  color: var(--w-text-primary);
  border-color: var(--w-border-strong);
}

.welcome-btn-ghost:hover {
  background: var(--w-raised);
}

.welcome-btn-text {
  background: none;
  border: 0;
  color: var(--w-text-secondary);
  padding: 10px 4px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.welcome-btn-text:hover {
  color: var(--w-text-primary);
}

.welcome-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  padding: 96px 0 88px;
}

.welcome-hero h1 {
  font-size: 50px;
  line-height: 1.12;
  max-width: 540px;
  color: var(--w-text-primary);
}

.welcome-hero p.lede {
  font-size: 17px;
  color: var(--w-text-secondary);
  max-width: 460px;
  margin: 22px 0 34px;
  line-height: 1.6;
}

.welcome-hero-ctas {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.welcome-trust-line {
  margin-top: 22px;
  font-size: 13px;
  color: var(--w-text-muted);
}

.welcome-disk-stage {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-disk-stage svg {
  width: 100%;
  height: 100%;
  max-width: 420px;
}

.welcome-ring {
  fill: none;
  stroke: var(--w-border-strong);
  stroke-width: 1;
}

.welcome-ring-accent {
  fill: none;
  stroke: var(--w-accent);
  stroke-width: 1.4;
  opacity: 0.85;
}

.welcome-orbit-dot {
  fill: var(--w-accent-soft);
}

.welcome-spin-slow {
  animation: welcomeSpin 60s linear infinite;
  transform-origin: 210px 210px;
}

.welcome-spin-slower {
  animation: welcomeSpin 90s linear infinite reverse;
  transform-origin: 210px 210px;
}

@keyframes welcomeSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-spin-slow, .welcome-spin-slower {
    animation: none;
  }
}

.welcome-modules {
  border-top: 1px solid var(--w-border);
  padding: 80px 0;
}

.welcome-modules-head {
  max-width: 540px;
  margin-bottom: 48px;
}

.welcome-modules-head h2 {
  font-size: 32px;
  color: var(--w-text-primary);
}

.welcome-modules-head p {
  color: var(--w-text-secondary);
  font-size: 15px;
  margin-top: 12px;
  line-height: 1.6;
}

.welcome-module-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 28px 0;
  border-top: 1px solid var(--w-border);
}

.welcome-module-row:last-child {
  border-bottom: 1px solid var(--w-border);
}

.welcome-module-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--w-panel);
  border: 1px solid var(--w-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-module-row h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--w-text-primary);
}

.welcome-module-row p {
  color: var(--w-text-secondary);
  font-size: 14.5px;
  max-width: 560px;
  margin: 0;
  line-height: 1.55;
}

.welcome-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--w-border);
  border: 1px solid var(--w-border);
  border-radius: var(--w-radius);
  overflow: hidden;
  margin: 48px 0 0;
}

.welcome-stat {
  background: var(--w-panel);
  padding: 28px 30px;
}

.welcome-stat .num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 32px;
  color: var(--w-accent-soft);
}

.welcome-stat .label {
  font-size: 13px;
  color: var(--w-text-secondary);
  margin-top: 6px;
}

.welcome-guest-section {
  border-top: 1px solid var(--w-border);
  padding: 80px 0;
}

.welcome-guest-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.welcome-guest-section h2 {
  font-size: 28px;
  max-width: 400px;
  color: var(--w-text-primary);
}

.welcome-guest-section p {
  color: var(--w-text-secondary);
  font-size: 15px;
  margin-top: 14px;
  max-width: 440px;
  line-height: 1.6;
}

.welcome-guest-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--w-text-muted);
}

.welcome-dash {
  background: var(--w-panel);
  border: 1px solid var(--w-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.welcome-dash-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--w-border);
}

.welcome-dash-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--w-border-strong);
}

.welcome-dash-body {
  display: grid;
  grid-template-columns: 130px 1fr;
  min-height: 220px;
}

.welcome-dash-side {
  border-right: 1px solid var(--w-border);
  padding: 14px 10px;
  background: rgba(0, 0, 0, 0.12);
}

.welcome-dash-item {
  padding: 9px 10px;
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--w-text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.welcome-dash-item.active {
  background: var(--w-raised);
  color: var(--w-text-primary);
}

.welcome-dash-main {
  padding: 18px;
}

.welcome-dash-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--w-border);
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  background: var(--w-bg);
}

.welcome-lock {
  color: var(--w-text-muted);
  font-size: 11.5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.welcome-footer {
  border-top: 1px solid var(--w-border);
  padding: 40px 0;
}

.welcome-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.welcome-footer .welcome-logo {
  font-size: 16px;
}

.welcome-footer-links {
  display: flex;
  gap: 26px;
}

.welcome-footer-links a {
  font-size: 13px;
  color: var(--w-text-muted);
  text-decoration: none;
}

.welcome-footer-links a:hover {
  color: var(--w-text-secondary);
}

/* Slide-over Auth Modal */
.welcome-auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 8, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  z-index: 9999;
}

.welcome-auth-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.welcome-auth-panel {
  width: min(420px, 92vw);
  height: 100%;
  background: var(--w-panel);
  border-left: 1px solid var(--w-border-strong);
  padding: 40px 36px;
  overflow-y: auto;
  transform: translateX(28px);
  transition: transform .25s ease;
  box-sizing: border-box;
}

.welcome-auth-overlay.open .welcome-auth-panel {
  transform: translateX(0);
}

.welcome-auth-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.welcome-close-btn {
  background: none;
  border: none;
  color: var(--w-text-secondary);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 4px;
}

.welcome-close-btn:hover {
  color: var(--w-text-primary);
}

.welcome-tabs {
  display: flex;
  gap: 4px;
  background: var(--w-raised);
  border-radius: 9px;
  padding: 4px;
  margin-bottom: 28px;
}

.welcome-tab {
  flex: 1;
  text-align: center;
  padding: 9px 0;
  border-radius: 6px;
  font-size: 13.5px;
  cursor: pointer;
  color: var(--w-text-secondary);
  transition: background .15s, color .15s;
  border: 0;
  background: transparent;
}

.welcome-tab.active {
  background: var(--w-bg);
  color: var(--w-text-primary);
  font-weight: 500;
}

.welcome-auth-panel h2 {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--w-text-primary);
}

.welcome-auth-panel .sub {
  color: var(--w-text-secondary);
  font-size: 14px;
  margin-bottom: 26px;
}

.welcome-field {
  margin-bottom: 16px;
}

.welcome-field label {
  display: block;
  font-size: 13px;
  color: var(--w-text-secondary);
  margin-bottom: 7px;
}

.welcome-field input,
.welcome-field select {
  width: 100%;
  padding: 11px 13px;
  border-radius: 8px;
  border: 1px solid var(--w-border-strong);
  background: var(--w-bg);
  color: var(--w-text-primary);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
}

.welcome-field input:focus,
.welcome-field select:focus {
  outline: none;
  border-color: var(--w-accent);
}

.welcome-auth-submit {
  width: 100%;
  justify-content: center;
  padding: 12px 0;
  font-size: 14.5px;
  margin-top: 8px;
}

.welcome-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: var(--w-text-muted);
  font-size: 12.5px;
}

.welcome-divider::before,
.welcome-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--w-border);
}

.welcome-social-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.welcome-social-btn {
  width: 100%;
  justify-content: center;
  padding: 10px 0;
  font-size: 13.5px;
  background: var(--w-bg);
  border: 1px solid var(--w-border-strong);
  color: var(--w-text-primary);
}

.welcome-social-btn:hover {
  background: var(--w-raised);
}

.welcome-guest-link {
  text-align: center;
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--w-text-secondary);
}

.welcome-guest-link a {
  color: var(--w-accent-soft);
  text-decoration: none;
  cursor: pointer;
}

.welcome-guest-link a:hover {
  text-decoration: underline;
}

.welcome-switch-line {
  text-align: center;
  font-size: 13px;
  color: var(--w-text-muted);
  margin-top: 18px;
}

.welcome-switch-line a {
  color: var(--w-accent-soft);
  text-decoration: none;
  cursor: pointer;
}

.welcome-switch-line a:hover {
  text-decoration: underline;
}

.welcome-form-error {
  min-height: 1.3em;
  margin: 8px 0;
  color: #ff9898;
  font-size: 12px;
}

@media (max-width: 840px) {
  .welcome-hero {
    grid-template-columns: 1fr;
    padding: 56px 0;
  }
  .welcome-disk-stage {
    height: 280px;
    order: -1;
  }
  .welcome-hero h1 {
    font-size: 36px;
  }
  .welcome-module-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .welcome-guest-grid {
    grid-template-columns: 1fr;
  }
  .welcome-stats {
    grid-template-columns: 1fr;
  }
  .welcome-nav-links {
    gap: 16px;
  }
  .welcome-nav-links a.plain {
    display: none;
  }
}

  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.guest-banner-cta {
  background: var(--w-accent, #3ecf8e);
  color: #10231f;
  font-weight: 600;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.15s;
}

.guest-banner-cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.guest-banner-dismiss {
  background: transparent;
  border: none;
  color: #8fa9a0;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s;
}

.guest-banner-dismiss:hover {
  color: #eef4f1;
}

/* Interactive Sandbox Mockup Enhancements */
.welcome-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 14px;
  background: rgba(62, 207, 142, 0.12);
  border: 1px solid rgba(62, 207, 142, 0.35);
  color: var(--w-accent-soft, #79e3b3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.welcome-dash-url {
  margin-left: 12px;
  font-size: 11px;
  color: var(--w-text-muted, #5e756d);
  font-family: monospace;
}

.welcome-dash-side button.welcome-dash-item {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: 12.5px;
  color: var(--w-text-secondary, #8fa9a0);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: block;
}

.welcome-dash-side button.welcome-dash-item:hover {
  background: rgba(238, 244, 241, 0.06);
  color: var(--w-text-primary, #eef4f1);
}

.welcome-dash-side button.welcome-dash-item.active {
  background: rgba(62, 207, 142, 0.18);
  color: var(--w-accent-soft, #79e3b3);
  font-weight: 600;
}

.dash-pane {
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.dash-metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}

.dash-mini-stat {
  background: rgba(16, 35, 31, 0.6);
  border: 1px solid var(--w-border);
  border-radius: 6px;
  padding: 8px 10px;
}

.dash-mini-stat .lbl {
  display: block;
  font-size: 10px;
  color: var(--w-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-mini-stat strong {
  font-size: 12px;
  color: var(--w-text-primary);
}

.dash-section-title {
  font-size: 11px;
  color: var(--w-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.dash-cta-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(62, 207, 142, 0.08);
  border: 1px dashed rgba(62, 207, 142, 0.35);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 11px;
  color: #cdd9d4;
  margin-top: 4px;
}

.dash-cta-prompt button {
  background: none;
  border: none;
  color: var(--w-accent-soft, #79e3b3);
  font-weight: 600;
  font-size: 11px;
  cursor: pointer;
  padding: 0;
}

.dash-cta-prompt button:hover {
  text-decoration: underline;
}

.dash-search-mock {
  background: rgba(16, 35, 31, 0.8);
  border: 1px solid var(--w-border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  color: var(--w-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dash-folder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.dash-folder-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(238, 244, 241, 0.03);
  border: 1px solid var(--w-border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--w-text-primary);
}

.dash-folder-chip small {
  color: var(--w-text-muted);
}

.welcome-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(238, 244, 241, 0.08);
  color: var(--w-text-secondary);
}

.welcome-pill {
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(238, 244, 241, 0.08);
  color: var(--w-text-secondary);
}

.welcome-pill.green {
  background: rgba(62, 207, 142, 0.15);
  color: var(--w-accent-soft);
  border: 1px solid rgba(62, 207, 142, 0.3);
}

.welcome-pill.amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.dash-ai-chat {
  background: rgba(16, 35, 31, 0.7);
  border: 1px solid var(--w-border);
  border-radius: 6px;
  padding: 10px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-ai-msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 11.5px;
  line-height: 1.4;
}

.dash-ai-msg span {
  color: var(--w-accent);
  font-size: 13px;
  flex-shrink: 0;
}

.dash-ai-msg p {
  margin: 0;
  color: var(--w-text-primary);
}

.dash-ai-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.dash-prompt-pill {
  background: rgba(238, 244, 241, 0.05);
  border: 1px solid var(--w-border-strong);
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 10.5px;
  color: var(--w-text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.dash-prompt-pill:hover {
  background: rgba(62, 207, 142, 0.15);
  border-color: var(--w-accent);
  color: var(--w-accent-soft);
}

.dash-security-card {
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(62, 207, 142, 0.08);
  border: 1px solid rgba(62, 207, 142, 0.3);
  border-radius: 6px;
  padding: 10px;
}

.dash-shield-icon {
  font-size: 24px;
}

.dash-check-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.dash-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--w-text-primary);
}

.dash-check-item span {
  color: var(--w-accent);
  font-weight: 700;
}

/* FAQ Accordion Section */
.welcome-faq {
  padding: 64px 0 80px;
  border-top: 1px solid var(--w-border);
}

.welcome-faq-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
}

.welcome-faq-head h2 {
  font-size: 32px;
  color: var(--w-text-primary);
  margin-bottom: 12px;
}

.welcome-faq-head p {
  color: var(--w-text-secondary);
  font-size: 15px;
}

.welcome-faq-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.welcome-faq-item {
  background: var(--w-panel, #163832);
  border: 1px solid var(--w-border);
  border-radius: 10px;
  padding: 18px 22px;
  transition: border-color 0.2s;
}

.welcome-faq-item[open] {
  border-color: var(--w-border-strong);
  background: var(--w-raised, #1c463e);
}

.welcome-faq-item summary {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--w-text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.welcome-faq-item summary::-webkit-details-marker {
  display: none;
}

.welcome-faq-item summary::after {
  content: "＋";
  font-family: monospace;
  font-size: 16px;
  color: var(--w-accent);
  transition: transform 0.2s;
}

.welcome-faq-item[open] summary::after {
  content: "−";
}

.welcome-faq-item p {
  margin: 12px 0 0;
  color: var(--w-text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* Password wrapper & Forgot Password in Drawer */
.welcome-pw-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.welcome-pw-wrapper input {
  padding-right: 56px !important;
}

.welcome-pw-toggle {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--w-text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  transition: color 0.15s;
}

.welcome-pw-toggle:hover {
  color: var(--w-text-primary);
}

.welcome-forgot-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--w-text-muted);
  font-size: 12px;
  margin-top: 6px;
  cursor: pointer;
  align-self: flex-end;
  display: inline-block;
  transition: color 0.15s;
}

.welcome-forgot-btn:hover {
  color: var(--w-accent-soft);
  text-decoration: underline;
}


