/* 「我的提醒」 feed: one card per shared event, colour by filing direction, unread by Ducky's record clock. */
.alert-feed{max-width:760px;}
/* The simulation page lays its cards out by width (perf-chart container queries): let it use the whole route column. */
.alert-feed:has(.perf-page){max-width:none;}
.alert-feed-head{align-items:flex-start;gap:12px;flex-wrap:wrap;}
.alert-feed-head .view-intro{margin:4px 0 0;max-width:620px;}
.alert-feed-actions{display:flex;align-items:center;gap:8px;margin-left:auto;}
.alert-unread-chip{background:var(--accent);color:var(--accent-ink,#fff);border-color:transparent;}
.alert-tabs{display:flex;gap:6px;margin:14px 0 12px;}
.alert-tabs button{min-height:36px;padding:0 14px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--text);font:inherit;font-size:14px;cursor:pointer;}
.alert-tabs button[aria-selected=true]{background:var(--accent);color:var(--accent-ink,#fff);border-color:var(--accent);}
.alert-filters{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 16px;}
.alert-filters button{min-height:32px;padding:0 12px;border:1px solid var(--border);border-radius:999px;background:transparent;color:var(--muted);font:inherit;font-size:13px;cursor:pointer;}
.alert-filters button[aria-pressed=true]{color:var(--text);border-color:var(--text);}
.alert-day{margin:20px 0 8px;font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);}
.alert-day:first-child{margin-top:4px;}
.alert-item{position:relative;padding:14px 16px 12px 20px;margin:0 0 10px;border:1px solid var(--border);border-radius:12px;background:var(--surface);}
.alert-item::before{content:"";position:absolute;left:0;top:12px;bottom:12px;width:4px;border-radius:0 4px 4px 0;background:var(--border);}
.alert-item.is-buy::before{background:var(--bull);}
.alert-item.is-sell::before{background:var(--bear);}
.alert-item.is-unread{border-color:color-mix(in srgb,var(--accent) 45%,var(--border));}
.alert-item.is-superseded{opacity:.72;}
.alert-item-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;color:var(--muted);}
.alert-ticker{font-weight:600;color:var(--text);text-decoration:none;}
.alert-ticker:hover{text-decoration:underline;}
.alert-direction{font-weight:600;}
.alert-item.is-buy .alert-direction{color:var(--bull);}
.alert-item.is-sell .alert-direction{color:var(--bear);}
.alert-time{margin-left:auto;font-variant-numeric:tabular-nums;}
.alert-unread{width:8px;height:8px;border-radius:50%;background:var(--accent);}
.alert-headline{margin:6px 0 4px;font-size:16px;line-height:1.5;font-weight:600;}
.alert-summary{margin:0 0 8px;font-size:14px;line-height:1.65;}
.alert-badges{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 8px;}
.alert-badge{font-size:11px;line-height:1.6;padding:1px 8px;border:1px solid var(--border);border-radius:999px;color:var(--muted);}
.alert-note{margin:4px 0 2px;}
.alert-note>summary{display:flex;align-items:center;min-height:32px;cursor:pointer;font-size:13px;color:var(--accent-text,var(--accent));list-style:none;}
.alert-note>summary::-webkit-details-marker{display:none;}
.alert-note>summary::before{content:"▸";margin-right:6px;font-size:11px;}
.alert-note[open]>summary::before{content:"▾";}
.alert-note-facts{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:4px 14px;margin:8px 0 4px;font-size:13px;line-height:1.55;}
.alert-note-facts dt{color:var(--muted);}
.alert-note-facts dd{margin:0;overflow-wrap:anywhere;}
.alert-note h4{margin:10px 0 4px;font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);}
.alert-note ul{margin:0;padding-left:18px;font-size:13px;line-height:1.6;}
.alert-note p{margin:0;font-size:13px;line-height:1.6;}
.alert-links{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px;}
.alert-rollout{margin:0 0 12px;}
.alert-empty{padding:28px 20px;text-align:center;border:1px dashed var(--border);border-radius:12px;color:var(--muted);}
.alert-empty p{margin:0 0 12px;}
.alert-more{width:100%;margin:6px 0 20px;}
.app-nav a[data-route=alerts]{position:relative;}
.nav-badge{position:absolute;top:4px;left:calc(50% + 6px);min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--accent);color:var(--accent-ink,#fff);font-size:11px;font-weight:600;line-height:18px;text-align:center;}
@media(max-width:600px){
 .alert-item{padding:12px 12px 10px 16px;}
 .alert-note-facts{grid-template-columns:1fr;gap:2px;}
 .alert-note-facts dd{margin-bottom:6px;}
 .alert-feed-actions{margin-left:0;}
 .nav-badge{top:2px;left:calc(50% + 4px);}
}
/* "Since alert" (owner 2026-10-06): private reader view, next regular open to latest close. */
.alert-since{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;margin:6px 0;font-variant-numeric:tabular-nums}
.alert-since-label,.alert-since-from,.alert-since-spy{font-size:12px;color:var(--muted)}
.return-badge{font-weight:700;white-space:nowrap}.return-up{color:var(--pos,#16a34a)}.return-down{color:var(--neg,#dc2626)}.return-flat{color:var(--muted)}
/* Private alert simulation (owner 2026-10-06). */
.alert-sim{display:grid;gap:12px;min-width:0}.alert-sim.sim-loading{opacity:.6}
.sim-head{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}.sim-head h2{margin:0;font-size:18px}
.sim-controls{display:flex;gap:16px;flex-wrap:wrap}.sim-chips{display:flex;gap:6px;flex-wrap:wrap}.sim-chips [aria-pressed=true]{border-color:var(--accent);color:var(--accent-text,var(--accent));font-weight:700}
.sim-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
.sim-tile{display:grid;gap:2px;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}
.sim-tile-label,.sim-tile-note{font-size:12px;color:var(--muted)}.sim-tile-value{font-size:20px;font-variant-numeric:tabular-nums}
.sim-figure{margin:0;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}
.sim-curve{display:block;width:100%;height:auto}.sim-axis{font-size:11px;fill:var(--muted)}
.sim-line-nav{stroke:var(--accent);stroke-width:2}.sim-line-spy{stroke:var(--muted);stroke-width:1.5;stroke-dasharray:3 3}
.sim-legend{display:flex;gap:16px;font-size:12px;color:var(--muted);margin-bottom:6px}
.sim-key:before{content:'';display:inline-block;width:14px;height:2px;margin-right:6px;vertical-align:middle;background:var(--accent)}
.sim-key-spy:before{background:var(--muted)}
.sim-positions{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.sim-position{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto auto;gap:10px;align-items:center;min-height:44px;padding:4px 8px;border-radius:10px;font-variant-numeric:tabular-nums}
.sim-position:nth-child(odd){background:var(--bg-2)}
.sim-kind,.sim-when,.sim-status{font-size:13px}.sim-status{color:var(--muted)}
.ticker-chip{display:inline-flex;align-items:center;min-height:32px;padding:2px 10px;border:1px solid var(--border);border-radius:8px;font-weight:700;color:var(--text);text-decoration:none;background:var(--surface)}
.sim-method{font-size:12px;color:var(--muted)}
@media(max-width:560px){.sim-position{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:'tk kind ret' 'tk when status'}
  .sim-position .ticker-chip{grid-area:tk}.sim-kind{grid-area:kind}.sim-when{grid-area:when}.sim-status{grid-area:status;justify-self:end}.sim-position .return-badge,.sim-position>.muted{grid-area:ret;justify-self:end}}
