/* Custom styles and print layout for OUM Practicum Documentation Generator */

:root {
  --primary: #1465b8;
  --primary-dark: #0b3c68;
  --oum-blue: #0b3c68;
  --oum-red: #c01823;
  --canvas: #f7f3ed;
  --surface: #fffdfa;
  --surface-muted: #f4eee7;
  --ink: #25262b;
  --ink-soft: #5e5c66;
  --line: rgba(58, 48, 66, 0.12);
  --violet: #6930b5;
  --magenta: #a1499d;
  --coral: #dc7458;
  --orange: #ef9a54;
  --teal: #188f91;
  --shadow-soft: 0 16px 36px -24px rgba(51, 33, 64, 0.36), 0 5px 14px -9px rgba(51, 33, 64, 0.16);
  --shadow-raised: 0 24px 56px -30px rgba(57, 33, 70, 0.48), 0 8px 20px -12px rgba(57, 33, 70, 0.22);
  --focus-ring: 0 0 0 4px rgba(105, 48, 181, 0.16);
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

/* Tablet & Mobile Touch optimizations */
button, a, input, select, textarea {
  touch-action: manipulation;
}

/* Keep editable text comfortable without letting native controls dominate compact
   forms. Text inputs stay at 16px on mobile to prevent iOS Safari auto-zoom;
   selects and textareas use the app's compact control scale. */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="password"],
  input[type="number"],
  input[type="date"],
  input[type="time"],
  input[type="email"],
  textarea {
    font-size: 16px !important;
  }

  .ready-theme select,
  .ready-theme select option,
  .ready-theme textarea {
    font-size: 14px !important;
    line-height: 1.35;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Stepper connector lines */
.step-line {
  height: 2px;
  background-color: #e2e8f0;
}
.step-line.active {
  background-color: #0284c7;
}

/* Card hover animation */
.hover-card {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

/* iPhone & Modern Mobile Safe Areas */
.safe-top {
  padding-top: max(env(safe-area-inset-top, 0px), 0px);
}
.safe-bottom {
  padding-bottom: max(env(safe-area-inset-bottom, 12px), 12px);
}

.touch-pan-x {
  -webkit-overflow-scrolling: touch;
}

/* Document Paper Preview */
.doc-preview-paper {
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  font-family: 'Arial', 'Calibri', sans-serif;
  color: #000;
  line-height: 1.4;
  min-width: 680px;
}

@media (min-width: 1024px) {
  .doc-preview-paper {
    min-width: 100%;
  }
}

.doc-preview-table {
  width: 100%;
  border-collapse: collapse;
}

.doc-preview-table th,
.doc-preview-table td {
  border: 1px solid #000;
  padding: 6px 8px;
  font-size: 13px;
}

.doc-preview-table th {
  background-color: #f3f4f6;
  font-weight: bold;
}

/* Print Layout for PDF Export (Exact 1:1 OUM template fidelity) */
@media print {
  body {
    background: white !important;
    color: black !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .no-print,
  nav,
  header,
  aside,
  button,
  .toast-container,
  #aiDrawer,
  #bottomNav,
  #mobileMenu {
    display: none !important;
  }

  #mainContent {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }

  .doc-print-container {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .doc-preview-paper {
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0.5in 0.6in !important;
    page-break-after: always;
  }

  .doc-preview-table {
    border: 1px solid black !important;
  }

  .doc-preview-table th,
  .doc-preview-table td {
    border: 1px solid black !important;
    color: black !important;
  }

  @page {
    size: A4;
    margin: 15mm 15mm 15mm 15mm;
  }
}

/* ================= LIQUID GLASS & GRADIENT LANDING STYLES (PRISTINE SILVER & PEARL WHITE) ================= */
.liquid-gradient-bg {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 25%, #e2e8f0 50%, #f8fafc 75%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

/* Ambient Liquid Ambient Mesh Overlay */
.liquid-gradient-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(224, 242, 254, 0.7) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(241, 245, 249, 0.8) 0%, transparent 40%),
              radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.9) 0%, transparent 60%);
  pointer-events: none;
}

.liquid-glass-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 
              0 0 0 1px rgba(255, 255, 255, 0.9) inset,
              0 8px 20px -4px rgba(2, 132, 199, 0.05);
}

.liquid-glass-pill {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
}

.liquid-glass-pill:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(0, 0, 0, 0.03);
}

.liquid-glass-input {
  background: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid #e2e8f0;
  color: #0f172a;
  transition: all 0.2s ease;
}

.liquid-glass-input:focus {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12), 0 2px 8px rgba(2, 132, 199, 0.06);
  outline: none;
}

.liquid-glass-input::placeholder {
  color: #94a3b8;
}

.liquid-btn-primary {
  background: linear-gradient(135deg, #0b3c68 0%, #0369a1 55%, #0284c7 100%);
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 20px -4px rgba(11, 60, 104, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.liquid-btn-primary:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 55%, #0b3c68 100%);
  transform: translateY(-1px);
  box-shadow: 0 12px 25px -4px rgba(11, 60, 104, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.liquid-btn-primary:active {
  transform: scale(0.98);
}

.liquid-orb-1 {
  position: absolute;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(186, 230, 253, 0.75) 0%, rgba(224, 242, 254, 0.35) 50%, transparent 70%);
  filter: blur(60px);
  animation: floatOrb1 20s ease-in-out infinite alternate;
  pointer-events: none;
}

.liquid-orb-2 {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 210, 254, 0.65) 0%, rgba(238, 242, 255, 0.3) 50%, transparent 70%);
  filter: blur(55px);
  animation: floatOrb2 24s ease-in-out infinite alternate;
  pointer-events: none;
}

.liquid-orb-3 {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 205, 211, 0.45) 0%, rgba(255, 241, 242, 0.18) 50%, transparent 70%);
  filter: blur(60px);
  animation: floatOrb3 22s ease-in-out infinite alternate;
  pointer-events: none;
}

.liquid-orb-4 {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(204, 251, 241, 0.55) 0%, transparent 70%);
  filter: blur(50px);
  animation: floatOrb1 16s ease-in-out infinite reverse;
  pointer-events: none;
}

/* ================= READY-INSPIRED OUM THEME =================
   A visual layer only: document preview and print styles remain deliberately
   isolated so official OUM document output stays exact. */
html:has(.ready-theme) {
  background: var(--canvas);
}

body.ready-theme {
  color: var(--ink);
  background-color: var(--canvas);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(243, 204, 168, 0.22), transparent 26rem),
    radial-gradient(circle at 88% 20%, rgba(164, 117, 206, 0.14), transparent 30rem),
    radial-gradient(circle at 53% 92%, rgba(255, 197, 148, 0.15), transparent 31rem);
}

body.ready-theme::before {
  content: '';
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(rgba(54, 42, 53, 0.16) 0.55px, transparent 0.7px),
    radial-gradient(rgba(255, 255, 255, 0.92) 0.55px, transparent 0.7px);
  background-position: 0 0, 4px 5px;
  background-size: 9px 9px, 13px 13px;
}

.ready-theme header {
  background: rgba(255, 252, 247, 0.88) !important;
  border-color: rgba(62, 47, 68, 0.12) !important;
  box-shadow: 0 8px 24px -22px rgba(48, 33, 57, 0.5);
}

.ready-theme #bottomNav {
  background: rgba(255, 252, 247, 0.95) !important;
  border-color: rgba(62, 47, 68, 0.12) !important;
  box-shadow: 0 -8px 22px -20px rgba(48, 33, 57, 0.44);
}

.ready-theme .ready-nav-btn,
.ready-theme .nav-btn {
  border: 1px solid transparent;
  color: #635e67;
}

.ready-theme .ready-nav-btn:hover,
.ready-theme .nav-btn:hover {
  color: var(--oum-blue);
  background: #f3ebfa !important;
}

.ready-theme .ready-nav-btn--active,
.ready-theme .nav-btn.ready-nav-btn--active {
  color: #fff;
  background: linear-gradient(115deg, var(--oum-blue), #275fb0 48%, var(--violet)) !important;
  box-shadow: 0 8px 16px -11px rgba(39, 62, 139, 0.75);
}

.ready-theme .bg-oum-blue,
.ready-theme .liquid-btn-primary {
  background: linear-gradient(115deg, var(--oum-blue) 0%, #1769bd 45%, var(--violet) 100%) !important;
  box-shadow: 0 10px 22px -12px rgba(38, 56, 130, 0.65) !important;
}

.ready-theme .bg-oum-blue:hover,
.ready-theme .liquid-btn-primary:hover {
  background: linear-gradient(115deg, #104d85 0%, #245aa9 44%, #7b35be 100%) !important;
}

.ready-theme .text-oum-blue {
  color: #155890 !important;
}

.ready-theme input:not([type='checkbox']):not([type='radio']),
.ready-theme select,
.ready-theme textarea {
  background-color: rgba(255, 253, 250, 0.94) !important;
  border-color: rgba(67, 55, 75, 0.18) !important;
  color: var(--ink) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

/* Normalize control typography across dense RPH, journal, attendance, profile,
   upload, and AI forms. Native option menus inherit this scale where supported. */
.ready-theme input:not([type='checkbox']):not([type='radio']),
.ready-theme select,
.ready-theme select option,
.ready-theme textarea {
  font-size: 0.875rem !important;
  line-height: 1.35;
}

@media screen and (max-width: 768px) {
  .ready-theme input:not([type='checkbox']):not([type='radio']) {
    font-size: 16px !important;
  }
}

.ready-theme input:not([type='checkbox']):not([type='radio']):focus,
.ready-theme select:focus,
.ready-theme textarea:focus {
  border-color: var(--violet) !important;
  box-shadow: var(--focus-ring), inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
  outline: none;
}

.ready-theme input::placeholder,
.ready-theme textarea::placeholder,
.ready-theme input::-webkit-input-placeholder,
.ready-theme textarea::-webkit-input-placeholder {
  color: #a39ba3 !important;
  /* Keep helper copy visually secondary, even where iOS retains a 16px
     editable control font to avoid browser zoom. */
  font-size: 12px !important;
  line-height: 1.3 !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  opacity: 1;
}

.ready-theme input[type='checkbox'],
.ready-theme input[type='radio'] {
  accent-color: var(--violet);
}

.ready-theme main > :not(#view-login) div.bg-white:not(.doc-preview-paper),
.ready-theme aside div.bg-white,
.ready-theme [id$='Modal'] > div.bg-white,
.ready-theme #aiDrawer {
  background-color: rgba(255, 253, 250, 0.93) !important;
  border-color: var(--line) !important;
}

.ready-theme .shadow-xs,
.ready-theme .shadow-sm,
.ready-theme .shadow-md,
.ready-theme .shadow-lg {
  box-shadow: var(--shadow-soft) !important;
}

.ready-theme .hover-card:hover {
  box-shadow: var(--shadow-raised) !important;
}

.ready-theme .bg-slate-50,
.ready-theme .bg-slate-50\/40,
.ready-theme .bg-slate-50\/50,
.ready-theme .bg-slate-50\/60,
.ready-theme .bg-slate-50\/80,
.ready-theme .bg-slate-100 {
  background-color: var(--surface-muted) !important;
}

.ready-theme .border-slate-100,
.ready-theme .border-slate-200,
.ready-theme .border-slate-300 {
  border-color: var(--line) !important;
}

.ready-theme .text-slate-900,
.ready-theme .text-slate-800 {
  color: var(--ink) !important;
}

.ready-theme .text-slate-700,
.ready-theme .text-slate-600 {
  color: #5b5862 !important;
}

.ready-theme .text-slate-500,
.ready-theme .text-slate-400 {
  color: #827b84 !important;
}

/* Login carries the expressive marketing treatment. */
.ready-theme .liquid-gradient-bg {
  background:
    radial-gradient(circle at 7% 18%, rgba(238, 166, 100, 0.44), transparent 30%),
    radial-gradient(circle at 89% 12%, rgba(165, 91, 192, 0.32), transparent 34%),
    radial-gradient(circle at 52% 92%, rgba(46, 104, 187, 0.18), transparent 32%),
    var(--canvas);
}

.ready-theme .liquid-gradient-bg::before {
  opacity: 0.66;
  background-image:
    radial-gradient(rgba(55, 42, 57, 0.18) 0.55px, transparent 0.72px),
    radial-gradient(rgba(255, 255, 255, 0.86) 0.55px, transparent 0.72px);
  background-position: 0 0, 4px 5px;
  background-size: 9px 9px, 13px 13px;
}

.ready-theme .liquid-orb-1 { background: radial-gradient(circle, rgba(239, 160, 87, 0.42), rgba(241, 188, 148, 0.16) 46%, transparent 72%); }
.ready-theme .liquid-orb-2 { background: radial-gradient(circle, rgba(136, 73, 186, 0.34), rgba(193, 139, 208, 0.12) 48%, transparent 72%); }
.ready-theme .liquid-orb-3 { background: radial-gradient(circle, rgba(211, 87, 132, 0.24), rgba(246, 177, 126, 0.1) 50%, transparent 72%); }
.ready-theme .liquid-orb-4 { background: radial-gradient(circle, rgba(27, 128, 151, 0.22), transparent 72%); }

.ready-theme #view-login h1 {
  color: #27262a !important;
  letter-spacing: -0.045em;
  max-width: 15ch;
}

.ready-theme .liquid-glass-card {
  background: rgba(255, 252, 248, 0.84);
  border-color: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-raised), 0 0 0 1px rgba(99, 68, 105, 0.08);
}

.ready-theme .liquid-glass-pill {
  background: rgba(255, 252, 249, 0.7);
  border-color: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px -23px rgba(70, 40, 73, 0.45), 0 0 0 1px rgba(93, 63, 99, 0.08);
}

.ready-theme .liquid-glass-pill:first-child {
  background: linear-gradient(105deg, rgba(35, 83, 163, 0.12), rgba(108, 48, 182, 0.16), rgba(224, 116, 88, 0.15));
  border-color: rgba(108, 48, 182, 0.2);
}

.ready-theme .liquid-glass-pill:hover {
  background-color: rgba(255, 253, 250, 0.94);
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(105, 48, 181, 0.12);
}

/* Authenticated workspace: a warmer, quieter version of the same language. */
.ready-theme #view-dashboard > div:first-child {
  background: linear-gradient(115deg, #0b3c68 0%, #164e92 37%, #61309d 71%, #9b4d91 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: var(--shadow-raised) !important;
}

.ready-theme #view-dashboard > div:first-child::before {
  content: '';
  position: absolute;
  width: 21rem;
  height: 21rem;
  right: -6rem;
  top: -12rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(246, 173, 103, 0.5), transparent 68%);
  filter: blur(5px);
}

.ready-theme #view-dashboard > div:first-child > div { position: relative; }

.ready-theme #view-dashboard > .grid > div,
.ready-theme #view-week-workspace > .grid > div,
.ready-theme #view-profile > .grid > div {
  border-color: var(--line) !important;
  box-shadow: var(--shadow-soft) !important;
}

.ready-theme #view-dashboard > .bg-gradient-to-r {
  background: linear-gradient(105deg, rgba(239, 182, 135, 0.42), rgba(218, 184, 232, 0.38), rgba(148, 188, 213, 0.35)) !important;
  border-color: rgba(105, 48, 181, 0.2) !important;
}

.ready-theme #view-dashboard h2,
.ready-theme #view-week-workspace h1,
.ready-theme #view-rph-form h1,
.ready-theme #view-weekly-journal h1,
.ready-theme #view-attendance h1,
.ready-theme #view-signoff h1,
.ready-theme #view-profile h1,
.ready-theme #view-smart-upload h1 {
  letter-spacing: -0.03em;
}

.ready-theme .step-tab {
  border: 1px solid transparent;
}

.ready-theme .step-tab.bg-slate-100 {
  background: #eee8e5 !important;
  color: #67606a !important;
}

.ready-theme .step-tab.bg-emerald-50 {
  background: #e4f3ec !important;
  color: #246a59 !important;
}

.ready-theme .ready-form-accent-card {
  background: linear-gradient(110deg, rgba(231, 220, 246, 0.52), rgba(255, 246, 238, 0.68)) !important;
  border-color: rgba(105, 48, 181, 0.2) !important;
}

.ready-theme .ready-upload-card {
  background: linear-gradient(140deg, rgba(255, 253, 250, 0.96), rgba(248, 241, 247, 0.94)) !important;
  border-color: rgba(105, 48, 181, 0.16) !important;
  box-shadow: var(--shadow-soft) !important;
}

.ready-theme .ready-tab--active {
  color: #fff !important;
  background: linear-gradient(115deg, var(--oum-blue), var(--violet)) !important;
  box-shadow: 0 9px 18px -13px rgba(59, 42, 128, 0.82);
}

.ready-theme .ready-tab--inactive {
  color: #605a63 !important;
  background: #eee9e6 !important;
}

.ready-theme .ready-week-card {
  background: linear-gradient(155deg, rgba(255, 253, 250, 0.98), rgba(248, 242, 238, 0.86)) !important;
  border-color: rgba(77, 58, 87, 0.15) !important;
  box-shadow: var(--shadow-soft) !important;
}

.ready-theme .ready-week-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-raised) !important;
}

.ready-theme .ready-week-accent { height: 0.32rem; }
.ready-theme .ready-week-accent--ocean { background: linear-gradient(90deg, #1465b8, #5f54c7, #a84ca1) !important; }
.ready-theme .ready-week-accent--teal { background: linear-gradient(90deg, #198e92, #269d9b, #7e62c5) !important; }
.ready-theme .ready-week-accent--violet { background: linear-gradient(90deg, #4f218f, #8e3d9c, #d46f79) !important; }
.ready-theme .ready-week-accent--sunset { background: linear-gradient(90deg, #d45d6c, #e97e5b, #efa24f) !important; }

.ready-theme .ready-week-border--ocean:hover { border-color: rgba(20, 101, 184, 0.52) !important; }
.ready-theme .ready-week-border--teal:hover { border-color: rgba(25, 142, 146, 0.52) !important; }
.ready-theme .ready-week-border--violet:hover { border-color: rgba(105, 48, 181, 0.52) !important; }
.ready-theme .ready-week-border--sunset:hover { border-color: rgba(220, 116, 88, 0.6) !important; }

.ready-theme .ready-status {
  border: 1px solid transparent;
  box-shadow: 0 4px 10px -8px rgba(48, 33, 57, 0.32);
}
.ready-theme .ready-status--complete { color: #125b4d !important; background: #dff2e8 !important; border-color: #b8e1ce; }
.ready-theme .ready-status--draft { color: #8c4b12 !important; background: #fff0d8 !important; border-color: #f7d497; }
.ready-theme .ready-status--idle { color: #6b6470 !important; background: #eee9e6 !important; border-color: #dfd7d2; }
.ready-theme .ready-status--locked { color: #776f78 !important; background: #e7e3df !important; border-color: #d7d0ca; }

.ready-theme .ready-metric-row {
  background: rgba(255, 255, 255, 0.64) !important;
  border-color: rgba(70, 54, 80, 0.08) !important;
}

.ready-theme .ai-drawer {
  background: #fffcf7 !important;
  border-left: 1px solid rgba(68, 51, 79, 0.16);
  box-shadow: -24px 0 54px rgba(38, 27, 56, 0.22) !important;
}

.ready-theme .ai-drawer-header {
  color: #fff !important;
  background-color: #0b4c83 !important;
  background-image: linear-gradient(120deg, #064b85 0%, var(--oum-blue) 34%, #4338a8 70%, #5b217b 100%) !important;
  border-top: 4px solid #f6bb3f;
}

.ready-theme .ai-drawer-header h3 {
  color: #fff !important;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 1px rgba(7, 28, 66, 0.28);
}

.ready-theme .ai-drawer-header p {
  color: #dbeafe !important;
  font-weight: 600;
}

.ready-theme .ai-icon-button {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #eef6ff !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.8rem;
  transition: background-color .16s ease, color .16s ease, transform .16s ease;
}
.ready-theme .ai-icon-button:hover { color: #fff !important; background: rgba(255,255,255,.18); }
.ready-theme .ai-icon-button:focus-visible, .ready-theme .ai-drawer button:focus-visible, .ready-theme .ai-drawer textarea:focus-visible, .ready-theme .ai-drawer select:focus-visible, .ready-theme .ai-drawer input:focus-visible { outline: 3px solid #f6bb3f; outline-offset: 2px; }

.ready-theme .ai-drawer-tabs { background: #fffaf5; border-bottom: 1px solid #e5ddd6; }
.ready-theme .ai-tab-active { color: var(--oum-blue) !important; border-bottom: 3px solid var(--oum-blue); background: rgba(224, 239, 255, .68); }
.ready-theme .ai-tab-inactive { color: #6a6470 !important; border-bottom: 3px solid transparent; background: transparent; }
.ready-theme .ai-context { background: #f4eee8; border-bottom: 1px solid #e4dad3; }
.ready-theme .ai-status-row { display:flex; align-items:center; gap:.45rem; min-height:2.2rem; padding: .42rem 1rem; color:#625d65; background:#fffaf5; border-bottom:1px solid #eee3dc; font-size:.66rem; font-weight:600; }
.ready-theme .ai-status-dot { width:.48rem; height:.48rem; border-radius:50%; background:#7e7680; }
.ready-theme #ai-provider-status[data-mode="online"] + * { color: inherit; }
.ready-theme .ai-drawer-body { background: linear-gradient(180deg, #fffcf7 0%, #fdf8f2 100%); overscroll-behavior: contain; }
.ready-theme .ai-notes { border: 1px solid #d9d0cd; background: #fff; color: #2d2931; resize: vertical; min-height: 6.3rem; max-height: 15rem; }
.ready-theme .ai-primary-action { color:#fff; background: linear-gradient(105deg, var(--oum-blue), #4539ad); box-shadow: 0 10px 20px -14px rgba(19, 63, 140, .9); }
.ready-theme .ai-primary-action:hover { background: linear-gradient(105deg, #063c70, #352889); }
.ready-theme .ai-results { border-top: 1px solid #ded5ce; }
.ready-theme .ai-result-meta { display:block; margin-top:.18rem; color:#756d76; font-size:.63rem; font-weight:600; }
.ready-theme .ai-reflection-card { display:block; padding:.65rem; border:1px solid rgba(67,55,81,.14); border-radius:.75rem; }
.ready-theme .ai-output-editor, .ready-theme .ai-result-editor { display:block; width:100%; margin-top:.42rem; padding:.48rem; color:#302b33; background:rgba(255,255,255,.84); border:1px solid rgba(73,60,83,.17); border-radius:.55rem; font-size:.7rem; line-height:1.45; resize:vertical; }
.ready-theme .ai-merge-control { display:flex; align-items:center; justify-content:space-between; gap:.6rem; padding:.55rem .1rem 0; color:#58515c; font-size:.7rem; font-weight:700; }
.ready-theme .ai-merge-control select { max-width:14rem; padding:.35rem .45rem; color:#342f37; background:#fff; border:1px solid #d8cfca; border-radius:.5rem; font-size:.68rem; }
.ready-theme .ai-result-card { padding:.75rem; color:#312b36; background:#f0edff; border:1px solid #d8d1ff; border-radius:.85rem; font-size:.72rem; }
.ready-theme .ai-choice-row { display:flex; align-items:flex-start; gap:.48rem; }
.ready-theme .ai-choice-row input { margin-top:.5rem; accent-color:var(--oum-blue); }
.ready-theme .ai-small-action { padding:.38rem .55rem; color:#fff; background:var(--oum-blue); border-radius:.48rem; font-size:.66rem; font-weight:700; }
.ready-theme .ai-small-action:hover { background:#073f75; }
.ready-theme .ai-provider-active { color:#fff !important; background:linear-gradient(105deg, var(--oum-blue), #4338a8) !important; }

@media (max-width: 640px) {
  .ready-theme .ai-drawer { width:100%; border-left:0; }
  .ready-theme .ai-drawer-header { padding: .75rem 1rem; }
  .ready-theme .ai-drawer-header h3 { font-size:.84rem; }
  .ready-theme .ai-drawer-header p { font-size:.65rem; }
  .ready-theme .ai-drawer-body { padding: .9rem; }
  .ready-theme .ai-drawer-tabs button { min-height:3.1rem; padding:.45rem; }
}

.ready-theme [id$='Modal'] {
  background-color: rgba(35, 30, 39, 0.52) !important;
}

.ready-theme [id$='Modal'] > div {
  box-shadow: var(--shadow-raised) !important;
}

.ready-theme #toastContainer > div {
  box-shadow: var(--shadow-raised) !important;
}

@media (prefers-reduced-motion: reduce) {
  .ready-theme *,
  .ready-theme *::before,
  .ready-theme *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body.ready-theme,
  body.ready-theme::before {
    background: #fff !important;
  }

  body.ready-theme .doc-preview-paper,
  body.ready-theme .doc-preview-paper * {
    color: #000 !important;
    background: #fff !important;
    box-shadow: none !important;
  }
}

@keyframes floatOrb1 {
  0% { transform: translate(0px, 0px) scale(1); }
  50% { transform: translate(80px, 60px) scale(1.12); }
  100% { transform: translate(-50px, 120px) scale(0.92); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0px, 0px) scale(1); }
  50% { transform: translate(-100px, -70px) scale(1.18); }
  100% { transform: translate(60px, -40px) scale(0.95); }
}

@keyframes floatOrb3 {
  0% { transform: translate(0px, 0px) scale(0.9); }
  50% { transform: translate(70px, -80px) scale(1.1); }
  100% { transform: translate(-60px, 40px) scale(1.05); }
}
