:root {
  --bg: #f2f8f7;
  --bg-2: #eaf5f3;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-hover: rgba(255, 255, 255, 0.96);
  --panel-border: rgba(14, 140, 125, 0.14);
  --line: rgba(14, 140, 125, 0.16);
  --text: #152422;
  --text-dim: #3a5250;
  --muted: #7a9694;
  --primary: #0d9b8a;
  --primary-dark: #0a7f71;
  --primary-glow: rgba(13, 155, 138, 0.18);
  --accent: #d4760a;
  --accent-glow: rgba(212, 118, 10, 0.14);
  --danger: #c0392b;
  --ok: #1a8c58;
  --shadow: 0 4px 24px rgba(14, 80, 70, 0.1), 0 1px 4px rgba(14, 80, 70, 0.06);
  --shadow-hover: 0 8px 40px rgba(14, 80, 70, 0.16);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

/* =====================
   MOBILE OPTIMIZATIONS
===================== */
html {
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100dvh;
  font-family: "Outfit", "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 900px 700px at 10% 0%, rgba(13, 155, 138, 0.09) 0%, transparent 60%),
    radial-gradient(ellipse 700px 500px at 90% 10%, rgba(212, 118, 10, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 600px 800px at 50% 90%, rgba(13, 155, 138, 0.05) 0%, transparent 60%),
    var(--bg);
  overflow-x: hidden;
}

/* Subtle grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 180px;
  opacity: 0.018;
  pointer-events: none;
  z-index: 0;
}

/* Ambient background shapes */
.bg-shape {
  position: fixed;
  z-index: 0;
  filter: blur(80px);
  border-radius: 999px;
  opacity: 0.22;
  pointer-events: none;
}

.bg-shape-a {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, #5dd6c8, transparent 70%);
  top: -130px;
  right: -110px;
  animation: driftA 16s ease-in-out infinite;
}

.bg-shape-b {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #f8c57a, transparent 70%);
  bottom: -110px;
  left: -100px;
  animation: driftB 18s ease-in-out infinite;
}


/* ── 언어 선택 ── */
.lang-picker {
  position: fixed; top: 12px; right: 14px; z-index: 9999;
}
.lang-picker-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--panel-border); background: var(--panel);
  font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: box-shadow 0.15s;
}
.lang-picker-btn:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.14); }
.lang-picker-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  min-width: 140px; overflow: hidden;
}
.lang-option {
  display: flex; align-items: center; gap: 0.55rem;
  width: 100%; padding: 0.5rem 0.85rem; border: none; background: none;
  font-size: 0.88rem; color: var(--text); cursor: pointer; text-align: left;
  font-family: inherit; transition: background 0.12s;
}
.lang-option:hover { background: var(--primary-glow); }
.lang-option--active { color: var(--primary); font-weight: 600; background: var(--primary-glow); }

.app {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100vw - 2rem));
  max-width: 100%;
  margin: 2.5rem auto 4rem;
  display: grid;
  gap: 1rem;
}

.home-view,
.useful-view,
.business-view {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.tool-view,
.panel {
  min-width: 0;
}

/* =====================
   PANEL
===================== */
.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.9);
  padding: 1.25rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.panel-header-collapsible {
  align-items: flex-start;
}

.panel-header-copy {
  min-width: 0;
}

.panel-header-note {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.panel-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-wrap: wrap;
}

/* =====================
   SECTION HEADER ACCENT
===================== */
.panel-header h2,
.panel > h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.panel-header h2::before,
.panel > h2::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  border-radius: 999px;
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--primary-glow);
}

.home-quick-actions-panel h2::before,
.business-head h2::before,
.business-title::before {
  display: none;
}

/* =====================
   HOME HERO
===================== */
.home-hero-panel {
  padding: 1.4rem 1.5rem;
  position: relative;
  overflow: hidden;
}

/* Gradient border */
.home-hero-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(13,155,138,0.5) 0%, rgba(255,255,255,0.2) 40%, rgba(212,118,10,0.3) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Ambient inner glow */
.home-hero-panel::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(13,155,138,0.08) 0%, transparent 65%);
  pointer-events: none;
  animation: heroPulse 4s ease-in-out infinite;
}

@keyframes heroPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.home-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.9rem;
}

.home-brand-main {
  align-items: center;
}

.home-title {
  margin: 0.1rem 0 0;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--text) 40%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-trust-banner {
  margin: 0.9rem 0 1rem;
}

.home-search-form {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.home-search-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.home-favorite-add {
  min-width: 44px;
  padding-inline: 0;
  font-size: 1rem;
  line-height: 1;
}

.home-search-input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(14, 140, 125, 0.2);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.85rem;
  font-family: "Outfit", "Space Grotesk", sans-serif;
  font-size: 0.96rem;
  color: var(--text);
  background: rgba(255,255,255,0.8);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.home-search-input::placeholder {
  color: var(--muted);
}

.home-search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.home-search-hint {
  margin: 0.6rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.home-clock-sticky-slot { height: 0; }

.home-clock-widget {
  position: relative;
  z-index: 40;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.home-clock-widget.home-clock-pinned {
  position: fixed;
  top: 0.75rem;
  z-index: 60;
}

.summary,
.panel-header-note {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* =====================
   QUICK ACTIONS
===================== */
.home-quick-actions-panel {
  padding-top: 0.75rem;
  padding-bottom: 0.9rem;
}

.home-quick-actions-panel .panel-header {
  margin-bottom: 0.5rem;
}

.home-quick-actions-panel h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}

.quick-actions-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
  gap: 0.4rem;
}

.quick-action-btn {
  border: 1px solid rgba(14, 140, 125, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.7);
  color: var(--text-dim);
  min-height: 58px;
  padding: 0.3rem 0.28rem;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.2rem;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  font-family: inherit;
}

.quick-action-btn:hover,
.quick-action-btn:focus-visible {
  border-color: rgba(13, 155, 138, 0.4);
  background: rgba(255,255,255,0.95);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 155, 138, 0.12);
  outline: none;
  color: var(--text);
}

.quick-action-btn:active {
  transform: translateY(0);
}

.quick-action-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 600;
  line-height: 1;
}

.quick-action-icon iconify-icon {
  font-size: 16px;
}

/* Per-button icon colors: defined via data-qa-action selectors at end of file */

.quick-action-date {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
}

.quick-action-weather-live {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  width: auto;
  min-width: 30px;
  padding: 0 0.18rem;
}

.quick-action-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.56rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quick-actions-status {
  margin-top: 0.65rem;
}

.quick-actions-status-error { color: var(--danger); }
.quick-actions-status-warn { color: var(--accent); }

/* =====================
   HOME PANELS
===================== */
.home-favorites-panel { padding-top: 1rem; }

.home-collapse-toggle { min-width: 66px; }

.home-collapsible-body[hidden] { display: none !important; }

.home-panel-collapsed .panel-header { margin-bottom: 0; }

.home-favorites-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.home-favorites-list .empty-row { grid-column: 1 / -1; }

.home-favorite-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.home-favorite-run {
  flex: 1;
  border: 1px solid rgba(14,140,125,0.18);
  border-radius: var(--radius-sm);
  background: #f8fdfc;
  color: var(--text-dim);
  text-align: left;
  padding: 0.48rem 0.64rem;
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.home-favorite-run:hover,
.home-favorite-run:focus-visible {
  border-color: var(--primary);
  background: #fff;
  outline: none;
}

.home-favorite-edit {
  min-width: 48px;
  height: 32px;
  padding: 0 0.48rem;
  border-color: rgba(14,140,125,0.16);
  background: #f4f9f8;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.home-favorite-edit:hover:not(:disabled),
.home-favorite-edit:focus-visible {
  border-color: rgba(14,140,125,0.3);
  background: #edf7f5;
  color: var(--text-dim);
  outline: none;
}

.home-favorite-remove {
  width: 34px;
  height: 32px;
  padding: 0;
  border-color: rgba(14,140,125,0.12);
  background: #f5f9f8;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.home-favorite-remove:hover:not(:disabled),
.home-favorite-remove:focus-visible {
  border-color: rgba(192,57,43,0.3);
  background: rgba(192,57,43,0.06);
  color: var(--danger);
  outline: none;
}

.home-favorite-count {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.86em;
  color: var(--muted);
  font-weight: 500;
}

.home-route-grid {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.home-route-card {
  appearance: none;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  background: linear-gradient(140deg, #ffffff 0%, #f4faf8 100%);
  padding: 1rem 1.1rem;
  text-align: left;
  display: grid;
  gap: 0.35rem;
  cursor: pointer;
  color: var(--text);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}

.home-route-card strong { font-size: 1rem; font-weight: 600; }
.home-route-card span { color: var(--muted); font-size: 0.87rem; }

.home-route-card:hover,
.home-route-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(13,155,138,0.35);
  box-shadow: 0 10px 28px rgba(13,155,138,0.1);
  outline: none;
}

.home-inline-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.useful-link-grid {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.useful-link-card {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  background: linear-gradient(140deg, #ffffff 0%, #f4faf8 100%);
  text-decoration: none;
  color: var(--text);
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.38rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.useful-link-card strong { font-size: 0.97rem; font-weight: 600; }
.useful-link-card span { color: var(--muted); font-size: 0.86rem; }

.useful-link-card:hover,
.useful-link-card:focus-visible {
  border-color: rgba(13,155,138,0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,155,138,0.1);
  outline: none;
}

.useful-link-button {
  width: 100%;
  appearance: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.useful-link-focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.business-home-button { padding-inline: 0.75rem; }

/* =====================
   TOOLS PREVIEW
===================== */
.home-tools-preview-grid {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
}

.home-tools-group {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  background: #ffffff;
  padding: 0.85rem 0.9rem;
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.home-tools-group:hover {
  box-shadow: 0 4px 16px rgba(13,155,138,0.08);
  border-color: rgba(13,155,138,0.25);
}

.home-tools-group-title {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s var(--ease);
}

.home-tools-group-title:hover,
.home-tools-group-title:focus-visible {
  color: var(--primary);
  outline: none;
}

.home-tools-links {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.4rem;
}

/* home-secondary-grid: defined in HOME 2-COLUMN LAYOUT section at end of file */

.home-note-panel {
  height: 100%;
}

.home-note-body {
  display: grid;
  gap: 0.6rem;
  height: 100%;
}

.home-note-editor {
  min-height: 240px;
  resize: vertical;
}

.home-todo-preview-panel {
  align-self: start;
  height: auto;
}

.home-todo-body {
  display: grid;
  gap: 0.5rem;
}

.home-todo-editor-list {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.home-todo-edit-row {
  display: grid;
  grid-template-columns: 18px 1.6rem minmax(0, 1fr);
  gap: 0.4rem;
  align-items: center;
}

/* 빅3 List */
.home-big3-list { display: grid; gap: 0.45rem; margin-bottom: 0.5rem; }
.home-big3-row { display: grid; grid-template-columns: 1.2rem 1.6rem minmax(0, 1fr); gap: 0.4rem; align-items: center; }
.big3-number {
  font-family: "IBM Plex Mono", monospace; font-size: 0.88rem; font-weight: 700;
  color: var(--primary); text-align: center; flex-shrink: 0;
}

.home-todo-edit-check {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.home-todo-edit-input {
  min-width: 0;
}

.home-tools-link {
  appearance: none;
  border: 1px solid rgba(14,140,125,0.12);
  border-radius: var(--radius-sm);
  background: #f8fcfb;
  color: var(--text-dim);
  text-align: left;
  padding: 0.5rem 0.65rem;
  font-size: 0.85rem;
  cursor: pointer;
  display: grid;
  gap: 0.18rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  font-family: inherit;
}

.home-tools-link strong { font-size: 0.86rem; color: var(--text); font-weight: 600; }
.home-tools-link span { color: var(--muted); font-size: 0.75rem; line-height: 1.35; }

.home-tools-link:hover,
.home-tools-link:focus-visible {
  border-color: rgba(13,155,138,0.3);
  background: #edf8f5;
  outline: none;
}

/* =====================
   TIMEZONE
===================== */
.timezone-live-grid {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.7rem;
}

.timezone-convert-row { margin-top: 0.2rem; }
.timezone-convert-datetime { margin: 0; }

.timezone-convert-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.5rem;
  align-items: center;
}

.timezone-convert-inline input[type="datetime-local"] { width: 100%; }
.timezone-convert-inline .button { height: 40px; padding-inline: 0.85rem; }

.timezone-zone-row {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.6rem;
  align-items: end;
}

.timezone-zone-row .option { margin: 0; }

.timezone-swap-button {
  min-width: 54px;
  padding-inline: 0.7rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  align-self: end;
}

.timezone-duration-base-grid { margin-top: 0.2rem; }
.timezone-duration-add-grid { margin-top: 0.75rem; }

.timezone-live-item {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  background: #f8fdfc;
  padding: 0.8rem 0.85rem;
}

.timezone-live-item-target {
  border-color: rgba(13,155,138,0.35);
  background: rgba(13,155,138,0.05);
  box-shadow: inset 0 0 0 1px rgba(13,155,138,0.1);
}

.timezone-live-item strong {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timezone-live-item-target strong { color: var(--primary); }

.timezone-live-time {
  margin: 0.3rem 0 0;
  display: grid;
  gap: 0.08rem;
  font-family: "IBM Plex Mono", monospace;
  line-height: 1.4;
}

.timezone-live-date { font-size: 0.82rem; font-weight: 600; color: var(--text-dim); }
.timezone-live-clock { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.timezone-live-meta { font-size: 0.72rem; color: var(--muted); }
.timezone-live-utc-date { font-size: 0.7rem; color: var(--muted); }
.timezone-live-item-target .timezone-live-time { gap: 0.1rem; }
.timezone-live-item-target .timezone-live-date,
.timezone-live-item-target .timezone-live-clock { color: var(--text); }
.timezone-live-item-target .timezone-live-date { font-size: 0.85rem; }
.timezone-live-item-target .timezone-live-clock { font-size: 0.95rem; }

.timezone-result-box {
  margin-top: 0.95rem;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  background: #f8fdfc;
  padding: 0.8rem 0.9rem;
  color: var(--text-dim);
  font-size: 0.86rem;
  line-height: 1.5;
}

.timezone-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.timezone-result-title {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.timezone-copy-button { min-height: 34px; padding: 0.34rem 0.62rem; font-size: 0.77rem; }

.timezone-result-summary {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
}

.timezone-result-grid {
  margin-top: 0.56rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 0.56rem;
}

.timezone-result-card {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 0.6rem 0.65rem;
}

.timezone-result-card-target {
  border-color: rgba(13,155,138,0.3);
  background: rgba(13,155,138,0.04);
  box-shadow: inset 0 0 0 1px rgba(13,155,138,0.08);
}

.timezone-result-card-head { display: grid; gap: 0.16rem; }
.timezone-result-card-label { font-size: 0.8rem; color: var(--text-dim); }
.timezone-result-card-zone { font-size: 0.72rem; color: var(--muted); font-family: "IBM Plex Mono", monospace; }
.timezone-result-date { margin-top: 0.48rem; color: var(--text-dim); font-size: 0.84rem; font-weight: 600; font-family: "IBM Plex Mono", monospace; }
.timezone-result-time { margin-top: 0.14rem; font-size: 1rem; font-family: "IBM Plex Mono", monospace; color: var(--text); font-weight: 600; }
.timezone-result-meta { margin-top: 0.16rem; font-size: 0.74rem; color: var(--muted); font-family: "IBM Plex Mono", monospace; }
.timezone-result-utc-date { margin-top: 0.12rem; font-size: 0.72rem; color: var(--muted); font-family: "IBM Plex Mono", monospace; }
.timezone-result-card-target .timezone-result-date { font-size: 0.88rem; color: var(--text); }

.timezone-diff-chip {
  margin-top: 0.6rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(13,155,138,0.25);
  border-radius: 999px;
  background: rgba(13,155,138,0.07);
  color: var(--primary);
  font-size: 0.74rem;
  padding: 0.14rem 0.58rem;
  font-family: "IBM Plex Mono", monospace;
}

/* =====================
   BUSINESS HERO
===================== */
.business-hero { padding-top: 0.6rem; }

.business-head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.65rem;
}

.business-title {
  margin: 0;
  font-size: 1.3rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero {
  padding: 1rem 0.2rem;
  animation: fadeUp 0.6s var(--ease) forwards;
}

.top-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-main {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(14,140,125,0.2);
  background: #eef8f6;
  overflow: hidden;
  display: block;
}

.cat-photo-trigger { padding: 0; appearance: none; cursor: pointer; }

.cat-photo-trigger:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.cat-photo { width: 100%; height: 100%; object-fit: cover; display: block; }

.cat-favicon-trigger {
  padding: 0;
  appearance: none;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
  display: grid;
  place-items: center;
  position: relative;
  transition: transform 0.2s var(--ease);
}

.cat-favicon-trigger:hover { transform: scale(1.08); }

.cat-favicon-trigger::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  background: radial-gradient(circle, rgba(13,155,138,0.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.cat-favicon-trigger:hover::after { opacity: 1; }

.cat-favicon-trigger:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.cat-favicon-symbol {
  width: 32px;
  height: 32px;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(13,155,138,0.2));
}

.eyebrow {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  font-size: 0.78rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 6px var(--primary);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--primary); }
  50% { opacity: 0.6; box-shadow: 0 0 12px var(--primary); }
}

h1 {
  margin: 0.3rem 0 0.7rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
}

.subtitle {
  margin: 0;
  max-width: 780px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* =====================
   TOOL TABS
===================== */
.tool-tabs {
  margin: 0.9rem 0 0.75rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tool-tab {
  border: 1px solid rgba(14,140,125,0.18);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  background: rgba(255,255,255,0.7);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
  font-weight: 500;
}

.tool-tab:hover {
  background: #fff;
  color: var(--text-dim);
  border-color: rgba(13,155,138,0.3);
}

.tool-tab-active {
  background: rgba(13,155,138,0.1);
  border-color: rgba(13,155,138,0.4);
  color: var(--primary);
  position: relative;
  overflow: hidden;
}

.tool-tab-active::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: tabShimmer 2.5s ease-in-out infinite;
}

/* Mobile touch target optimization for tool tabs */
@media (max-width: 768px) {
  .tool-tab {
    min-height: 44px;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@keyframes tabShimmer {
  0% { left: -100%; }
  50%, 100% { left: 150%; }
}

.donate-tab-button { margin-right: 0.1rem; flex: 0 0 auto; }

.trust-banner {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: center;
}

.trust-banner strong,
.trust-banner span {
  border: 1px solid rgba(13,155,138,0.2);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  background: rgba(13,155,138,0.06);
  font-size: 0.8rem;
  line-height: 1;
  color: var(--text-dim);
}

.trust-banner strong {
  color: var(--primary);
  border-color: rgba(13,155,138,0.3);
  background: rgba(13,155,138,0.08);
}

.top-brand-trust { margin-top: 0; justify-content: flex-end; }

.privacy-note {
  margin: 0.7rem 0 0;
  max-width: 860px;
  border-left: 2px solid var(--primary);
  padding-left: 0.7rem;
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* =====================
   TOOL VIEW
===================== */
.tool-view { display: grid; gap: 1rem; }
.tool-view[hidden] { display: none !important; }

/* =====================
   DROPZONE
===================== */
.dropzone {
  border: 2px dashed rgba(13,155,138,0.25);
  border-radius: var(--radius-md);
  background: rgba(13,155,138,0.03);
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  color: var(--muted);
}

.dropzone:hover,
.dropzone:focus {
  border-color: var(--primary);
  background: rgba(13,155,138,0.06);
  outline: none;
}

.dropzone.dragover {
  border-color: var(--accent);
  background: rgba(212,118,10,0.06);
}

.dropzone-title { margin: 0 0 0.35rem; font-weight: 700; color: var(--text-dim); font-size: 0.95rem; }
.dropzone-subtitle, .summary { margin: 0; color: var(--muted); }
.summary { margin-top: 0.9rem; font-size: 0.88rem; }

/* Mobile touch optimizations */
@media (max-width: 768px) {
  .dropzone {
    min-height: 120px;
    padding: 1.5rem 1rem;
  }
  .dropzone button,
  .dropzone-btn {
    min-height: 48px;
    padding: 12px 24px;
  }
}

.tool-view {
  -webkit-overflow-scrolling: touch;
}

/* =====================
   LISTS
===================== */
.uploaded-list {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.7rem;
}

.pdf-feature-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.75rem;
}

.pdf-feature-card {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 0.8rem 0.85rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
  color: var(--text);
  font-family: inherit;
}

.pdf-feature-card strong { font-size: 0.94rem; font-weight: 600; }
.pdf-feature-card span { color: var(--muted); font-size: 0.8rem; line-height: 1.35; }

.pdf-feature-card:hover {
  border-color: rgba(13,155,138,0.35);
  box-shadow: 0 6px 20px rgba(13,155,138,0.1);
  transform: translateY(-2px);
}

.pdf-feature-active {
  border-color: rgba(13,155,138,0.45);
  background: rgba(13,155,138,0.04);
  animation: cardGlow 3s ease-in-out infinite;
}

@keyframes cardGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(13,155,138,0.15), 0 4px 16px rgba(13,155,138,0.08); }
  50% { box-shadow: 0 0 0 1px rgba(13,155,138,0.3), 0 4px 24px rgba(13,155,138,0.16); }
}

.pdf-feature-badge {
  margin-top: auto;
  width: fit-content;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 0.14rem 0.48rem;
  font-size: 0.72rem;
  font-style: normal;
  color: var(--muted);
}

.pdf-feature-ready {
  border-color: rgba(26,140,88,0.3);
  color: var(--ok);
  background: rgba(26,140,88,0.07);
}

/* =====================
   UPLOAD CARDS
===================== */
.upload-card {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.upload-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #eef9f7, #f8f7ef);
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--panel-border);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
}

.upload-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload-thumb-pdf { color: var(--primary); font-weight: 700; letter-spacing: 0.04em; }

.upload-content { padding: 0.65rem; display: flex; flex-direction: column; gap: 0.45rem; }
.upload-name { font-size: 0.86rem; line-height: 1.25; word-break: break-all; color: var(--text-dim); }
.upload-meta { color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 0.77rem; }
.upload-actions { margin-top: 0.2rem; display: flex; justify-content: flex-end; }
.upload-actions-inline { justify-content: flex-start; gap: 0.4rem; flex-wrap: wrap; }

/* =====================
   OPTIONS
===================== */
.options-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.option { display: flex; flex-direction: column; gap: 0.5rem; }
.option span { font-size: 0.88rem; color: var(--muted); font-weight: 500; }
.option strong { font-family: "IBM Plex Mono", monospace; font-size: 0.9rem; color: var(--primary); }

select, input[type="range"] { width: 100%; }

select,
input[type="number"],
input[type="password"],
input[type="text"] {
  appearance: none;
  border: 1px solid rgba(14,140,125,0.2);
  border-radius: var(--radius-sm);
  padding: 0.58rem 0.75rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

select:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

select option { background: #fff; color: var(--text); }

textarea {
  width: 100%;
  border: 1px solid rgba(14,140,125,0.2);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem;
  font-family: "IBM Plex Mono", monospace;
  background: #fff;
  color: var(--text);
  resize: vertical;
  min-height: 140px;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

input[type="range"] { accent-color: var(--primary); }

input[type="datetime-local"] {
  appearance: none;
  border: 1px solid rgba(14,140,125,0.2);
  border-radius: var(--radius-sm);
  padding: 0.58rem 0.75rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}

input[type="datetime-local"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.text-grid {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
}

.tool-textarea { min-height: 170px; }
.text-output-line { margin-top: 0.85rem; width: 100%; font-family: "IBM Plex Mono", monospace; }

.checkbox-row {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(14,140,125,0.16);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  background: #f8fdfc;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.checkbox-row:hover {
  background: #eef8f5;
  border-color: rgba(13,155,138,0.3);
}

.checkbox-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); }

/* =====================
   ACTION ROW
===================== */
.action-row { display: flex; gap: 0.65rem; flex-wrap: wrap; margin-top: 1rem; align-items: center; }

/* =====================
   BUTTONS
===================== */
.button {
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
  font-family: "Outfit", "Space Grotesk", sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
  font-size: 0.9rem;
  letter-spacing: -0.005em;
}

.button:disabled { cursor: not-allowed; opacity: 0.5; }
.button:not(:disabled):active { transform: scale(0.97); }

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 700;
  animation: buttonGlow 3s ease-in-out infinite;
}

@keyframes buttonGlow {
  0%, 100% { box-shadow: 0 4px 14px rgba(13,155,138,0.25); }
  50% { box-shadow: 0 4px 22px rgba(13,155,138,0.45); }
}

.button-primary:hover:not(:disabled) {
  animation: none;
  box-shadow: 0 6px 28px rgba(13,155,138,0.45);
  transform: translateY(-1px);
  background: linear-gradient(135deg, #10b09c, #0c8f80);
}

.button-secondary {
  background: #fff;
  color: var(--primary-dark);
  border-color: rgba(13,155,138,0.3);
}

.button-secondary:hover:not(:disabled) {
  background: #f0faf8;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(13,155,138,0.1);
}

.button-ghost {
  background: #f4f7f7;
  color: var(--text-dim);
  border-color: rgba(14,140,125,0.14);
}

.button-ghost:hover:not(:disabled) {
  background: #eaf4f2;
  color: var(--text);
  border-color: rgba(13,155,138,0.25);
}

.button-mini { padding: 0.38rem 0.65rem; border-radius: var(--radius-sm); font-size: 0.78rem; font-weight: 600; }

.button-danger {
  background: rgba(192,57,43,0.06);
  border-color: rgba(192,57,43,0.22);
  color: var(--danger);
}

.button-danger:hover:not(:disabled) {
  background: rgba(192,57,43,0.12);
  border-color: rgba(192,57,43,0.38);
}

.donate-button {
  width: 42px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  background: rgba(212,118,10,0.08);
  border-color: rgba(212,118,10,0.25);
  color: var(--accent);
}

.donate-button:hover:not(:disabled) {
  background: rgba(212,118,10,0.14);
  border-color: rgba(212,118,10,0.4);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.icon-coffee { width: 20px; height: 20px; display: block; }

/* =====================
   PROGRESS
===================== */
.progress-wrap { margin-top: 0.9rem; }

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-family: "IBM Plex Mono", monospace;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(13,155,138,0.12);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar > div {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #14c8b4);
  transition: width 0.25s var(--ease);
  border-radius: 999px;
  box-shadow: 0 0 6px rgba(13,155,138,0.3);
}

.dropzone-disabled { cursor: not-allowed; opacity: 0.55; }
.dropzone-disabled:hover,
.dropzone-disabled:focus { border-color: rgba(13,155,138,0.25); background: rgba(13,155,138,0.03); }

/* =====================
   STATUS / EMPTY
===================== */
.empty-row { color: var(--muted); text-align: center; padding: 1.2rem; font-size: 0.88rem; }

.status { display: inline-block; border-radius: 999px; padding: 0.16rem 0.55rem; font-size: 0.77rem; font-weight: 700; font-family: "IBM Plex Mono", monospace; }
.status-waiting { background: rgba(14,140,125,0.07); color: var(--muted); }
.status-processing { background: rgba(212,118,10,0.1); color: var(--accent); }
.status-success { background: rgba(26,140,88,0.1); color: var(--ok); }
.status-error { background: rgba(192,57,43,0.1); color: var(--danger); }

/* =====================
   RESULT LIST
===================== */
.result-list {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.7rem;
}

.result-item {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.result-item:hover {
  border-color: rgba(13,155,138,0.3);
  box-shadow: 0 4px 16px rgba(13,155,138,0.08);
}

.result-name { font-size: 0.88rem; word-break: break-all; color: var(--text-dim); }
.result-meta { color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; }

/* =====================
   MODALS
===================== */
.quick-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 40, 38, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 26;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.quick-modal-backdrop[hidden] { display: none !important; }

.quick-modal-card {
  width: min(860px, 100%);
  max-height: 90vh;
  background: #f4f9f8;
  border: 1px solid rgba(13,155,138,0.18);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: 0 24px 64px rgba(14,80,70,0.2), inset 0 1px 0 rgba(255,255,255,0.9);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.quick-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; }
.quick-modal-header h3 { margin: 0; font-size: 1rem; font-weight: 600; color: var(--text); }
.quick-modal-body { overflow: auto; display: grid; gap: 0.7rem; }

.quick-inline-actions { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.quick-action-help { margin: 0; font-size: 0.84rem; color: var(--muted); }

.quick-calendar-title { margin: 0; font-weight: 700; color: var(--primary); text-align: center; font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; }

.quick-calendar-nav { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.36rem; }
.quick-calendar-nav-button { min-width: 32px; padding: 0.18rem 0.35rem; }

.quick-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.3rem; }
.quick-cal-head { text-align: center; font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; color: var(--muted); }

.quick-cal-cell {
  min-height: 36px;
  border: 1px solid rgba(14,140,125,0.14);
  border-radius: 9px;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 0.84rem;
  color: var(--text-dim);
}

.quick-cal-day { cursor: pointer; font-family: inherit; padding: 0; transition: border-color 0.15s var(--ease), background 0.15s var(--ease); }
.quick-cal-day:hover, .quick-cal-day:focus-visible { border-color: rgba(13,155,138,0.4); background: rgba(13,155,138,0.07); outline: none; }
.quick-cal-empty { border-style: dashed; background: #fafcfc; color: rgba(14,80,70,0.2); }
.quick-cal-today { border-color: rgba(13,155,138,0.5); background: rgba(13,155,138,0.1); color: var(--primary); font-weight: 700; }
.quick-cal-selected { border-color: var(--primary); background: rgba(13,155,138,0.18); color: var(--primary); font-weight: 700; }

.quick-weather-wrap { display: grid; gap: 0.65rem; }

.quick-weather-output {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 0.75rem;
  display: grid;
  gap: 0.38rem;
}

.quick-weather-line { margin: 0; color: var(--text-dim); }
.quick-weather-meta { margin: 0; font-size: 0.78rem; color: var(--muted); font-family: "IBM Plex Mono", monospace; }

.quick-note-wrap { display: grid; gap: 0.6rem; }

.quick-note-editor {
  width: 100%;
  border: 1px solid rgba(14,140,125,0.2);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 0.75rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.83rem;
  resize: vertical;
  min-height: 220px;
  color: var(--text);
}

.quick-note-editor:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.quick-note-meta { margin: 0; font-size: 0.8rem; color: var(--muted); }

.quick-input {
  border: 1px solid rgba(14,140,125,0.2);
  border-radius: var(--radius-sm);
  padding: 0.48rem 0.6rem;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 0.86rem;
}

.quick-input:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }

.quick-todo-wrap { display: grid; gap: 0.62rem; }
.quick-todo-form { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr) auto; gap: 0.45rem; }
.quick-todo-permission { font-family: "IBM Plex Mono", monospace; font-size: 0.74rem; color: var(--muted); }
.quick-todo-list { display: grid; gap: 0.44rem; }

.quick-todo-item {
  border: 1px solid rgba(14,140,125,0.14);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 0.45rem 0.5rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.48rem;
}

.quick-todo-check { width: 16px; height: 16px; accent-color: var(--primary); }
.quick-todo-copy { min-width: 0; display: grid; gap: 0.15rem; }
.quick-todo-copy strong { font-size: 0.86rem; color: var(--text-dim); }
.quick-todo-copy span { font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; color: var(--muted); }
.quick-todo-done .quick-todo-copy strong { text-decoration: line-through; color: var(--muted); }
.quick-todo-overdue { border-color: rgba(192,57,43,0.25); background: rgba(192,57,43,0.04); }

.quick-clock-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.quick-clock-notice { margin: 0; grid-column: 1 / -1; color: var(--muted); }

.quick-clock-section {
  border: 1px solid rgba(14,140,125,0.14);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 0.7rem;
  display: grid;
  gap: 0.56rem;
}

.quick-block-title { margin: 0; font-size: 0.88rem; color: var(--text); font-weight: 600; }
.quick-clock-inputs { display: flex; gap: 0.42rem; }
.quick-timer-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.32rem; }
.quick-timer-preset { min-height: 28px; padding: 0.16rem 0.34rem; font-size: 0.72rem; font-family: "IBM Plex Mono", monospace; }
.quick-clock-input { width: 90px; }
.quick-clock-display { margin: 0; font-family: "IBM Plex Mono", monospace; font-size: 1.12rem; font-weight: 600; color: var(--primary); }

.quick-lap-list { max-height: 150px; overflow: auto; display: grid; gap: 0.24rem; }
.quick-lap-row, .quick-empty { margin: 0; font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; color: var(--muted); }

.quick-calc-wrap { display: grid; gap: 0.58rem; }

.quick-calc-display {
  width: 100%;
  border: 1px solid rgba(14,140,125,0.2);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.7rem;
  background: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.94rem;
  color: var(--text);
}

.quick-calc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.38rem; }
.quick-calc-preview { margin: 0; font-family: "IBM Plex Mono", monospace; font-size: 0.76rem; color: var(--muted); }

.quick-calc-history {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  background: #f8fdfc;
  padding: 0.5rem 0.6rem;
  display: grid;
  gap: 0.22rem;
  max-height: 120px;
  overflow: auto;
}

.quick-calc-history-item { margin: 0; font-family: "IBM Plex Mono", monospace; font-size: 0.76rem; color: var(--text-dim); }
.quick-calc-key { min-height: 38px; padding: 0.36rem; font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; }

.quick-ai-wrap { display: grid; gap: 0.6rem; }
.quick-ai-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.5rem; }

/* =====================
   DONATE MODAL
===================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 40, 38, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop[hidden] { display: none !important; }

.modal-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid rgba(13,155,138,0.18);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: 0 24px 64px rgba(14,80,70,0.18), inset 0 1px 0 rgba(255,255,255,1);
}

.modal-card h3 { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--text); }
.modal-card p { margin: 0.6rem 0 0; color: var(--text-dim); font-size: 0.9rem; line-height: 1.6; }
.modal-copy { line-height: 1.6; }
.modal-line { display: block; }
.modal-line + .modal-line { margin-top: 0.35rem; }
.modal-highlight { color: var(--primary); font-weight: 700; }
.modal-muted { color: var(--muted); font-size: 0.85rem; line-height: 1.5; }
.modal-actions { margin-top: 1rem; display: flex; justify-content: flex-end; gap: 0.5rem; }

/* =====================
   PHOTO MODAL
===================== */
.photo-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 23, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 25;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.photo-modal-backdrop[hidden] { display: none !important; }

.photo-modal-card {
  width: min(96vw, 1400px);
  max-height: 92vh;
  background: #111a18;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.photo-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.photo-modal-header h3 { margin: 0; color: #e5f4f2; font-size: 0.98rem; font-weight: 600; }

.photo-modal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.photo-modal-figure { margin: 0; display: grid; gap: 0.4rem; }

.photo-modal-image {
  width: 100%;
  max-height: calc(92vh - 210px);
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #0a0f0e;
}

.photo-modal-figure figcaption { font-size: 0.82rem; color: #b9d2cf; text-align: center; }
.photo-modal-actions { display: flex; justify-content: flex-end; gap: 0.5rem; }

/* =====================
   SCROLL REVEAL
===================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes driftA {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-28px, 22px) scale(1.04); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes driftB {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -20px) scale(1.04); }
  100% { transform: translate(0, 0) scale(1); }
}

/* =====================
   SCROLLBAR
===================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(14,140,125,0.05); }
::-webkit-scrollbar-thumb { background: rgba(14,140,125,0.2); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(14,140,125,0.35); }

/* =====================
   RESPONSIVE
===================== */
/* =====================
   TOOL TABS — horizontal scroll on mobile
===================== */
@media (max-width: 700px) {
  .tool-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px; /* prevent clipping of bottom border */
    gap: 0.35rem;
  }
  .tool-tabs::-webkit-scrollbar { display: none; }
  .tool-tab { white-space: nowrap; flex-shrink: 0; }
}

@media (max-width: 700px) {
  .app { width: min(calc(100vw - 1rem), 100%); margin: 1rem auto 2.5rem; }
  .panel { border-radius: var(--radius-md); padding: 1rem; }
  .dropzone { padding: 1.4rem 0.8rem; }
  .top-brand { flex-direction: column; align-items: flex-start; }
  .brand-main { width: 100%; }
  .top-brand-trust { justify-content: flex-start; }
  .cat-icon { width: 38px; height: 38px; border-radius: 10px; }

  /* Search stacks vertically */
  .home-search-form { flex-direction: column; align-items: stretch; }
  .home-search-actions { width: 100%; }
  .home-search-actions .button-primary { flex: 1; }
  .home-favorite-add { width: 44px; }

  /* Sync buttons fill row */

  /* Single column grids */
  .home-route-grid,
  .useful-link-grid,
  .home-tools-preview-grid,
  .home-secondary-grid { grid-template-columns: 1fr; }
  .home-favorites-list { grid-template-columns: minmax(0, 1fr); }

  /* Quick Actions: 5 per row (2 rows of 5) with bigger touch targets */
  .quick-actions-bar {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.35rem;
  }
  .quick-action-btn { min-height: 56px; }
  .quick-action-icon { width: 28px; height: 28px; }
  .quick-action-icon iconify-icon { font-size: 15px; }
  .quick-action-label { font-size: 0.62rem; }

  /* Modals */
  .quick-modal-card { width: min(98vw, 100%); max-height: 92vh; padding: 0.75rem; }
  .photo-modal-card { width: min(98vw, 100%); max-height: 94vh; padding: 0.6rem; }
  .photo-modal-grid { grid-template-columns: 1fr; }
  .photo-modal-actions .button { width: 100%; }

  /* Todo / Clock forms */
  .quick-todo-form { grid-template-columns: 1fr; }
  .quick-clock-wrap { grid-template-columns: 1fr; }
  .quick-timer-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Navigation */
  .home-inline-actions { width: 100%; justify-content: flex-end; }
  .business-home-button { order: -1; }

  /* Timezone */
  .timezone-zone-row { grid-template-columns: 1fr; }
  .timezone-swap-button { width: 100%; }
  .timezone-convert-inline { grid-template-columns: 1fr; }
  .timezone-convert-inline .button { width: 100%; }
  .timezone-copy-button { width: 100%; }

  /* Options grid: single column on small screens */
  .options-grid { grid-template-columns: 1fr; }

  /* Button touch targets */
  .button { min-height: 44px; }
  .button-mini { min-height: 36px; }
}

/* Extra small phones (< 375px) */
@media (max-width: 374px) {
  .quick-actions-bar { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.25rem; }
  .quick-action-btn { min-height: 52px; padding: 0.2rem 0.15rem; }
  .quick-action-icon { width: 24px; height: 24px; border-radius: 7px; }
  .quick-action-icon iconify-icon { font-size: 13px; }
  .quick-action-label { font-size: 0.58rem; }
  .panel { padding: 0.85rem; }
}

/* ── Home Clock Widget ── */
.home-clock-widget { padding: 0.7rem 1.25rem; }
.home-clock-display {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  justify-content: center;
}
.home-clock-time {
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.home-clock-date {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}
.home-clock-divider {
  width: 1px;
  height: 1.4em;
  background: var(--line);
  flex-shrink: 0;
}
.home-clock-todo {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: default;
}

/* ── Home Todo Editor ── */
.home-todo-preview-panel .panel-header { margin-bottom: 0.5rem; }

/* ── Floating Quick Bar ── */
.floating-quick-bar {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  display: flex;
  flex-direction: row;
  gap: 0.25rem;
  background: var(--panel);
  border: 1.5px solid var(--panel-border);
  border-radius: 14px;
  padding: 0.4rem 0.5rem;
  box-shadow: var(--shadow);
  z-index: 200;
  align-items: center;
  backdrop-filter: blur(10px);
}
.floating-quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
  min-width: 40px;
}
.floating-quick-btn:hover,
.floating-quick-btn:focus-visible {
  background: var(--primary-glow);
  color: var(--primary);
  outline: none;
}
.floating-quick-label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ── Pomodoro ── */
.quick-timer-pomodoro {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
}
.quick-pomodoro-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.quick-pomodoro-counter {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  margin-left: auto;
}

@media (max-width: 700px) {
  .floating-quick-bar { bottom: 0.75rem; right: 0.75rem; padding: 0.3rem 0.4rem; }
  .floating-quick-btn { min-width: 36px; padding: 0.28rem 0.38rem; }
  .home-clock-time { font-size: 1.6rem; }
  .home-clock-display { gap: 0.6rem; }
  .home-clock-widget.home-clock-pinned {
    position: static;
    top: auto;
  }
  .home-todo-editor-list { min-height: 0; }
}

/* ─── TOAST ─── */
.kkuha-toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  background: var(--text);
  color: var(--bg);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  max-width: calc(100vw - 2rem);
  text-align: center;
}
.kkuha-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.kkuha-toast--error {
  background: var(--danger);
}

/* ─── WEATHER CHIP ─── */
.home-clock-weather {
  font-size: 0.82rem;
  color: var(--text-dim);
  background: var(--primary-glow);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  margin-left: 0.4rem;
  font-weight: 500;
}

/* ─── INFO BAR ─── */
.home-info-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.25rem 0;
}
.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  background: var(--panel);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 500;
  white-space: nowrap;
}
.info-chip--date iconify-icon { color: var(--primary); }
.info-chip--weather iconify-icon { color: #0284c7; }
.info-chip--dday {
  border-color: rgba(212,118,10,0.22);
  background: rgba(212,118,10,0.06);
  color: var(--accent);
}
@media (max-width: 700px) {
  .home-info-bar { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.1rem; }
  .home-info-bar::-webkit-scrollbar { display: none; }
}

/* ─── D-DAY ─── */
.dday-list { list-style: none; padding: 0; margin: 0 0 0.5rem; display: grid; gap: 0.4rem; }
.dday-item {
  display: flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--panel-border); border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem; background: #fff; transition: background 0.15s;
}
.dday-item--today {
  border-color: var(--accent); background: rgba(212,118,10,0.06);
  animation: ddayPulse 2.5s ease-in-out infinite;
}
.dday-item--past { opacity: 0.6; }
@keyframes ddayPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,118,10,0); }
  50% { box-shadow: 0 0 0 3px rgba(212,118,10,0.18); }
}
.dday-emoji { font-size: 1rem; flex-shrink: 0; width: 20px; text-align: center; }
.dday-name { flex: 1; font-size: 0.88rem; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dday-value { font-family: "IBM Plex Mono", monospace; font-size: 0.82rem; font-weight: 700; flex-shrink: 0; }
.dday-value--soon { color: var(--primary); }
.dday-value--today { color: var(--accent); }
.dday-value--past { color: var(--muted); }
.dday-del-btn { width: 22px; height: 22px; border: none; background: none; cursor: pointer; color: var(--muted); display: flex; align-items: center; justify-content: center; border-radius: 50%; padding: 0; flex-shrink: 0; }
.dday-del-btn:hover { color: var(--danger); background: rgba(192,57,43,0.08); }
.dday-add-form { border-top: 1px solid var(--line); padding-top: 0.75rem; margin-top: 0.25rem; display: grid; gap: 0.5rem; }
.dday-emoji-picker { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.dday-emoji-opt {
  width: 34px; height: 34px; border: 1px solid var(--panel-border); border-radius: var(--radius-sm);
  background: #fff; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s, background 0.15s;
}
.dday-emoji-opt--selected { border-color: var(--primary); background: var(--primary-glow); }
.dday-emoji-opt:hover { border-color: var(--primary); }
.dday-add-fields { display: grid; grid-template-columns: 1fr auto; gap: 0.4rem; }
.dday-name-input { flex: 1; }
.dday-chip-sep { margin: 0 0.4rem; opacity: 0.4; }
.dday-repeat-row { display: flex; align-items: center; }
.dday-repeat-label { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--text-dim); cursor: pointer; user-select: none; }
.dday-repeat-check { accent-color: var(--primary); width: 15px; height: 15px; cursor: pointer; }
.dday-repeat-badge { font-size: 0.75rem; margin-left: 0.25rem; opacity: 0.7; }

/* ─── TODO PRIORITY ─── */
.home-todo-priority-select {
  appearance: none; -webkit-appearance: none;
  border: none; background: none; cursor: pointer;
  font-size: 0.9rem; padding: 0 0.15rem;
  width: 1.8rem; text-align: center;
  flex-shrink: 0;
}

/* ─── HABIT TRACKER ─── */
.habit-list { list-style: none; padding: 0; margin: 0 0 0.5rem; display: grid; gap: 0.25rem; }
.habit-row { display: flex; align-items: center; gap: 0.5rem; }
.habit-check-btn {
  flex: 1; display: flex; align-items: center; gap: 0.45rem;
  background: none; border: none; cursor: pointer; text-align: left;
  padding: 0.35rem 0.5rem; border-radius: var(--radius-sm); transition: background 0.15s;
}
.habit-check-btn:hover { background: var(--primary-glow); }
.habit-check-btn[aria-pressed="true"] { background: rgba(13,155,138,0.08); }
.habit-icon { font-size: 1rem; flex-shrink: 0; }
.habit-name { font-size: 0.88rem; color: var(--text-dim); }
.habit-name--done { color: var(--primary); font-weight: 600; text-decoration: line-through; text-decoration-color: var(--primary); }
.habit-streak { display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
.habit-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(14,140,125,0.15); }
.habit-dot--done { background: var(--primary); }
.habit-dot--today { width: 10px; height: 10px; box-shadow: 0 0 4px var(--primary); }
.habit-manage-area { border-top: 1px solid var(--line); padding-top: 0.65rem; margin-top: 0.25rem; display: grid; gap: 0.5rem; }
.habit-manage-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.3rem; }
.habit-manage-item { display: flex; align-items: center; justify-content: space-between; font-size: 0.88rem; }
.habit-pin-badge { font-size: 0.75rem; color: var(--muted); background: var(--primary-glow); border-radius: var(--radius-sm); padding: 0.1rem 0.4rem; flex-shrink: 0; }
.habit-add-form { display: grid; gap: 0.4rem; }

/* ─── MULTI NOTES ─── */
.panel-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.note-color-picker { display: flex; align-items: center; gap: 0.3rem; }
.note-color-dot {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer; padding: 0;
  transition: transform 0.15s, border-color 0.15s;
}
.note-color-dot[aria-pressed="true"] { border-color: var(--text); transform: scale(1.25); }
.note-tabs { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-bottom: 0.65rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--line); }
.note-tab {
  padding: 0.22rem 0.7rem; border-radius: 999px;
  border: 1px solid var(--panel-border); background: #fff;
  font-size: 0.8rem; cursor: pointer; max-width: 130px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
  border-top: 2px solid var(--note-color, var(--primary));
}
.note-tab--active { background: var(--note-color, var(--primary-glow)); border-color: transparent; font-weight: 600; }
.note-card {
  border-radius: var(--radius-md); padding: 0.75rem;
  background: var(--note-bg, #fff);
  border-top: 3px solid var(--note-accent, var(--primary));
  display: grid; gap: 0.4rem;
}
.note-title-input {
  width: 100%; border: none; border-bottom: 1px solid var(--line);
  background: transparent; font-size: 0.95rem; font-weight: 600;
  padding: 0 0 0.4rem; font-family: inherit; color: var(--text);
}
.note-title-input:focus { outline: none; border-bottom-color: var(--primary); }
.note-body-editor {
  background: transparent; border: none; resize: none;
  font-family: inherit; font-size: 0.9rem; color: var(--text); line-height: 1.6;
  width: 100%;
}
.note-body-editor:focus { outline: none; }
.note-card-footer { display: flex; justify-content: space-between; align-items: center; }
.note-footer-actions { display: flex; gap: 0.3rem; }
.note-saved-at { font-size: 0.72rem; color: var(--muted); }
.note-delete-btn { color: var(--danger); }

/* ─── SHOPPING LIST ─── */
.shopping-list { list-style: none; padding: 0; margin: 0 0 0.65rem; display: grid; gap: 0.3rem; max-height: 200px; overflow-y: auto; }
.shopping-item { display: flex; align-items: center; gap: 0.45rem; padding: 0.3rem 0.4rem; border-radius: var(--radius-sm); transition: opacity 0.2s; }
.shopping-item--done { opacity: 0.5; }
.shopping-item--done .shopping-name { text-decoration: line-through; color: var(--muted); }
.shopping-check-btn { width: 26px; height: 26px; flex-shrink: 0; background: none; border: none; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; }
.shopping-check-circle {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(212,118,10,0.4); display: block;
  transition: background 0.15s, border-color 0.15s; position: relative;
}
.shopping-check-circle--done { background: var(--accent); border-color: var(--accent); }
.shopping-check-circle--done::after {
  content: "✓"; position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 0.7rem; font-weight: 700;
}
.shopping-name { flex: 1; font-size: 0.88rem; color: var(--text-dim); }
.shopping-del-btn { width: 22px; height: 22px; border: none; background: none; cursor: pointer; color: var(--muted); display: flex; align-items: center; justify-content: center; border-radius: 50%; padding: 0; flex-shrink: 0; }
.shopping-del-btn:hover { color: var(--danger); background: rgba(192,57,43,0.08); }
.shopping-add-form { display: flex; gap: 0.4rem; }
.shopping-input { flex: 1; }

/* ─── HOME 2-COLUMN LAYOUT ─── */
.home-secondary-grid {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 1rem;
  align-items: start;
}
.home-col-left, .home-col-right {
  display: grid;
  gap: 1rem;
}
@media (max-width: 860px) {
  .home-secondary-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── QUICK ACTIONS DATA-ATTRIBUTE COLORS ─── */
[data-qa-action="date"] .quick-action-icon { background: rgba(13,155,138,0.12); color: var(--primary); }
[data-qa-action="weather"] .quick-action-icon { background: rgba(2,132,199,0.1); color: #0284c7; }
[data-qa-action="clock"] .quick-action-icon { background: rgba(124,58,237,0.1); color: #7c3aed; }
[data-qa-action="calc"] .quick-action-icon { background: rgba(26,140,88,0.12); color: var(--ok); }
[data-qa-action="shopping"] .quick-action-icon { background: rgba(212,118,10,0.1); color: var(--accent); }
[data-qa-action="dday"] .quick-action-icon { background: rgba(212,118,10,0.1); color: var(--accent); }
[data-qa-action="ai"] .quick-action-icon { background: rgba(124,58,237,0.1); color: #7c3aed; }
[data-qa-action="gmail"] .quick-action-icon { background: rgba(234,67,53,0.1); color: #ea4335; }
[data-qa-action="youtube"] .quick-action-icon { background: rgba(234,67,53,0.1); color: #ea4335; }
[data-qa-action="naver"] .quick-action-icon { background: rgba(3,199,90,0.1); color: #03c75a; }

/* ─── LIFE CALC ─── */
.lc-section { }
.lc-meta { font-size: 0.8rem; color: var(--muted); margin: 0; }
.lc-unit-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.lc-unit-tab {
  padding: 0.3rem 0.75rem; border-radius: 999px;
  border: 1px solid var(--panel-border); background: #fff;
  font-size: 0.82rem; cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.lc-unit-tab--active { background: var(--primary-glow); border-color: var(--primary); color: var(--primary); font-weight: 600; }
.lc-unit-input-area { display: grid; gap: 0.65rem; }
.lc-unit-input-row { display: flex; gap: 0.5rem; }
.lc-unit-value { flex: 1; }
.lc-unit-select {
  padding: 0.55rem 0.75rem; border: 1px solid var(--panel-border); border-radius: var(--radius-sm);
  background: #fff; font-size: 0.88rem; color: var(--text); cursor: pointer;
  font-family: inherit;
}
.lc-unit-results { display: grid; gap: 0.3rem; }
.lc-result-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.4rem 0.65rem; border-radius: var(--radius-sm); background: #f8fdfc;
  border: 1px solid var(--panel-border);
}
.lc-result-label { font-size: 0.86rem; color: var(--text-dim); }
.lc-result-value { font-family: "IBM Plex Mono", monospace; font-size: 0.9rem; font-weight: 600; color: var(--text); }
.lc-exchange-input { display: flex; gap: 0.5rem; margin-bottom: 0.65rem; }
.lc-exchange-amount { flex: 1; }
.lc-exchange-results { display: grid; gap: 0.3rem; }
.lc-cycle-status { margin-bottom: 0.75rem; }
.lc-cycle-chip {
  display: inline-flex; align-items: center; padding: 0.4rem 0.85rem;
  border-radius: 999px; border: 1px solid var(--panel-border); background: #fff;
  font-size: 0.88rem; font-weight: 500; margin-bottom: 0.5rem;
}
.lc-cycle-chip--active { background: rgba(212,118,10,0.08); border-color: var(--accent); color: var(--accent); }
.lc-cycle-chip--soon { background: rgba(13,155,138,0.08); border-color: var(--primary); color: var(--primary); }
.lc-cycle-info { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.84rem; color: var(--text-dim); }
.lc-cycle-actions { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.65rem; flex-wrap: wrap; }
.lc-cycle-history { display: grid; gap: 0.2rem; }
.lc-history-row { font-size: 0.82rem; color: var(--text-dim); padding: 0.2rem 0; }
.lc-expense-total { font-family: "IBM Plex Mono", monospace; font-size: 1.1rem; font-weight: 700; color: var(--accent); }
.lc-expense-list { list-style: none; padding: 0; margin: 0 0 0.75rem; display: grid; gap: 0.3rem; max-height: 220px; overflow-y: auto; }
.lc-expense-item {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.4rem 0.55rem; border-radius: var(--radius-sm); background: #f8fdfc;
  border: 1px solid var(--panel-border);
}
.lc-expense-cat-icon { font-size: 0.95rem; flex-shrink: 0; }
.lc-expense-name { flex: 1; font-size: 0.86rem; color: var(--text-dim); }
.lc-expense-amount { font-family: "IBM Plex Mono", monospace; font-size: 0.84rem; font-weight: 600; color: var(--text); flex-shrink: 0; }
.lc-expense-del { width: 20px; height: 20px; border: none; background: none; cursor: pointer; color: var(--muted); display: flex; align-items: center; justify-content: center; padding: 0; }
.lc-expense-del:hover { color: var(--danger); }
.lc-expense-form { display: grid; gap: 0.5rem; }
.lc-expense-cats { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.lc-cat-btn {
  padding: 0.28rem 0.65rem; border-radius: 999px;
  border: 1px solid var(--panel-border); background: #fff;
  font-size: 0.8rem; cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.lc-cat-btn--active { background: var(--primary-glow); border-color: var(--primary); color: var(--primary); font-weight: 600; }
.lc-expense-inputs { display: grid; grid-template-columns: 1fr 100px auto; gap: 0.35rem; }
.lc-expense-amount { font-family: "IBM Plex Mono", monospace; }

/* ─── APP SHELL & SIDEBAR ─── */
.app-shell {
  display: flex;
  min-height: 100dvh;
  position: relative;
}

.app-sidebar {
  display: none; /* 모바일 기본 숨김 */
}

@media (min-width: 1100px) {
  .app-shell {
    padding-left: 220px;
    transition: padding-left 0.3s var(--ease);
  }
  .app-shell:has(.app-sidebar.sidebar--collapsed) {
    padding-left: 60px;
  }
  .app-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 220px;
    min-width: 220px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    overflow-y: auto;
    background: var(--panel);
    border-right: 1px solid var(--panel-border);
    padding: 1.25rem 0.85rem;
    backdrop-filter: blur(16px);
    z-index: 20;
    transition: width 0.3s var(--ease), min-width 0.3s var(--ease);
  }
  .app-sidebar.sidebar--collapsed {
    width: 60px;
    min-width: 60px;
  }
  .app-sidebar.sidebar--collapsed .sidebar-name,
  .app-sidebar.sidebar--collapsed .sidebar-nav-label,
  .app-sidebar.sidebar--collapsed .sidebar-widget,
  .app-sidebar.sidebar--collapsed .sidebar-widgets {
    display: none;
  }
  .app-sidebar.sidebar--collapsed .sidebar-collapse-btn iconify-icon {
    transform: rotate(180deg);
  }
  .app {
    flex: 1;
    min-width: 0;
  }
}

.sidebar-brand {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0 0.25rem 0.75rem;
  border-bottom: 1px solid var(--line);
}
.sidebar-logo { font-size: 1.3rem; }
.sidebar-name { font-size: 0.95rem; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.sidebar-nav { display: flex; flex-direction: column; gap: 0.2rem; }
.sidebar-nav-btn {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.6rem; border-radius: var(--radius-sm);
  border: none; background: none; cursor: pointer;
  font-size: 0.88rem; color: var(--text-dim); font-family: inherit;
  width: 100%; text-align: left; transition: background 0.15s, color 0.15s;
}
.sidebar-nav-btn:hover { background: var(--primary-glow); color: var(--primary); }
.sidebar-nav-btn--active { background: var(--primary-glow); color: var(--primary); font-weight: 600; }
.sidebar-widgets { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.sidebar-widget {
  background: rgba(255,255,255,0.6); border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm); padding: 0.6rem 0.75rem;
}
.sidebar-widget-label { font-size: 0.72rem; color: var(--muted); margin: 0 0 0.25rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.sidebar-clock { text-align: center; padding: 0.75rem; }
.sidebar-clock-time { display: block; font-family: "IBM Plex Mono", monospace; font-size: 1.4rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.sidebar-clock-date { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 0.1rem; }
.sidebar-dday-text { font-size: 0.88rem; color: var(--text); font-weight: 600; }
.sidebar-habit-progress { font-size: 0.88rem; color: var(--primary); font-weight: 600; }
.sidebar-habit-list { list-style: none; margin: 0.25rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.sidebar-habit-item { display: flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; color: var(--text); }
.sidebar-habit-item--done { opacity: 0.5; text-decoration: line-through; }
.sidebar-habit-item--all-done { color: var(--primary); font-size: 0.75rem; opacity: 0.85; }
.sidebar-habit-check { margin-left: auto; color: var(--primary); font-size: 0.75rem; }
.sidebar-todo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.sidebar-todo-item { font-size: 0.8rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0.1rem 0; }
.sidebar-todo-item::before { content: "•"; margin-right: 0.35rem; color: var(--primary); }
.sidebar-todo-empty { color: var(--muted); font-style: italic; }
.sidebar-todo-empty::before { display: none; }
.sidebar-big3-num { font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; font-weight: 700; color: var(--primary); margin-right: 0.3rem; }
.sidebar-widget-sublabel { font-size: 0.68rem; color: var(--muted); margin: 0.5rem 0 0.2rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.sidebar-fav-item { cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.sidebar-fav-item:hover { color: var(--primary); }
#sidebarFavoritesList { gap: 0.08rem; }
#sidebarFavoritesList .sidebar-todo-item { font-size: 0.7rem; padding: 0; line-height: 1.35; }
#sidebarFavoritesList .sidebar-todo-item::before { display: none; }
.sidebar-expense-total { font-family: "IBM Plex Mono", monospace; font-size: 1rem; font-weight: 700; color: var(--accent); }
.lc-expense-header-right { display: flex; align-items: center; gap: 0.5rem; }
.sidebar-collapse-btn {
  margin-top: auto; width: 100%; padding: 0.45rem;
  border: 1px solid var(--panel-border); border-radius: var(--radius-sm);
  background: #fff; cursor: pointer; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.sidebar-collapse-btn:hover { background: var(--primary-glow); color: var(--primary); }

/* ─── QUICK DRAWER ─── */
.quick-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: auto;
  max-height: 85dvh;
  background: var(--panel);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--panel-border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -8px 40px rgba(14, 80, 70, 0.18);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s var(--ease);
  overflow: hidden;
}
.quick-drawer--open {
  transform: translateY(0);
}
@media (min-width: 700px) {
  .quick-drawer {
    left: auto;
    top: 0;
    bottom: 0;
    right: 0;
    width: min(380px, 45vw);
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
    border-top: none;
    border-left: 1px solid var(--panel-border);
    transform: translateX(100%);
  }
  .quick-drawer--open {
    transform: translateX(0);
  }
}
.quick-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
/* 모바일 드래그 핸들 */
.quick-drawer-header::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: var(--muted);
  opacity: 0.4;
}
@media (min-width: 700px) {
  .quick-drawer-header::before { display: none; }
}
.quick-drawer-title { font-size: 1rem; font-weight: 700; color: var(--text); }
.quick-drawer-close {
  width: 32px; height: 32px; border: none; background: none;
  cursor: pointer; color: var(--muted); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.quick-drawer-close:hover { background: var(--primary-glow); color: var(--primary); }
.quick-drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(15, 40, 38, 0.18);
  backdrop-filter: blur(2px);
}

/* ─── SCROLL TO TOP ─── */
.scroll-top-btn {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  z-index: 150;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(13, 155, 138, 0.35);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}
.scroll-top-btn:not([hidden]) {
  pointer-events: auto;
}
.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-top-btn:hover {
  background: var(--primary-dark, #0b8577);
  box-shadow: 0 6px 18px rgba(13, 155, 138, 0.45);
}
