/* Klaro Daily V65 · shared light surfaces and readable controls.
   App-shell polish only. Claro's dialog and liquid orb own their styles. */
:root {
  --kd-ink: #27283f;
  --kd-muted: #60657c;
  --kd-border: #dfe3ef;
  --kd-focus: #5146ba;
  --ink: #27283f;
  --muted: #60657c;
  --line: #dfe3ef;
}

body.kd-premium {
  background: radial-gradient(ellipse at 92% 0, #edf1ff 0, transparent 52%), #f8f9fc;
  color: var(--kd-ink);
}

.kd-premium .sidebar {
  background: linear-gradient(165deg, #fff 35%, #f5f6fc);
  border-color: var(--kd-border);
}
.kd-premium .sidebar .nav button.active {
  color: #4b45a5;
  background: linear-gradient(115deg, #eeebff, #eaf1ff);
}
.kd-premium .shell :is(.panel, .task-panel, .quick-entry, .disclosure, .kd-music-card, .kd-music-drill, .kd-fit-history-item) {
  border-color: var(--kd-border);
  background-image: linear-gradient(140deg, #fff 72%, #f9faff);
  box-shadow: 0 2px 5px #26365704, 0 8px 24px #26365704;
}
.kd-premium .shell .kd-premium-heading {
  background: radial-gradient(ellipse at 100% 0, #e9f2ffb3, transparent 70%), linear-gradient(115deg, #f0edff, #fff 72%);
  border-color: #dfe2ef;
  box-shadow: inset 0 1px 0 #fff;
}
.kd-premium .shell .kd-premium-heading h1 { color: #2c2e48; }
.kd-premium .shell .kd-premium-heading :is(.lead, .eyebrow) { color: #60637d; }
.kd-premium .shell :is(.panelhead h2, .kd-more-link strong) { color: #30334c; }
.kd-premium .shell .btn.primary {
  background: linear-gradient(115deg, #6555c8, #4f5fbc);
  border-color: #554db5;
  box-shadow: inset 0 1px 0 #ffffff24, 0 3px 10px #4c4ca315;
}
.kd-premium .shell .btn.soft {
  background: #eeedfc;
  border-color: #dfdff1;
  color: #4f4798;
}
.kd-premium .shell :is(input.input, textarea.input, select.input, .select) {
  background: #fff;
  border-color: #d5dbe9;
}
.kd-premium .shell :is(input, textarea)::placeholder { color: #71778b; }

/* Keep labels, optional detail, and inactive controls readable on pale cards. */
.kd-premium .shell :is(.section-kicker, .kd-fit-eyebrow, .kd-radio-count, .kd-preview-category, .kd-preview-copy small, .kd-preview-credit, .kd-fit-footer) {
  color: #646b84;
}
.kd-premium .shell :is(.kd-more-link small, .kd-radio-station small, .kd-fit-plan-detail small, .kd-fit-plan-duration, .kd-preview-copy p, .kd-preview-footer > span) {
  color: #60677e;
}
.kd-premium .shell .back-link { min-height: 44px; padding-block: 8px; }
.kd-premium .shell :is(.sort-options > summary, .task-action-menu > summary, .time-presets button, .help-filters button, .kd-recipe-shortcuts button, .kd-radio-genres button, .kd-assistant-shortcuts button) {
  min-height: 44px;
}
.kd-premium .shell :is(.btn, .text-button, .back-link, summary) { -webkit-tap-highlight-color: transparent; }
.kd-premium .shell :is(button, input, select, textarea, a, summary):focus-visible,
.kd-premium #modal-root :is(button, input, select, textarea, a, summary):focus-visible {
  outline: 3px solid #5146ba !important;
  outline-offset: 3px;
}
.kd-premium .shell :is(.field, .searchbox, .panelhead > div, .kd-more-link, .kd-fit-plan-detail) { min-width: 0; }
.kd-premium .shell :is(.task-title, .note-title, .kd-more-link strong, .finance-row-title) { overflow-wrap: anywhere; }
.kd-premium .shell :is(.form-actions, .work-actions, .flow) { row-gap: 10px; }
.kd-premium .shell :is(.time-digits, .work-clock, .pet-timer, .budget-main strong) { font-variant-numeric: tabular-nums; }

/* The existing home assistant remains a separate, familiar text interface. */
.kd-premium #view-assistant .assistant-header {
  background: linear-gradient(110deg, #f4f1ff, #f3f8ff);
  border-color: #dfe3ef;
}
.kd-premium #view-assistant .assistant-body { background: #fafbfe; }
.kd-premium #view-assistant .assistant-footer { background: #fff; }
.kd-premium #view-assistant .bubble { overflow-wrap: anywhere; }

@media (max-width: 760px) {
  /* Avoid automatic iOS form zoom across every existing screen. */
  .kd-premium .shell :is(input, textarea, select):not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  .kd-premium #modal-root :is(input, textarea, select):not([type="checkbox"]):not([type="radio"]):not([type="range"]) {
    font-size: 16px;
  }
  .kd-premium .shell .main { padding-left: 16px; padding-right: 16px; }
  .kd-premium .shell .panelhead { flex-wrap: wrap; }
  .kd-premium .shell .panelhead > :is(.btn, .text-button) { flex-shrink: 0; }
  .kd-premium .shell :is(.organizer-tabs, .time-tabs, .kd-fit-tabs, .kd-music-tabs, .segmented) { max-width: 100%; }
  .kd-premium .shell :is(.organizer-tabs, .time-tabs, .kd-fit-tabs, .kd-music-tabs, .segmented) button {
    min-width: 0;
    white-space: normal;
    overflow-wrap: normal;
    line-height: 1.3;
  }
  .kd-premium .shell .recipe-filters { min-width: 0; }
  .kd-premium .shell .recipe-filters .select { width: 100%; min-width: 0; }
  .kd-premium .shell .budget-rest strong { min-width: 0; overflow-wrap: anywhere; }
  .kd-premium #bottom-nav.bottombar {
    background: #ffffffed;
    border-color: #e0e4f0;
    box-shadow: 0 -4px 18px #27395c06;
  }
  .kd-premium #bottom-nav.bottombar button { color: #626982; }
  .kd-premium #bottom-nav.bottombar button.active {
    color: #5148a3;
    background: linear-gradient(125deg, #ede9ff, #e8efff);
    box-shadow: inset 0 0 0 1px #dfe1f4;
  }
}

@media (max-width: 380px) {
  .kd-premium .shell .main { padding-left: 13px; padding-right: 13px; }
  .kd-premium .shell .organizer-datebar { gap: 5px; }
  .kd-premium .shell .organizer-datebar .btn { padding-inline: 10px; }
  .kd-premium .shell .organizer-datebar input[type="date"] { min-width: 125px; }
  .kd-premium .shell :is(.kd-music-tabs, .time-tabs, .organizer-tabs) button { padding-inline: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .kd-premium .shell { scroll-behavior: auto; }
}
@media (forced-colors: active) {
  .kd-premium .shell :is(.panel, .kd-premium-heading, .btn),
  .kd-premium #bottom-nav.bottombar button.active {
    color: CanvasText;
    border: 1px solid CanvasText;
    background: Canvas;
    box-shadow: none;
  }
}
