/* Numen dashboard — product surface */
#screen-app { background: var(--oat); }
.app-bar {
  display: flex; align-items: center; gap: 22px; height: 66px; padding: 0 36px;
  background: var(--cream); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.app-bar .ab-logo { width: 92px; }
.app-bar .ab-logo svg { width: 100%; height: auto; display: block; }
.app-bar .ab-status { display: inline-flex; align-items: center; gap: 9px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fig); white-space: nowrap; }
.app-bar .ab-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
body[data-motion="1"] .app-bar .ab-status i { animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 0%,100% { box-shadow: 0 0 0 0 rgba(201,111,74,.5); } 50% { box-shadow: 0 0 0 6px rgba(201,111,74,0); } }
.app-bar .ab-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.app-bar .ab-user { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.app-bar .ab-user i {
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep);
  display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 14px; font-weight: 700;
}

.app-main { max-width: 1180px; margin: 0 auto; padding: 46px 40px 110px; }
.app-greet { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 34px; flex-wrap: wrap; }
.app-greet h1 { font-family: 'Newsreader', serif; font-weight: 500; font-size: 40px; letter-spacing: -.01em; margin: 0 0 6px; }
.app-greet p { margin: 0; color: var(--text-3); font-size: 14px; }
.agent-contact { text-align: right; }
.agent-contact small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.contact-row { display: flex; gap: 8px; }
.contact-chip {
  appearance: none; cursor: pointer; font-family: 'Karla', sans-serif; font-weight: 600; font-size: 13px;
  color: var(--ink); background: var(--cream); border: 1.5px solid var(--clay); border-radius: 99px;
  padding: 8px 15px; white-space: nowrap;
  transition: border-color .18s, transform .22s var(--spring);
}
.contact-chip:hover { border-color: var(--accent); color: var(--accent-deep); transform: translateY(-1px); }
.contact-chip:active { transform: scale(.96); }
.contact-chip:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }

.app-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.span7 { grid-column: span 7; }
.span5 { grid-column: span 5; }
.span4 { grid-column: span 4; }
.app-card {
  background: var(--cream); border: 1px solid var(--border); border-radius: 20px;
  box-shadow: var(--shadow); padding: 24px 26px;
}
.app-card .ac-label { margin: 0 0 16px; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); display: flex; align-items: center; gap: 8px; }
.live-dot { width: 6.5px; height: 6.5px; border-radius: 50%; background: var(--accent); display: inline-block; }
body[data-motion="1"] .live-dot { animation: breathe 3.2s ease-in-out infinite; }

/* skeletons */
.skel { border-radius: 8px; background: var(--border); position: relative; overflow: hidden; margin-bottom: 12px; }
body[data-motion="1"] .skel::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--cream) 70%, transparent), transparent);
  animation: shimmer 1.1s linear infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* today feed */
.brief-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; padding: 13px 0; border-top: 1px solid var(--border); align-items: baseline; }
.brief-row:first-child { border-top: none; }
.brief-row .t { font-size: 12px; color: var(--text-3); font-weight: 600; line-height: 1.4; }
.brief-row .t b { display: block; color: var(--text-2); font-size: 12.5px; }
.brief-row .what { font-size: 15px; color: var(--text-2); }
.brief-row .what strong { color: var(--ink); font-weight: 600; }
.brief-row .st { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; white-space: nowrap; }
.brief-row .st.ok { color: var(--accent-deep); }
.brief-row .st.dim { color: var(--text-3); }
.brief-act { grid-column: 2 / -1; }
.appr { display: none; background: var(--oat); border-radius: 14px; padding: 16px 18px; margin-top: 10px; }
.appr.open { display: block; }
.appr .excerpt { font-family: 'Newsreader', serif; font-size: 15.5px; line-height: 1.55; color: var(--text-2); font-style: italic; margin: 0 0 14px; }
.appr .appr-row { display: flex; gap: 10px; flex-wrap: wrap; }
.read-link {
  appearance: none; background: none; border: none; cursor: pointer; padding: 0;
  font-family: 'Karla', sans-serif; font-weight: 700; font-size: 13px; color: var(--accent-deep);
}
.read-link:hover { text-decoration: underline; }
.read-link:focus-visible { outline: none; border-radius: 4px; box-shadow: 0 0 0 3px var(--accent-soft); }

/* presence + behavior */
.presence { text-align: center; }
.presence .pr-glyph { width: 88px; margin: 2px auto 12px; }
.presence .pr-glyph svg { width: 100%; height: auto; display: block; overflow: visible; }
.presence .pr-name { font-family: 'Newsreader', serif; font-weight: 500; font-size: 22px; display: block; }
.presence .pr-line { font-size: 12.5px; color: var(--text-3); margin: 4px 0 18px; }
.behavior { text-align: left; border-top: 1px solid var(--border); padding-top: 6px; }
.bh-row { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; padding: 9px 0; }
.bh-row label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fig); }
.nselect {
  width: 100%; font-family: 'Karla', sans-serif; font-weight: 600; font-size: 13.5px; color: var(--ink);
  background: var(--oat); border: 1.5px solid var(--clay); border-radius: 11px; padding: 9px 12px;
  outline: none; cursor: pointer; transition: border-color .18s;
}
.nselect:hover { border-color: var(--accent); }
.nselect:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* skills */
.skill-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.skill-row:first-child { border-top: none; }
.skill-row .sk-name { font-size: 15px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.sk-badge { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.sk-badge.you { background: var(--accent-soft); color: var(--accent-deep); }
.sk-badge.lib { background: transparent; color: var(--text-3); border: 1px solid var(--clay); }
.skill-row .sk-use { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.lib-head { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 4px; padding-top: 14px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.lib-head span { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.lib-head small { font-size: 11.5px; color: var(--text-3); font-style: italic; font-family: 'Newsreader', serif; flex-basis: 100%; }
.lib-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 10px 0; }
.lib-row .lr-info b { font-size: 14.5px; font-weight: 600; color: var(--ink); display: block; }
.lib-row .lr-info small { font-size: 12px; color: var(--text-3); }
.lib-empty { font-family: 'Newsreader', serif; font-style: italic; font-size: 14px; color: var(--text-3); padding: 12px 0 4px; }

/* schedule */
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 16px; }
.wk-day { text-align: center; padding: 9px 0 7px; border-radius: 12px; border: 1px solid transparent; }
.wk-day small { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; color: var(--text-3); }
.wk-day b { display: block; font-size: 14.5px; font-weight: 600; color: var(--text-2); margin: 2px 0; font-family: 'Newsreader', serif; }
.wk-day .wk-dots { height: 6px; display: flex; gap: 3px; justify-content: center; }
.wk-day .wk-dots i { width: 4.5px; height: 4.5px; border-radius: 50%; background: var(--accent); opacity: .85; }
.wk-day.today { border-color: var(--accent); background: var(--accent-soft); }
.wk-day.today b, .wk-day.today small { color: var(--accent-deep); }
.sched-row { display: grid; grid-template-columns: 86px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); align-items: baseline; }
.sched-row .sc-when { font-size: 12px; font-weight: 700; color: var(--accent-deep); letter-spacing: .04em; }
.sched-row .sc-what { font-size: 14.5px; color: var(--text-2); }

/* credentials */
.cred-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); }
.cred-row:first-of-type { border-top: none; }
.cred-info { min-width: 0; }
.cred-info b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.cred-info small { display: block; font-size: 12px; color: var(--text-3); line-height: 1.4; margin-top: 1px; }
.nswitch {
  appearance: none; cursor: pointer; border: none; padding: 2.5px; flex: none;
  width: 46px; height: 27px; border-radius: 99px; background: var(--clay);
  display: inline-flex; align-items: center;
}
.nswitch i { width: 22px; height: 22px; border-radius: 50%; background: var(--cream); box-shadow: 0 1.5px 4px rgba(46,42,38,.3); transform: translateX(0); }
.nswitch.on { background: var(--accent); }
.nswitch.on i { transform: translateX(19px); }
body[data-motion="1"] .nswitch { transition: background .25s; }
body[data-motion="1"] .nswitch i { transition: transform .35s var(--spring); }
.nswitch:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.nswitch:active i { width: 25px; }
.vault-note { font-size: 12px; color: var(--text-3); margin: 14px 0 0; line-height: 1.55; }
/* credentials: connect-a-platform */
.cred-add {
  appearance: none; cursor: pointer; width: 100%; margin-top: 14px;
  font-family: 'Karla', sans-serif; font-weight: 700; font-size: 13px; color: var(--accent-deep);
  background: transparent; border: 1.5px dashed var(--border-strong, var(--clay)); border-radius: 13px; padding: 11px 14px;
  transition: border-color .18s, background .18s, transform .22s var(--spring);
}
.cred-add:hover { border-color: var(--accent); background: var(--accent-soft); }
.cred-add:active { transform: scale(.98); }
.cred-add:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.cred-picker { display: grid; gap: 8px; margin-top: 12px; }
.pick-opt {
  appearance: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  font-family: 'Karla', sans-serif; text-align: left; color: var(--ink);
  background: var(--oat); border: 1.5px solid var(--clay); border-radius: 13px; padding: 11px 14px;
  transition: border-color .18s, transform .18s var(--spring);
}
.pick-opt:hover { border-color: var(--accent); }
.pick-opt:active { transform: scale(.98); }
.pick-opt span { font-weight: 600; font-size: 14px; }
.pick-opt small { font-size: 12px; color: var(--text-3); }
.pick-opt i { margin-left: auto; font-style: normal; font-size: 18px; font-weight: 700; color: var(--accent-deep); }
.pick-empty { font-family: 'Newsreader', serif; font-style: italic; font-size: 13.5px; color: var(--text-3); margin: 12px 0 0; }
/* card link (in card label) */
.card-link {
  appearance: none; cursor: pointer; margin-left: auto; background: none; border: none; padding: 0;
  font-family: 'Karla', sans-serif; font-weight: 700; font-size: 11.5px; letter-spacing: .04em;
  text-transform: none; color: var(--accent-deep);
}
.card-link:hover { text-decoration: underline; }
.card-link:focus-visible { outline: none; border-radius: 4px; box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- skill catalog page ---------- */
.cat-filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; }
.cat-chip {
  appearance: none; cursor: pointer; font-family: 'Karla', sans-serif; font-weight: 700; font-size: 13px;
  color: var(--text-2); background: var(--cream); border: 1.5px solid var(--clay); border-radius: 99px;
  padding: 9px 18px; white-space: nowrap; transition: color .18s, background .25s, border-color .18s, transform .22s var(--spring);
}
.cat-chip:hover { color: var(--ink); border-color: var(--accent); }
.cat-chip:active { transform: scale(.96); }
.cat-chip:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.cat-chip.on { background: var(--ink); color: var(--oat); border-color: var(--ink); }
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tool-card { background: var(--cream); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); padding: 24px 26px; }
.tc-head { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.tc-ico {
  flex: none; width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Karla', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: .02em;
  background: var(--accent-soft); color: var(--accent-deep);
}
.tc-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tc-meta b { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.2; white-space: nowrap; }
.tc-meta small { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; line-height: 1.2; }
.tc-tag { margin-left: auto; align-self: flex-start; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; white-space: nowrap; }
.tc-tag.live { background: var(--accent-soft); color: var(--accent-deep); }
.tc-tag.soon { border: 1px solid var(--clay); color: var(--text-3); }
.tool-card.is-soon { opacity: .72; }
.tc-skills { display: flex; flex-direction: column; }
.cat-skill { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-top: 1px solid var(--border); }
.cat-skill:first-child { border-top: none; }
.cs-info { min-width: 0; }
.cs-info b { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.cs-info small { font-size: 12.5px; color: var(--text-3); line-height: 1.4; }
.cat-skill .btn { flex: none; }

/* usage */
.usage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.u-stat { text-align: center; padding: 14px 4px 12px; background: var(--oat); border-radius: 14px; }
.u-stat b { display: block; font-family: 'Newsreader', serif; font-weight: 500; font-size: 26px; line-height: 1.1; }
.u-stat small { font-size: 10.5px; color: var(--text-3); font-weight: 600; letter-spacing: .02em; }

/* plan */
.plan-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.plan-row .serif { font-size: 30px; }
.plan-per { font-size: 13px; color: var(--text-3); font-weight: 600; }
.plan-badge { font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--accent-deep); border: 1px solid var(--accent); border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.plan-meta { font-size: 13px; color: var(--text-3); margin: 0 0 14px; line-height: 1.55; }

@media (max-width: 1020px) {
  .span7, .span5, .span4 { grid-column: span 12; }
  .app-main { padding: 36px 22px 90px; }
  .app-greet { align-items: flex-start; flex-direction: column; }
  .agent-contact { text-align: left; }
  .cat-grid { grid-template-columns: 1fr; }
}

/* ---- brick #2: real feed states + preview treatment ---- */
.brief-row .st.live { color: var(--accent-deep); display: inline-flex; align-items: center; gap: 6px; }
.brief-row .st.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-deep); animation: numen-pulse 1.6s ease-in-out infinite; }
@keyframes numen-pulse { 0%,100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }
.bf-out { color: var(--text-2); }
.feed-empty { font-family: 'Newsreader', serif; font-style: italic; font-size: 15px; color: var(--text-3); margin: 6px 0 2px; line-height: 1.55; }
.preview-tag { font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); border: 1px solid var(--border); border-radius: 999px; padding: 2px 7px; margin-left: auto; }
.preview-note { font-family: 'Newsreader', serif; font-style: italic; font-size: 14px; color: var(--text-3); margin: 4px 0; }
.app-card.is-preview { opacity: .82; }
.app-card.is-preview .nselect, .app-card.is-preview .nswitch, .app-card.is-preview .cred-add, .is-disabled { opacity: .5; pointer-events: none; cursor: default; }
