/* ==========================================================================
   Ice Practice Creator - Athletic Design System & Stylesheet
   Inspired by USA Hockey / Valley Forge Colonials Coaching Suite
   ========================================================================== */

:root {
  --navy-950: #0c1928;
  --navy-900: #14273d;
  --navy-800: #1d354e;
  --navy-700: #274769;
  --navy-600: #355d87;

  --crimson-700: #a30b24;
  --crimson-600: #c8102e;
  --crimson-500: #df1637;

  --ice-50: #f8fafc;
  --ice-100: #f1f5f9;
  --ice-200: #e2e8f0;
  --ice-300: #cbd5e1;
  --ice-400: #94a3b8;
  --ice-600: #475569;
  --ice-800: #1e293b;

  --emerald-600: #38a169;
  --emerald-700: #2f855a;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.11);
  --shadow-lg: 0 14px 34px rgba(15, 23, 42, 0.16);

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100vh;
  background-color: #ffffff;
  color: var(--navy-800);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Top Application Brand Header + Team & Role Context Switcher
   ========================================================================== */

.top-brand-bar {
  background: linear-gradient(90deg, var(--navy-950) 0%, var(--navy-800) 100%);
  color: #ffffff;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 3px solid var(--crimson-600);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 13px;
  cursor: pointer;
  user-select: none;
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.brand-title-group {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.05;
}

.brand-subtitle {
  font-size: 11px;
  color: #cbd5e1;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.db-pill-button {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.db-pill-button:hover {
  background: rgba(200, 16, 46, 0.85);
  border-color: #ffffff;
  color: #ffffff;
}

/* Context Switcher Corner (Team + Role + Account Avatar) */
.context-switcher-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.switcher-group {
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 4px 10px;
}

.switcher-label {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #94a3b8;
  font-weight: 700;
}

.switcher-select {
  background: transparent;
  color: #ffffff;
  border: none;
  font-size: 12.5px;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  outline: none;
  padding-right: 8px;
}

.switcher-select option {
  background: var(--navy-900);
  color: #ffffff;
}

.account-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 5px 11px 5px 6px;
  border-radius: 999px;
}

.account-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--crimson-600);
  color: #ffffff;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.account-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.account-name {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.account-role-tag {
  font-size: 10px;
  color: #fca5a5;
  font-weight: 700;
  text-transform: uppercase;
}

/* ==========================================================================
   Primary Sub-Navigation Bar (Matches Reference Screenshots 1, 2, 4)
   ========================================================================== */

.primary-nav-shell {
  background: #ffffff;
  border-bottom: 1px solid var(--ice-200);
  padding: 14px 28px;
}

.primary-nav-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.nav-pill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 46px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--crimson-600);
  transition: all 0.16s ease;
  box-shadow: var(--shadow-xs);
  padding: 0 16px;
}

.nav-pill-btn:hover {
  border-color: var(--crimson-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.nav-pill-btn .nav-circle-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy-800);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.nav-pill-btn.active {
  background: var(--crimson-600);
  border-color: var(--crimson-600);
  color: #ffffff;
}

.nav-pill-btn.active .nav-circle-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* ==========================================================================
   Main Content Container & Role Notice Banner
   ========================================================================== */

.app-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 28px 64px;
}

.role-context-banner {
  background: var(--ice-50);
  border: 1px solid var(--ice-200);
  border-left: 4px solid var(--navy-800);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.role-context-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ice-800);
}

.role-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--crimson-600);
}

.section-heading {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--navy-800);
  margin-bottom: 16px;
}

/* ==========================================================================
   Dashboard "MY CREATED CONTENT" Big Stat Cards (Reference Screenshots 1 & 4)
   ========================================================================== */

.created-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
  margin-bottom: 38px;
}

.stat-action-card {
  background: #ffffff;
  border: 1px solid #d8dee6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.18s ease;
}

.stat-action-card:hover {
  box-shadow: var(--shadow-md);
}

.stat-card-body {
  padding: 34px 24px 28px;
  width: 100%;
  cursor: pointer;
}

.stat-big-number {
  font-family: var(--font-display);
  font-size: 92px;
  font-weight: 900;
  line-height: 0.95;
  color: var(--navy-800);
  letter-spacing: -1px;
}

.stat-label {
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--navy-800);
}

.stat-card-cta {
  width: 100%;
  background: var(--crimson-600);
  color: #ffffff;
  border: none;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease;
}

.stat-card-cta:hover:not(:disabled) {
  background: var(--crimson-700);
}

.stat-card-cta:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

/* ==========================================================================
   Practices List & Practice Cards (Matches Reference Screenshot 5)
   ========================================================================== */

.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.sort-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.sort-label {
  font-size: 13px;
  color: var(--ice-600);
  display: block;
  margin-bottom: 4px;
}

.sort-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-800);
  cursor: pointer;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

.sort-btn.active {
  color: var(--crimson-600);
  border-bottom-color: var(--crimson-600);
}

.practice-list-card {
  background: #ffffff;
  border: 1px solid #d8dee6;
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
}

.practice-card-header {
  padding: 18px 24px 14px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.practice-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-800);
}

.practice-card-author {
  font-size: 13px;
  font-weight: 400;
  color: var(--ice-600);
  margin-left: 6px;
}

.practice-card-subtitle {
  font-size: 12.5px;
  color: var(--ice-600);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.practice-card-body {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 125px 1fr 290px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 860px) {
  .practice-card-body {
    grid-template-columns: 1fr;
  }
}

.calendar-date-box {
  border: 1px solid var(--navy-800);
  text-align: center;
  width: 120px;
  background: #ffffff;
}

.calendar-month {
  background: var(--navy-800);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 6px 0;
  letter-spacing: 0.8px;
}

.calendar-day {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-800);
  padding: 6px 0 2px;
}

.calendar-year {
  font-size: 15px;
  color: var(--ice-600);
  padding-bottom: 6px;
}

.practice-middle-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.view-full-practice-link {
  background: none;
  border: none;
  text-align: left;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-800);
  cursor: pointer;
}

.view-full-practice-link:hover {
  color: var(--crimson-600);
  text-decoration: underline;
}

.view-drill-summary-btn {
  background: none;
  border: none;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #1d70b8;
  cursor: pointer;
}

.plus-circle-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #65a30d;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
}

.practice-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.outline-action-btn {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--navy-800);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.14s ease;
}

.outline-action-btn:hover:not(:disabled) {
  border-color: var(--navy-800);
  background: var(--ice-50);
}

.outline-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.drill-summary-drawer {
  grid-column: 1 / -1;
  background: var(--ice-50);
  border: 1px solid var(--ice-200);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 8px;
}

/* ==========================================================================
   Full Practice Sheet & Drill View (Matches Reference Screenshot 3)
   ========================================================================== */

.red-section-banner {
  background: var(--crimson-600);
  color: #ffffff;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.red-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.drill-showcase-block {
  max-width: 960px;
  margin: 0 auto 44px;
}

.drill-showcase-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy-800);
  text-align: center;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.drill-showcase-meta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.drill-diagram-frame {
  max-width: 760px;
  margin: 0 auto 18px;
  background: #ffffff;
}

.rink-svg {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
}

.description-accordion {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 3px;
}

.description-accordion-header {
  background: #f8f9fa;
  padding: 11px 16px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13.5px;
  color: #2d3748;
  text-decoration: underline;
}

.minus-box-icon {
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--crimson-600);
  color: var(--crimson-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.description-accordion-body {
  padding: 18px 20px;
  color: #4a5568;
  font-size: 14px;
  white-space: pre-line;
  line-height: 1.65;
}

/* ==========================================================================
   Drill Designer Studio ("Draw a Drill" - Matches Reference Screenshot 2)
   ========================================================================== */

.studio-field-group {
  margin-bottom: 18px;
}

.studio-label {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy-800);
  margin-bottom: 6px;
  letter-spacing: 0.4px;
}

.studio-label .req {
  color: var(--crimson-600);
}

.studio-input, .studio-select, .studio-textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid #94a3b8;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--navy-900);
  background: #ffffff;
}

.studio-input:focus, .studio-select:focus, .studio-textarea:focus {
  outline: none;
  border-color: var(--navy-800);
  box-shadow: 0 0 0 2px rgba(29, 53, 78, 0.12);
}

.draw-drill-panel {
  border: 1px solid #d8dee6;
  background: #ffffff;
  margin-bottom: 22px;
}

.draw-drill-panel-header {
  background: #f5f6f8;
  padding: 12px 16px;
  border-bottom: 1px solid #d8dee6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 15px;
  color: #334155;
}

.draw-drill-panel-body {
  padding: 22px;
}

/* Sheet Surface Thumbnail Selector Row */
.sheet-selector-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.sheet-thumb-btn {
  background: #f1f5f9;
  border: 2px solid #e2e8f0;
  padding: 6px 10px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 118px;
  transition: all 0.15s ease;
}

.sheet-thumb-btn:hover {
  border-color: #94a3b8;
}

.sheet-thumb-btn.active {
  background: #e2e8f0;
  border-color: var(--navy-800);
  box-shadow: 0 0 0 1px var(--navy-800);
}

.sheet-thumb-btn svg {
  width: 84px;
  height: 50px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
}

.sheet-thumb-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy-800);
  text-transform: uppercase;
}

/* Interactive Rink Canvas Wrapper */
.interactive-canvas-stage {
  max-width: 780px;
  margin: 0 auto 16px;
  border: 1px dashed #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  position: relative;
}

.interactive-canvas-stage svg {
  touch-action: none;
  cursor: crosshair;
}

/* Placeable Objects & Drawing Toolbar (Matches Reference Screenshot 2) */
.studio-toolbar-container {
  max-width: 960px;
  margin: 0 auto 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.toolbar-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 8px 12px;
  border-radius: 6px;
}

.tool-icon-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  transition: all 0.12s ease;
}

.tool-icon-btn:hover {
  background: #e2e8f0;
}

.tool-icon-btn.active {
  background: #e2e8f0;
  border-color: var(--navy-800);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
}

.tool-divider {
  width: 1px;
  height: 26px;
  background: #cbd5e1;
  margin: 0 4px;
}

.participant-circle-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.enum-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  background: #f1f5f9;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
}

.enum-num-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.enum-num-btn.active {
  background: var(--navy-800);
  color: #ffffff;
  border-color: var(--navy-800);
}

/* Studio Red Action Buttons & Green Add Progression Button */
.studio-red-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn-red-solid {
  background: var(--crimson-600);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.14s ease;
}

.btn-red-solid:hover:not(:disabled) {
  background: var(--crimson-700);
}

.btn-navy-solid {
  background: var(--navy-800);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
}

.btn-navy-solid:hover:not(:disabled) {
  background: var(--navy-900);
}

.btn-green-progression {
  background: var(--emerald-600);
  color: #ffffff;
  border: none;
  padding: 11px 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
}

.btn-green-progression:hover {
  background: var(--emerald-700);
}

/* ==========================================================================
   Tables, Badges, Cards & Modals
   ========================================================================== */

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid #d8dee6;
}

.data-table th {
  background: var(--navy-800);
  color: #ffffff;
  text-align: left;
  padding: 11px 14px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13.5px;
}

.data-table tr:hover td {
  background: var(--ice-50);
}

.scope-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.scope-global {
  background: #dbeafe;
  color: #1e40af;
}

.scope-organization {
  background: #fef3c7;
  color: #92400e;
}

.scope-team_only {
  background: #fce7f3;
  color: #9d174d;
}

.scope-personal {
  background: #dcfce7;
  color: #065f46;
}

.version-pill {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.two-col-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

@media (max-width: 960px) {
  .two-col-layout {
    grid-template-columns: 1fr;
  }
}

.panel-card {
  background: #ffffff;
  border: 1px solid #d8dee6;
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 20px;
}

.panel-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy-800);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ice-100);
}

.code-blueprint {
  background: #0f172a;
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  line-height: 1.55;
}

.toast-container {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast-msg {
  background: var(--navy-900);
  color: #ffffff;
  border-left: 4px solid var(--crimson-600);
  padding: 12px 18px;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 600;
  max-width: 420px;
}

/* ==========================================================================
   Login Screen Styles
   ========================================================================== */

.login-screen-wrapper {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.login-card {
  width: 100%;
  max-width: 430px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-top: 5px solid var(--crimson-600);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 36px 32px;
}

.login-header {
  text-align: center;
  margin-bottom: 26px;
}

.login-header img {
  width: 60px;
  height: 60px;
  margin-bottom: 12px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.login-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: var(--navy-800);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 1.05;
}

.login-subtitle {
  font-size: 13px;
  color: var(--ice-600);
  margin-top: 6px;
}

.login-error-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid var(--crimson-600);
  color: #991b1b;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  border-radius: 3px;
}

/* ==========================================================================
   Responsive Mobile & Landscape Layout Utilities
   - Narrow Portrait Displays (<= 720px portrait): Streamlined for viewing
     practices, browsing/filtering drills, and selecting existing drills.
   - Landscape Mode & High-Res / Tablet / Desktop Displays: Unlocks full
     Rink & Dryland Drawing Studio, diagram forking, and admin management.
   ========================================================================== */

.show-on-narrow-mobile,
.show-on-narrow-mobile-inline {
  display: none !important;
}

.table-responsive-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pb-meta-three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.pb-slot-three-col {
  display: grid;
  grid-template-columns: 110px 180px 1fr;
  gap: 10px;
}

.pb-catalog-item {
  border: 1px solid #d8dee6;
  border-radius: 4px;
  padding: 12px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  align-items: center;
}

.drills-filter-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.drills-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 22px;
}

.mobile-landscape-prompt {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-left: 4px solid var(--crimson-600);
  color: var(--navy-900);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

/* Narrow Portrait Mobile Displays: Streamlined View & Select-Existing Mode */
@media (max-width: 720px) and (orientation: portrait) {
  .hide-on-narrow-mobile {
    display: none !important;
  }

  .show-on-narrow-mobile {
    display: block !important;
  }

  .show-on-narrow-mobile-inline {
    display: inline-flex !important;
  }

  .top-brand-bar {
    position: static;
    padding: 10px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .brand-title {
    font-size: 20px;
  }

  .context-switcher-bar {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .switcher-group {
    flex: 1 1 44%;
    min-width: 130px;
  }

  .primary-nav-shell {
    padding: 10px 14px;
  }

  .primary-nav-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .nav-pill-btn {
    height: 40px;
    font-size: 11px;
    padding: 0 10px;
    gap: 8px;
  }

  .nav-pill-btn .nav-circle-icon {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .app-main {
    padding: 14px 12px 44px;
  }

  .created-content-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stat-big-number {
    font-size: 64px;
  }

  .pb-meta-three-col,
  .pb-slot-three-col,
  .pb-catalog-item,
  .drills-filter-grid,
  .drills-catalog-grid {
    grid-template-columns: 1fr;
  }

  .practice-card-header,
  .practice-card-body,
  .panel-card,
  .draw-drill-panel-body {
    padding: 14px;
  }

  .drill-showcase-title {
    font-size: 23px;
  }

  .red-banner-left {
    font-size: 19px;
  }
}

/* Mobile Landscape Mode: Unlocks Drawing & Editing with Compact Vertical Chrome */
@media (max-height: 540px) and (orientation: landscape) {
  .top-brand-bar {
    position: static;
    padding: 8px 16px;
  }

  .primary-nav-shell {
    padding: 8px 16px;
  }

  .app-main {
    padding: 14px 16px 36px;
  }
}

@media print {
  .top-brand-bar,
  .primary-nav-shell,
  .role-context-banner,
  .no-print {
    display: none !important;
  }
  .app-main {
    padding: 0;
  }
}

