/* ClockIn: assets/reminders/reminders.css. Part of what was style.css (split in 1.42.2, rules moved as is). The load order in index.html matters: see CLAUDE.md */
/* ============================================================
   REMINDER RULES AND THE ALERT CARD (0.9.3)
   ============================================================ */
/* Fields under a rule's switch, lined up under the switch's text. */
.rule-fields { margin: 0 0 var(--space-3) 58px; }
.rule-fields.is-off { opacity: 0.5; }
/* A dependent switch that sits level with the switch it depends on, not
   indented under it (1.36.2, Achievement Alerts). */
.rule-fields.rule-flat { margin-left: 0; }
.field-row { margin: var(--space-2) 0 0; }
.field-label { flex: none; width: 128px; }
.field-row input[type="number"], .field-row input[type="time"] {
  box-sizing: border-box;
  width: 84px;
  height: var(--btn-h-sm);
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--surface);
  font: inherit;
}
.field-row input[type="time"] { width: 116px; }
/* Work Limits hours field (1.27.0): a text field so 7:30 and 7h 30m can be typed. */
.field-row input.limit-hours-input {
  box-sizing: border-box;
  width: 116px;
  height: var(--btn-h-sm);
  padding: 0 8px;
  margin-right: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--surface);
  font: inherit;
}
.field-row input[type="number"] + .field-unit { margin-right: var(--space-3); }
.field-unit { color: var(--text-muted); }
.day-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.day-chip {
  box-sizing: border-box;
  height: var(--btn-h-sm);
  min-width: 46px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
}
.day-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent-strong); font-weight: var(--weight-bold); }
.day-chip:disabled { cursor: default; }

/* Below the sticky timer bar, so the project, tag and description fields
   stay usable (Stop can be refused until a required field is filled).
   Above modals (20) and below notifications (1000). */
.alert-card {
  position: fixed;
  top: 164px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  box-sizing: border-box;
  width: min(520px, calc(100vw - 32px));
  padding: var(--space-5);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid rgba(127, 127, 127, 0.28);
  border-left: 6px solid var(--warning);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop), 0 16px 40px rgba(0, 0, 0, 0.18);
}
.alert-card.hidden { display: none; }
/* The X in the corner (2.24.0): closes the card like its "leave it be" button.
   The first line leaves room for it. */
.alert-card-close { position: absolute; top: var(--space-2); right: var(--space-2); }
#alert-card-lines { padding-right: var(--space-6); }
.alert-card-item + .alert-card-item { margin-top: var(--space-3); }
.alert-card-title { font-size: var(--font-size-md); font-weight: var(--weight-bold); line-height: var(--line-height-heading); }
.alert-card-msg { margin-top: var(--space-1); font-size: var(--font-size-base); color: var(--ink-light); overflow-wrap: anywhere; }
.alert-card-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }

/* The "timer left running" window (0.9.4) uses the same card: a stack of
   choices, then Keep running. */
.alert-card { max-height: calc(100vh - 188px); overflow-y: auto; }
.alert-card-label { margin-top: var(--space-4); font-size: var(--font-size-base); color: var(--text-muted); }
/* The "Preview" line at the top of a preview card (Settings > Dev). */
#alert-card-lines > .alert-card-label { margin: 0 0 var(--space-3); font-weight: 600; }
.alert-card-actions.stacked { flex-direction: column; align-items: stretch; margin-top: var(--space-2); }
.alert-card-actions.stacked .btn-secondary { justify-content: flex-start; }
.alert-card-actions.stacked .open-check-keep { justify-content: center; margin-top: var(--space-2); }
.open-check-custom { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.open-check-custom.hidden { display: none; }
.open-check-custom input[type="datetime-local"] {
  box-sizing: border-box;
  height: var(--btn-h-md);
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--surface);
  font: inherit;
}

.modal-card label.hidden { display: none; }


/* ============================================================
   1.33.0: DO NOT DISTURB
   The header button is an .icon-btn (32 x 32). Its moon is the one icon
   allowed to break the 18px glyph rule (1.36.0): a solid 22px glyph with
   no outline, so it reads at a glance (a bell with a slash since 1.36.3).
   Off: the moon in the header text color at 40% (like the version
   number); stronger on hover.
   On: the moon turns purple (--dnd-on, the same in every theme) at full
   strength.
   No global .hidden rule: the offer's preview line has its own.
   ============================================================ */
:root { --dnd-on: #8B5CF6; }
.dnd-btn, .dnd-btn:hover, .dnd-btn:focus-visible { color: var(--chrome-fg); }
/* 1.36.3: a solid bell with a slash (the moon is the Dark icon). The whole
   glyph fades together; on, it turns purple. */
.dnd-btn svg { opacity: 0.4; transition: opacity 150ms ease; }
.dnd-btn .dnd-shape { fill: currentColor; stroke: none; }
.dnd-btn .dnd-slash { stroke: currentColor; fill: none; }
.dnd-btn:hover svg, .dnd-btn:focus-visible svg { opacity: 0.8; }
.dnd-btn.is-on, .dnd-btn.is-on:hover, .dnd-btn.is-on:focus-visible { color: var(--dnd-on); }
.dnd-btn.is-on svg { opacity: 1; }
.dnd-offer-card { max-width: 460px; }

/* ---- Notification messages (Settings > Dev, 1.52.0) ----
   notice-gallery.js draws the cards. Each card flips (click) from the
   serious message to the silly one. Both faces sit in one grid cell, so
   the card is as tall as the longer one. Headings reuse the Achievements
   .ach-cat-head. */
.notice-toolbar { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.notice-section { margin-top: var(--space-6, 32px); }
.notice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-3);
}
@media (max-width: 720px) { .notice-grid { grid-template-columns: minmax(0, 1fr); } }
.notice-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: box-shadow 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.notice-card:hover { border-color: var(--line-raised, var(--ink-light)); box-shadow: var(--shadow-card); transform: translateY(-1px); }
.notice-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.notice-card.is-flipped { border-color: var(--accent); }
.notice-name { font-weight: var(--weight-bold); line-height: var(--line-height-heading); }
.notice-where { display: flex; flex-wrap: wrap; gap: 4px; }
.notice-chip {
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  background: var(--paper-raised, rgba(127, 127, 127, 0.12));
  border: 1px solid var(--line);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}
.notice-flip { perspective: 1200px; }
.notice-inner { display: grid; transition: transform 450ms ease; transform-style: preserve-3d; }
.notice-card.is-flipped .notice-inner { transform: rotateY(180deg); }
.notice-face {
  grid-area: 1 / 1;
  min-width: 0;
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
  border-left: 4px solid var(--warning);
  border-radius: var(--radius-sm);
  background: var(--paper-raised, var(--surface));
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.notice-back { transform: rotateY(180deg); border-left-color: var(--accent); }
.notice-side {
  display: inline-block;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.notice-back .notice-side { color: var(--accent); font-weight: var(--weight-bold); }
.notice-line + .notice-line { margin-top: var(--space-3); }
.notice-title { font-weight: var(--weight-bold); line-height: var(--line-height-heading); }
.notice-body { margin-top: 2px; font-size: var(--font-size-sm); color: var(--ink-light); overflow-wrap: anywhere; }
.notice-label { margin-top: var(--space-3); font-size: var(--font-size-sm); color: var(--text-muted); }
.notice-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-3); }
/* Look-alike buttons (spans, so the whole card is the click target). */
.notice-btns .notice-btn { height: 30px; padding: 0 12px; font-size: var(--font-size-sm); pointer-events: none; white-space: normal; text-align: left; line-height: 1.2; }
.notice-no-btns { margin-top: var(--space-3); font-size: var(--font-size-xs); color: var(--text-muted); font-style: italic; }
.notice-when { font-size: var(--font-size-xs); color: var(--text-muted); }
@media (prefers-reduced-motion: reduce) { .notice-inner { transition: none; } }
