/* Agape Note — the product's own pages inside the Agapetec Signature shell (admin.css is the shell, unchanged).
   Tokens from the design build spec: page #f3f6fb / #0b1524, cards #fff / #0f1c2f with #dde5ef / #20344f borders,
   10px radius, action blue #1557e6. */
html[data-page="note"] {
  --bg: #f3f6fb; --card: #ffffff; --line: #dde5ef; --ink: #13233a; --soft: #52647a; --faint: #eef3fa;
  --blue: #1557e6; --blue-ink: #ffffff; --blue-soft: #e8f0fe; --blue-line: #c4d7f8; --link: #1557e6;
  --ok: #157f3d; --ok-bg: #e3f5e9; --warn: #8a5a00; --warn-bg: #fff2d6; --bad: #b42318; --bad-bg: #fde7e5;
}
html[data-page="note"][data-theme="dark"] {
  --bg: #0b1524; --card: #0f1c2f; --line: #20344f; --ink: #eef3fa; --soft: #b3c0d2; --faint: #13233a;
  --blue: #2f7bf5; --blue-ink: #ffffff; --blue-soft: #16294a; --blue-line: #2d4c7c; --link: #8fbcff;
  --ok: #6fe0a0; --ok-bg: #123524; --warn: #ffd27a; --warn-bg: #3a2c0c; --bad: #ff9b91; --bad-bg: #3d1714;
}
html[data-page="note"] body, html[data-page="note"] .admin-main { background: var(--bg); }
html[data-page="note"] .admin-content { color: var(--ink); font-family: Inter, system-ui, sans-serif; max-width: 1600px; margin: 0 auto; width: 100%; box-sizing: border-box; padding: 14px 34px 24px; }

/* The logo sits at the left end of the top bar (admin.css .at-brand), as in the admin portal. */

/* The workspace card in the top bar (the admin portal's client card position). */
.an-ws { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin: 0 auto; padding: 8px 14px; border: 1px solid var(--sh-field-line); border-radius: 10px; background: var(--sh-field); color: var(--sh-text); font: inherit; cursor: pointer; text-align: left; }
.an-ws b { font-size: 13.5px; } .an-ws b i { font-style: normal; font-size: 11px; opacity: .7; } .an-ws span { font-size: 11.5px; color: var(--sh-muted); }

/* Page head */
.an-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 0 12px; }
.an-head small { display: block; color: var(--link); font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.an-head h1 { margin: 2px 0 4px; font-size: 24px; line-height: 1.2; color: var(--ink); }
.an-head p { margin: 0; color: var(--soft); font-size: 13.5px; }

/* Tabs keep devmgmt.css; they sit under the head once per page. */
html[data-page="note"] .dmx-tabs { margin-bottom: 12px; }

/* What to do */
.an-wtd { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 11px 14px; margin-bottom: 12px; border: 1px solid var(--blue-line); border-radius: 10px; background: var(--blue-soft); font-size: 13px; color: var(--ink); }
.an-wtd > b { color: var(--link); font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; }
.an-wtd span { display: inline-flex; align-items: center; gap: 8px; }
.an-wtd i { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--blue); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; }

/* Notices inside the page (no full-page warnings) */
.an-notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 14px; margin-bottom: 12px; border-radius: 10px; border: 1px solid; font-size: 13.5px; }
.an-notice.an-info { background: var(--blue-soft); border-color: var(--blue-line); }
.an-notice.an-warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 35%, transparent); color: var(--ink); }
.an-notice.an-bad { background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 35%, transparent); color: var(--ink); }
.an-notice.an-ok { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 35%, transparent); color: var(--ink); }

/* Cards and grids */
.an-grid { display: grid; gap: 12px; margin-bottom: 12px; }
.an-g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .an-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.an-g2 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } .an-g11 { grid-template-columns: 1fr 1fr; }
@media (max-width: 1100px) { .an-g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .an-g3, .an-g2, .an-g11 { grid-template-columns: 1fr; } }
.an-card { position: relative; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); box-sizing: border-box; }
.an-card + .an-card { margin-top: 12px; } .an-grid > .an-card + .an-card { margin-top: 0; }
.an-card h2 { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; font-size: 15px; }
.an-card h3 { margin: 0 0 8px; font-size: 14px; }
.an-stat small { display: block; color: var(--soft); font-size: 12px; }
.an-stat b { display: block; margin: 6px 0 4px; font-size: 26px; line-height: 1.1; }
.an-stat span { color: var(--soft); font-size: 11.5px; }
.an-muted { color: var(--soft); font-size: 12.5px; }
.an-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }

/* Buttons: always on the right of their card */
.an-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border: 1px solid var(--blue); border-radius: 8px; background: var(--blue); color: var(--blue-ink) !important; font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.an-btn:hover { filter: brightness(1.08); }
.an-btn.an-quiet { background: var(--card); color: var(--link) !important; border-color: var(--blue-line); }

/* Fields */
.an-field { display: block; margin-bottom: 12px; }
.an-field > span { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 700; color: var(--ink); }
.an-input, .an-field input, .an-field select, .an-field textarea { width: 100%; box-sizing: border-box; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--faint); color: var(--ink); font: inherit; font-size: 13.5px; }
.an-field textarea { height: 80px; padding: 8px 12px; resize: vertical; }
.an-row { display: flex; gap: 10px; align-items: center; } .an-row > .an-input { flex: 1; }

/* Pills and time links */
.an-pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.an-pill.an-ok { background: var(--ok-bg); color: var(--ok); } .an-pill.an-warn { background: var(--warn-bg); color: var(--warn); }
.an-pill.an-bad { background: var(--bad-bg); color: var(--bad); } .an-pill.an-info { background: var(--blue-soft); color: var(--link); }
.an-at { display: inline-block; margin-left: 6px; padding: 1px 7px; border: 1px solid var(--blue-line); border-radius: 6px; background: var(--blue-soft); color: var(--link) !important; font-size: 11.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }

/* Lists and tables */
.an-list { margin: 0; padding: 0; list-style: none; }
.an-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.an-list li:last-child { border-bottom: 0; }
.an-list b { display: block; font-size: 13.5px; } .an-list small { color: var(--soft); font-size: 12px; }
.an-list a { color: inherit; text-decoration: none; } .an-list a:hover b { color: var(--link); }
.an-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.an-table th { text-align: left; padding: 10px; font-size: 11.5px; color: var(--soft); background: var(--faint); border-bottom: 1px solid var(--line); }
.an-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); }
.an-table tr:hover td { background: var(--faint); }
.an-table a { color: var(--ink); font-weight: 600; text-decoration: none; } .an-table a:hover { color: var(--link); }
.an-empty { padding: 40px 10px; text-align: center; color: var(--soft); }
.an-empty b { display: block; margin-bottom: 6px; color: var(--ink); font-size: 15px; }

/* Progress */
.an-bar { height: 8px; border-radius: 99px; background: var(--faint); overflow: hidden; margin: 8px 0 6px; }
.an-bar i { display: block; height: 100%; background: var(--blue); border-radius: 99px; }

/* Player */
.an-player { display: flex; align-items: center; gap: 16px; }
.an-play { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--blue); color: #fff; cursor: pointer; }
.an-play svg { width: 20px; height: 20px; }
.an-wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 52px; cursor: pointer; }
.an-wave i { flex: 1; min-width: 2px; border-radius: 2px; background: var(--blue-line); }
.an-wave i.on { background: var(--blue); }
.an-time { flex: none; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.an-speed { display: flex; gap: 4px; } .an-speed button { border: 1px solid var(--line); background: var(--card); color: var(--soft); border-radius: 6px; padding: 3px 7px; font: inherit; font-size: 11.5px; cursor: pointer; }
.an-speed button[aria-pressed="true"] { color: var(--link); border-color: var(--blue-line); background: var(--blue-soft); }

/* Transcript */
.an-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.an-line b { font-size: 13px; } .an-line p { margin: 2px 0 0; font-size: 13.5px; }
.an-line p[dir="rtl"] { text-align: right; font-size: 15px; }
.an-line .an-tools { display: flex; gap: 6px; align-items: start; }
.an-line .an-tools button { border: 1px solid var(--line); background: var(--card); color: var(--soft); border-radius: 6px; padding: 3px 8px; font: inherit; font-size: 11.5px; cursor: pointer; }

/* Board */
.an-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.an-col { display: flex; flex-direction: column; gap: 10px; }
.an-task { padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--faint); }
.an-task b { display: block; font-size: 13.5px; } .an-task small { display: block; margin: 4px 0 8px; color: var(--soft); font-size: 12px; }

/* Choice rows (AI provider) */
.an-choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
.an-choice.off { opacity: .6; } .an-choice b { font-size: 15px; } .an-choice small { display: block; color: var(--soft); font-size: 12px; }
.an-choice input { width: 18px; height: 18px; }

/* Right panel inside a page (Ask about this meeting) */
.an-side { position: sticky; top: 12px; }
.an-chat p { margin: 0 0 10px; padding: 10px 12px; border-radius: 9px; background: var(--faint); font-size: 13px; }
.an-chat p.me { background: var(--blue-soft); }
.an-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.an-chips button { border: 1px solid var(--blue-line); background: var(--card); color: var(--link); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12px; cursor: pointer; }

/* Help panel (right, starts closed) */
.an-help { position: fixed; top: 64px; right: 62px; bottom: 16px; width: 320px; z-index: 80; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); box-shadow: 0 14px 34px rgba(21,44,72,.2); overflow: auto; }
.an-help[hidden] { display: none; }
.an-help-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.an-x { border: 0; background: none; color: var(--soft); font-size: 20px; cursor: pointer; }

/* Pages before sign-in: no app layout, a centred card */
.an-pre { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; box-sizing: border-box; background: var(--bg); font-family: Inter, system-ui, sans-serif; color: var(--ink); }
.an-pre .an-card { width: min(460px, 100%); padding: 28px; }
.an-pre .an-logo { display: block; width: 240px; max-width: 80%; margin: 0 auto 18px; }
.an-pre h1 { margin: 0 0 6px; font-size: 22px; text-align: center; } .an-pre .an-sub { margin: 0 0 18px; text-align: center; color: var(--soft); font-size: 13.5px; }
.an-pre .an-btn { width: 100%; margin-bottom: 8px; }
.an-steps { display: flex; justify-content: center; gap: 6px; margin-bottom: 16px; } .an-steps i { width: 26px; height: 4px; border-radius: 4px; background: var(--line); } .an-steps i.on { background: var(--blue); }
.an-check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; font-size: 13.5px; } .an-check input { margin-top: 2px; }
.an-line > .an-at { align-self: start; margin-left: 0; text-align: center; }
.an-board > .an-card + .an-card { margin-top: 0; }
/* Logo: the light lockup on the light top bar, the round-2 dark lockup (light-grey lettering) in dark mode. */
.at-brand .an-logo-dark { display: none; }
html[data-theme="dark"] .at-brand .an-logo-light { display: none; }
html[data-theme="dark"] .at-brand .an-logo-dark { display: block; }
.an-head-actions { display: flex; gap: 10px; align-items: center; }
.an-pre .an-logo-dark { display: none; } html[data-theme="dark"] .an-pre .an-logo-light { display: none; } html[data-theme="dark"] .an-pre .an-logo-dark { display: block; }
.an-subtabs .dmx-tabs { border-bottom: 0; margin-top: -6px; } .an-subtabs .dmx-tabs a { height: 30px; line-height: 28px; font-size: 12.5px; }
.an-pre .an-card .an-card .an-btn { width: auto; } .an-pre .an-actions .an-btn { width: auto; min-width: 180px; }
/* Settings: the menu beside each setting page (the AgapeMSP Settings rail, .sh-rail, with links). */
.an-setrail { gap: 1px; }
.an-setrail a, .an-setrail span.off { display: flex; align-items: center; gap: 10px; border-radius: 9px; padding: 8px 10px; font-size: 13.5px; font-weight: 600; color: var(--soft); text-decoration: none; }
.an-setrail a svg, .an-setrail span.off svg { color: var(--blue); flex: none; width: 18px; height: 18px; }
.an-setrail a:hover { background: var(--hover); } .an-setrail a.on { background: var(--tile); color: var(--blue); }
.an-setrail span.off { opacity: .5; cursor: default; }
.an-setgroup { margin: 12px 10px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--quiet); }
.an-setmain > .an-card + .an-card, .an-setmain .an-card { margin-top: 0; }
.an-btn[hidden], .an-card[hidden], section[hidden] { display: none !important; }
.rr-bell { position: relative; border: 0; background: none; color: inherit; cursor: pointer; }
.an-badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: #d92d20; color: #fff; font-size: 10px; font-style: normal; font-weight: 700; line-height: 16px; box-sizing: border-box; }
.an-unread b::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); margin-right: 6px; vertical-align: middle; }
.an-star { border: 0; background: none; font-size: 18px; line-height: 1; color: var(--muted, #8a94a6); cursor: pointer; padding: 0 2px; }
.an-star.on { color: #e2a400; }
tr.an-editrow td { background: var(--blue-soft, #f3f7fd); }
.an-col.an-drop { outline: 2px dashed var(--link, #086ad8); outline-offset: -4px; }
.an-taskcard[draggable="true"] { cursor: grab; }

.an-req { color: var(--bad); font-weight: 800; }
