/* publish.link console. Shares the intro site's look: ink #1d1d1f on #f5f5f7, one blue #0066ff, red badge dot. */
:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --line: #e4e6ea;
  --line-soft: #eef0f3;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --navy: #1d1d1f;
  --navy-2: #2c2c2e;
  --brand: #0066ff;
  --accent: #0066ff;
  --accent-soft: #e5f0ff;
  --danger: #d70015;
  --ok: #157a46;
  --warn: #8a5a00;
  --radius: 16px;
  --side: 248px;
  --shadow: none;
  letter-spacing: -0.012em;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); line-height: 1.55; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.045em; line-height: 1.2; margin: 0 0 24px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
h2 { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
h3 { font-size: 14px; margin: 18px 0 8px; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12.5px; background: #eef2f5; padding: 1px 6px; border-radius: 5px; }
code.wrap { word-break: break-all; }
.muted { color: var(--muted); font-weight: 400; }
small, .small { font-size: 12px; }
h1 small { font-size: 14px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 18px; height: 58px; padding: 0 24px; background: rgba(255, 255, 255, .8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .08); color: var(--text); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--text); letter-spacing: -0.03em; font-size: 17px; }
.brand-mark { position: relative; flex: none; display: inline-block; width: 20px; height: 20px; border-radius: 6px; background: var(--text); }
.brand-mark::after { content: ""; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: #ff453a; border: 2px solid #fff; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand span { color: var(--muted); font-weight: 500; font-size: 14px; }
.burger { display: none; cursor: pointer; font-size: 20px; color: var(--text); }
.navtoggle { display: none; }
.logout { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.logout .who { color: var(--muted); font-size: 13px; }
.logout button { white-space: nowrap; background: var(--bg); border: 0; color: var(--text); cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; }
.logout button:hover { background: #e8e8ed; }

.switcher { position: relative; }
.switcher summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 5px 14px 5px 6px; border-radius: 999px; font-weight: 600; color: var(--text); background: var(--bg); }
.switcher summary::-webkit-details-marker { display: none; }
.switcher summary::after { content: "▾"; color: var(--muted); font-size: 11px; }
.switcher summary:hover { background: #e8e8ed; }
.switcher-menu { position: absolute; top: 46px; left: 0; min-width: 280px; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(11, 36, 51, .18); padding: 6px; }
.switcher-menu a { display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; align-items: center; padding: 8px; border-radius: 8px; color: var(--text); }
.switcher-menu a small { grid-column: 2; color: var(--muted); }
.switcher-menu a:hover, .switcher-menu a.current { background: var(--accent-soft); text-decoration: none; }
.switcher-menu a.add { display: block; color: var(--accent); border-top: 1px solid var(--line); border-radius: 0; margin-top: 4px; padding-top: 10px; }
.site-dot { object-fit: cover; flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; grid-row: span 2; }

/* layout */
.shell { display: flex; min-height: calc(100vh - 58px); }
.sidebar { width: 236px; flex: none; background: var(--bg); padding: 22px 14px; }
.nav-group { margin-bottom: 18px; }
.nav-label { font-size: 12px; font-weight: 600; color: var(--muted); padding: 4px 12px 6px; }
.sidebar a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--text); font-weight: 500; }
.sidebar a:hover { background: #e8e8ed; text-decoration: none; }
.sidebar a.active { background: var(--panel); color: var(--accent); font-weight: 700; }
.content { flex: 1; min-width: 0; padding: 28px 32px 64px; max-width: 1320px; }
/* With no menu beside it (a new account with no site yet), the page sits in the middle at a reading width. */
.shell > .content:first-child:not(:has(> .signin)) { margin: 0 auto; max-width: 760px; }
/* That first screen looks like the intro site: Linky above a centred headline, a lede, one white card with soft
   rounded fields and a full-width pill button. The time-zone line is left out, since there is no site to set one yet. */
.shell > .content:first-child:not(:has(> .signin)) { max-width: 600px; padding-top: 56px; }
.shell > .content:first-child:not(:has(> .signin)) > h1 { display: block; text-align: center; font-size: clamp(34px, 5.2vw, 52px); line-height: 1.1; letter-spacing: -0.055em; margin: 0 0 16px; }
.shell > .content:first-child:not(:has(> .signin)) > h1::before { content: ""; display: block; width: 104px; height: 104px; margin: 0 auto 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Crect x='12' y='24' width='88' height='88' rx='28' fill='%231d1d1f'/%3E%3Crect x='37' y='52' width='11' height='19' rx='5.5' fill='%23fff'/%3E%3Crect x='65' y='52' width='11' height='19' rx='5.5' fill='%23fff'/%3E%3Cpath d='M44 82c7 7 19 7 26 0' stroke='%23fff' stroke-width='5' stroke-linecap='round' fill='none'/%3E%3Ccircle cx='98' cy='26' r='13' fill='%23ff453a' stroke='%23fff' stroke-width='5'/%3E%3C/svg%3E") center / contain no-repeat; }
.shell > .content:first-child:not(:has(> .signin)) > p.muted { text-align: center; max-width: 28em; margin: 0 auto 32px; font-size: 17px; line-height: 1.55; letter-spacing: -0.025em; text-wrap: balance; }
.shell > .content:first-child:not(:has(> .signin)) > p.error { text-align: center; }
.shell > .content:first-child:not(:has(> .signin)) > .card { padding: 32px; border-radius: 28px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .18); }
.shell > .content:first-child:not(:has(> .signin)) .form { max-width: none; gap: 18px; }
.shell > .content:first-child:not(:has(> .signin)) .form label { font-size: 13.5px; color: var(--muted); }
.shell > .content:first-child:not(:has(> .signin)) .form label > input:not([type=checkbox]):not([type=radio]) { padding: 13px 18px; border: 1px solid transparent; border-radius: 14px; background: var(--bg); font-size: 16px; color: var(--text); }
.shell > .content:first-child:not(:has(> .signin)) .form label > input:not([type=checkbox]):not([type=radio]):focus { outline: none; border-color: var(--accent); background: #fff; }
.shell > .content:first-child:not(:has(> .signin)) .form .btn.primary { justify-self: stretch; min-height: 50px; font-size: 17px; margin-top: 4px; }
.shell > .content:first-child:not(:has(> .signin)) > .foot { display: none; }
.shell > .content:first-child:not(:has(> .signin)) > .foot-langs { display: flex; justify-content: center; }

/* cards */
.card { background: var(--panel); border: 0; border-radius: var(--radius); margin-bottom: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line-soft); }
.card-body { padding: 20px 24px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.compose { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.preview-card { position: sticky; top: 78px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--panel); border: 0; border-radius: var(--radius); padding: 20px 22px; }
.stat-label { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.stat-value { font-size: 34px; font-weight: 700; letter-spacing: -0.05em; line-height: 1.15; margin-top: 4px; font-variant-numeric: tabular-nums; color: var(--text); }
.stat-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }

.chart svg { width: 100%; height: 140px; display: block; }
.chart rect { fill: var(--brand); opacity: .85; }
.chart rect:hover { opacity: 1; fill: var(--accent); }
.chart-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 4px; }

/* tables */
.scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 10px 12px; background: transparent; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table tbody tr:hover td { background: #fafafc; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .empty { text-align: center; color: var(--muted); padding: 32px; }
.bar { display: inline-block; width: 64px; height: 6px; background: #e9eef2; border-radius: 3px; margin-right: 8px; vertical-align: middle; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); }

.tag { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 5px; background: #edf1f4; color: var(--muted); margin-left: 6px; font-weight: 700; }
.tag.test { background: #fff3d1; color: var(--warn); }
.status { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: #edf1f4; color: var(--muted); }
.status.sent { background: #e2f4ea; color: var(--ok); }
.status.sending, .status.scheduled { background: var(--accent-soft); color: var(--accent); }
.status.failed, .status.canceled { background: #fbe7e5; color: var(--danger); }

/* forms */
.form { display: grid; gap: 16px; max-width: 680px; }
.form label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-weight: 600; font-size: 13px; }
.form label > input:not([type=checkbox]):not([type=radio]), .form label > select, .form label > textarea { flex: 1 1 100%; }
.form label small { font-weight: 400; color: var(--muted); }
.form label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.form fieldset { border: 0; border-radius: 14px; padding: 14px 18px 18px; display: grid; gap: 10px; background: var(--bg); }
.form legend { font-weight: 700; font-size: 13px; padding: 0 6px; color: var(--navy); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.row > label { flex: 1; min-width: 140px; }
.rule { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 8px; }
.rule.two { grid-template-columns: 1fr 2fr; }
.form label.check input:not([type=checkbox]):not([type=radio]) { width: auto; flex: 1; max-width: 260px; }
.form label.check { white-space: nowrap; }
.check.indent { margin-left: 24px; }
img[src=""] { display: none; }
input, select, textarea { font: inherit; padding: 10px 13px; border: 1px solid #d2d2d7; border-radius: 12px; background: #fff; color: var(--text); width: 100%; }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; accent-color: var(--accent); }
input[type=color] { padding: 2px; height: 38px; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; min-height: 38px; padding: 0 18px; border-radius: 999px; border: 0; background: #e8e8ed; color: var(--text); cursor: pointer; text-decoration: none; }
.btn:hover { text-decoration: none; background: #dcdce1; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; justify-self: start; }
.btn.primary:hover { background: #0052cc; }
.btn.danger { color: var(--danger); background: #fdecec; }
.btn.danger:hover { background: #fbdcdc; }
.actions-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
form.inline { margin-bottom: 14px; }
.filters { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.filters > * { width: auto; }
.pager { display: flex; gap: 14px; justify-content: center; padding-top: 12px; color: var(--muted); }

.flash { background: #e2f4ea; color: var(--ok); border: 1px solid #bfe3cd; padding: 11px 15px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; }
.error { color: var(--danger); }
p.error { background: #fbe7e5; border: 1px solid #f1c9c4; padding: 10px 14px; border-radius: 10px; margin: 0 0 14px; }
.dl { display: grid; grid-template-columns: 140px 1fr; gap: 9px 16px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; word-break: break-word; }
.thumb { max-width: 220px; border-radius: 8px; }
pre.code { background: var(--text); color: #f5f5f7; padding: 16px 18px; border-radius: 14px; overflow-x: auto; font-size: 12.5px; white-space: pre-wrap; word-break: break-all; }

/* previews */
.preview { background: #f8fafb; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); }
.pv-head { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.pv-icon { width: 22px; height: 22px; border-radius: 5px; object-fit: cover; }
.pv-title { font-weight: 700; }
.pv-body { color: #3a4652; white-space: pre-wrap; }
.pv-image { width: 100%; border-radius: 8px; margin-top: 10px; display: none; }
.prompt-preview { border-radius: 20px; box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .38), 0 0 0 1px rgba(0, 0, 0, .06); padding: 18px 18px 14px; }
.prompt-preview .pp-row { display: flex; gap: 12px; }
.prompt-preview img { width: 48px; height: 48px; border-radius: 12px; }
.prompt-preview p { margin: 0; white-space: pre-line; }
.pp-btns { display: flex; flex-direction: row-reverse; gap: 8px; margin-top: 14px; }
.pp-btns span { border-radius: 999px; padding: 10px 20px; font-weight: 600; }
#pp-y { color: #fff; }

/* login */
.login { max-width: 420px; margin: 12vh auto; padding: 40px 36px; display: grid; gap: 18px; background: var(--panel); border: 0; border-radius: 28px; }
.login p { margin: 0; }
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-brand .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
.login-brand .brand-mark::after { width: 14px; height: 14px; top: -5px; right: -5px; }
.login-brand b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.2; color: var(--text); }
.login-brand span { color: var(--muted); font-weight: 500; font-size: 14px; }
.login .form { gap: 12px; }
.btn.google { min-height: 50px; width: 100%; background: var(--bg); font-size: 16px; }
.btn.google:hover { background: #e8e8ed; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login .btn.primary { width: 100%; }

/* analytics */
.filters.seg { gap: 6px; margin-bottom: 18px; }
.health { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.health li { display: grid; gap: 2px; padding: 14px 16px 14px 18px; border-radius: 14px; background: var(--bg); border-left: 4px solid var(--ok); }
.health li.warn { border-left-color: #c98a00; }
.health li.bad { border-left-color: var(--danger); background: #fdecec; }
.health li b { font-size: 15px; letter-spacing: -0.02em; }
.health li span { color: var(--muted); }

@media (max-width: 960px) {
  .compose, .grid2 { grid-template-columns: 1fr; }
  .preview-card { position: static; }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .sidebar { position: fixed; top: 58px; bottom: 0; left: 0; z-index: 9; transform: translateX(-100%); transition: transform .2s; overflow-y: auto; box-shadow: 4px 0 20px rgba(0, 0, 0, .1); }
  .navtoggle:checked ~ .shell .sidebar { transform: none; }
  .content { padding: 20px 16px 48px; }
  .topbar { padding: 0 16px; gap: 10px; }
  .brand span, .brand .beta, .logout .who { display: none; }
  .brand { font-size: 0; gap: 0; }
  .stat-value { font-size: 24px; }
  .dl { grid-template-columns: 1fr; gap: 2px; }
  .dl dd { margin-bottom: 8px; }
  .rule { grid-template-columns: 1fr; }
  .login { margin: 6vh 16px; padding: 24px; }
}

/* Text. Korean breaks between words, not inside them; a paragraph stays a readable width. */
body { word-break: keep-all; overflow-wrap: break-word; }
p { margin: 0 0 12px; text-wrap: pretty; }
.card-body p, .card-body .more, .content > p { max-width: 74ch; }
.card-body > :last-child, .form > :last-child { margin-bottom: 0; }
.card-body > .scroll, .card-body > .form, .card-body > .dl, .card-body > .stats { margin-bottom: 16px; }
.card-body > form:not(.form) { margin: 0 0 16px; }
.card-body h3 { font-size: 15px; letter-spacing: -0.02em; margin: 0 0 12px; }
h2 small { font-size: 12.5px; font-weight: 500; margin-left: 4px; letter-spacing: 0; }
/* One line under a card's title saying what the card is for. */
.lead, .card-body > p.muted:not(.small) { color: var(--muted); margin-bottom: 16px; }
/* A short note that belongs to the field or table just above it. */
.hint, p.muted.small { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.form > p { margin: -8px 0 0; }
.form > .check + p { margin-left: 24px; }
p.empty { text-align: center; color: var(--muted); padding: 22px 0; max-width: none; }
p.notice { background: #fff8e6; color: var(--warn); border: 1px solid #f1dfae; padding: 10px 14px; border-radius: 10px; margin: 0 0 14px; }
.foot { color: var(--muted); font-size: 12px; margin: 28px 0 0; }
.sep { border: 0; border-top: 1px solid var(--line-soft); margin: 24px 0; }
.stat-sub { line-height: 1.4; }
.more { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin: 0 0 12px; }
.more summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-weight: 600; padding: 3px 0; border-radius: 6px; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+"; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #e8e8ed; color: var(--text); font-size: 12px; line-height: 1; }
.more[open] summary::before { content: "\2212"; }
.more summary:hover { color: var(--text); }
.more summary:focus-visible { outline: 3px solid var(--accent-soft); }
.more ul { margin: 6px 0 0; padding: 12px 16px 12px 32px; background: var(--bg); border-radius: 12px; display: grid; gap: 5px; }

/* Pages split into tabs: a section that belongs to another tab is hidden. */
[hidden] { display: none !important; }
.tabs { position: sticky; top: 0; z-index: 2; padding: 8px 0; background: var(--bg, #f5f5f7); }
.form > .btn { justify-self: start; }
h1 small { letter-spacing: -0.01em; font-weight: 500; }

/* The way between the two consoles, next to who is signed in. */
.console-link { font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.console-link:hover { text-decoration: none; background: #d6e6ff; }

/* Sign-in: the screen split in two. What the service is on the left, on ink; the way in on the right. */
.bare .topbar { display: none; }
.bare .shell { min-height: 100vh; }
.bare .content { padding: 0; max-width: none; }
.signin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.signin-side { display: flex; flex-direction: column; gap: 40px; padding: 48px 56px; background: radial-gradient(120% 90% at 30% 45%, #1b1c26 0%, #0c0c11 55%, #060608 100%); color: #f5f5f7; }
.signin-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; letter-spacing: -0.03em; color: #fff; }
.signin-brand:hover { text-decoration: none; }
.signin-side .brand-mark { background: #fff; }
.signin-side .brand-mark::after { border-color: #1d1d1f; }
.signin-side { position: relative; overflow: hidden; }
.signin-brand, .signin-pitch { position: relative; z-index: 1; }
.signin-pitch { margin-top: auto; }
.signin-side h1 { display: block; margin: 0; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.14; letter-spacing: -0.05em; color: #fff; }
/* The picture is drawn on this canvas (public/signin-art.js). Until it is, and where WebGL is missing, the panel's own light shows. */
.signin-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.signin-pitch p { margin: 14px 0 0; max-width: 30ch; font-size: 16px; line-height: 1.6; color: #b9b9c0; }
.signin-main { display: grid; place-items: center; padding: 48px 32px; background: var(--panel); }
.signin-box { display: grid; gap: 16px; width: min(380px, 100%); }
.signin-box h2 { font-size: 28px; letter-spacing: -0.04em; }
.signin-box p { margin: 0; }
.signin-box .form { gap: 12px; }
.signin-box .btn.primary { width: 100%; justify-self: stretch; min-height: 46px; }
@media (max-width: 860px) {
  .signin { grid-template-columns: 1fr; }
  .signin-side { gap: 20px; padding: 28px 24px; }
  .signin-pitch { margin-top: 0; }
  .signin-side { min-height: 220px; }
  .signin-side h1 { font-size: 24px; }
  .signin-main { place-items: start center; padding: 32px 24px 48px; }
}

/* Messages to copy: read-only boxes that select themselves when clicked. */
.kit { display: grid; gap: 10px; margin-top: 8px; padding: 14px 16px; border-radius: 12px; background: var(--bg); min-width: min(520px, 70vw); }
.kit label { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.kit input, .kit textarea { font-size: 13px; color: var(--text); background: #fff; }

/* A list folded under a line the operator can open. */
.fold{margin-top:12px}.fold>summary{cursor:pointer;padding:10px 0;font-weight:600;color:var(--blue,#0066ff)}.fold[open]>summary{margin-bottom:4px}

/* Operations console: inquiries and their follow-up */
.lead-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.lead-tabs a { padding: 6px 13px; border-radius: 99px; background: #edf1f4; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.lead-tabs a.on { background: var(--accent); color: #fff; }
.lead-form { display: flex; gap: 6px; align-items: center; min-width: 380px; }
.lead-form select { flex: none; width: auto; }
.lead-form input[name="note"] { flex: 1; min-width: 0; }
.table.leads td { vertical-align: top; }
.late { color: var(--danger); font-weight: 700; }
.notice { margin: 0 0 16px; padding: 12px 16px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* Prompt settings: the live preview frame */
.compose:has(.pv-frame) { grid-template-columns: minmax(0, 1fr) minmax(360px, 46%); }
.pv-tabs { display: flex; gap: 6px; margin: 0 0 10px; }
.pv-tabs button { padding: 5px 12px; border: 0; border-radius: 99px; background: #edf1f4; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.pv-tabs button.on { background: var(--accent); color: #fff; }
.pv-tabs button[data-pv-again] { margin-left: auto; }
.pv-frame { height: 560px; border: 1px solid #dfe5ea; border-radius: 12px; overflow: hidden; background: #f3f5f7; }
.pv-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.pv-frame.phone { padding: 12px 0; }
.pv-frame.phone iframe { width: 375px; max-width: 100%; margin: 0 auto; border-radius: 22px; box-shadow: 0 0 0 1px #dfe5ea; }

/* Install check */
.checks { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.checks li { padding: 10px 14px; border-radius: 10px; background: #f3f5f7; }
.checks li.ok { background: #e9f7ef; }
.checks li.ok b { color: var(--ok); }
.checks li.no b { color: var(--danger); }

/* Prompt settings: ready-made designs */
.pd-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
@media (max-width: 720px) { .pd-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pd { padding: 3px; border: 2px solid transparent; border-radius: 13px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.pd:hover { border-color: #d5dde4; }
.pd.on { border-color: var(--accent); }
.pd-page { display: block; position: relative; height: 78px; border-radius: 9px; background: #e9edf1; overflow: hidden; }
.pd-box { position: absolute; display: grid; gap: 4px; width: 64%; padding: 7px; border-radius: 7px; box-shadow: 0 4px 10px rgba(0, 0, 0, .16); }
.pd-box b { height: 5px; width: 70%; border-radius: 3px; }
.pd-box em { height: 4px; width: 92%; border-radius: 2px; opacity: .45; }
.pd-box u { height: 9px; width: 36%; border-radius: 5px; justify-self: end; }
.pd-card { right: 6px; bottom: 6px; }
.pd-lightbox { left: 18%; top: 6px; }
.pd-bar { left: 18%; bottom: 6px; }
.pd-topbar { left: 0; top: 0; width: 100%; display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 0; }
.pd-topbar b { flex: 1; opacity: .85; }
.pd-topbar em { display: none; }
.pd-topbar u { width: 22%; }
.pd small { display: block; padding: 6px 3px 2px; font-size: 12px; font-weight: 600; }

ul.plain { margin: 8px 0 0; padding-left: 18px; }
ul.plain li { margin: 4px 0; }

dl.facts { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 16px; margin: 12px 0 16px; }
dl.facts dt { color: #666; font-size: 13px; }
dl.facts dd { margin: 0; }
.btn.small { padding: 4px 10px; font-size: 13px; }

/* Language choice in the top bar */
.logout .langs { position: relative; font-size: 13px; }
.logout .langs summary { list-style: none; cursor: pointer; color: var(--muted); white-space: nowrap; }
.logout .langs summary::-webkit-details-marker { display: none; }
.logout .langs summary:hover { color: var(--text); }
.logout .langs div { position: absolute; top: calc(100% + 10px); right: 0; z-index: 40; display: grid; min-width: 120px; padding: 6px; border-radius: 12px; background: #fff; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.06); }
.logout .langs a { padding: 7px 10px; border-radius: 8px; color: var(--text); }
.logout .langs a:hover { background: var(--bg); text-decoration: none; }

/* Sign-in and sign-up: long consent lines wrap, the other ways to sign in fold away, languages at the foot */
.signin-box .form, .signin-box .form > * { min-width: 0; }
.signin-box label.check { white-space: normal; flex-wrap: nowrap; align-items: flex-start; font-weight: 400; font-size: 13px; line-height: 1.5; }
.signin-box label.check span { flex: 1; min-width: 0; }
.signin-box label.check input { margin-top: 3px; flex: none; }
.signin-more { border-top: 1px solid var(--line); padding-top: 14px; }
.signin-more summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.signin-more[open] summary { margin-bottom: 14px; }
.signin-more > * + * { margin-top: 14px; }
.signin-langs { display: flex; gap: 14px; font-size: 12px; }
.signin-langs a { color: var(--muted); }
.signin-offer { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 16px; line-height: 1.5; color: #d6d6dc; }
.signin-offer li { position: relative; padding-left: 26px; }
.signin-offer li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2px solid #ff5a4f; border-bottom: 2px solid #ff5a4f; transform: rotate(-45deg); }
.signin-join { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--bg); color: inherit; font-size: 13px; line-height: 1.5; }
.signin-join:hover { text-decoration: none; filter: brightness(0.98); }
.signin-join b { color: var(--blue, #0066ff); font-weight: 700; }
.signin-join span { color: var(--muted); }
.signin-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.plan-opts { display: flex; gap: 14px; flex-wrap: wrap; margin: 4px 0 16px; }
.plan-opts label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.plan-opts select { min-width: 150px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; align-items: stretch; margin-bottom: 14px; }
.plan-card { display: flex; flex-direction: column; gap: 12px; padding: 22px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.plan-card.pick { border-color: #0066ff; box-shadow: 0 0 0 1px #0066ff; }
.plan-card.mine { background: #f7faff; }
.plan-card h3 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan-card .tag.pick { background: #0066ff; color: #fff; }
.plan-price { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.plan-price b { font-size: 30px; letter-spacing: -0.02em; }
.plan-price small { color: var(--muted); font-size: 13px; }
.plan-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 13.5px; line-height: 1.45; flex: 1; align-content: start; }
.plan-card li { position: relative; padding-left: 20px; }
.plan-card li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 9px; height: 5px; border-left: 2px solid #0066ff; border-bottom: 2px solid #0066ff; transform: rotate(-45deg); }
.plan-card .btn { justify-content: center; text-align: center; }
.plan-card .btn.disabled { opacity: .55; pointer-events: none; }
.plan-foot { font-size: 13px; color: var(--muted); text-align: center; padding: 9px 0; }
.start { min-height: 100vh; background: #fff; display: flex; flex-direction: column; }
.start-top { display: flex; justify-content: space-between; align-items: center; padding: 20px 28px; }
.start-top .signin-brand { position: static; color: var(--text); }
.start-bar { height: 3px; background: var(--line-soft); }
.start-bar i { display: block; height: 100%; background: #0066ff; transition: width .3s; }
.start-body { width: min(680px, 100% - 40px); margin: 0 auto; padding: 8vh 0 80px; display: grid; gap: 18px; }
.start-count { margin: 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.start-body h1 { margin: 0; font-size: clamp(26px, 4vw, 36px); line-height: 1.25; letter-spacing: -0.02em; }
.start-lead { margin: 0; font-size: 16px; line-height: 1.65; color: #424245; }
.start-lead b { word-break: break-all; }
.start-code { display: grid; gap: 10px; justify-items: start; }
.start-code textarea { width: 100%; resize: none; padding: 16px 18px; border: 0; border-radius: 14px; background: var(--text); color: #f5f5f7; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; }
.start-where { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.start-where li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 10px 14px; border-radius: 10px; background: var(--bg); }
.start-where span { color: var(--muted); }
.start-result { margin: 0; display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; background: #fff4f2; font-size: 14px; line-height: 1.55; }
.start-result b { color: #d92d20; }
.start-result.ok { background: #e9f7ef; }
.start-result.ok b { color: var(--ok, #1a7f4b); }
.start-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.start-actions .btn { padding: 12px 26px; font-size: 15px; }
.start-skip { font-size: 13px; color: var(--muted); }
.start-next { display: grid; gap: 10px; }
.start-next a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; color: inherit; }
.start-next a:hover { border-color: #0066ff; text-decoration: none; }
.start-next span { font-size: 13.5px; color: var(--muted); }
.start-up { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding: 18px 20px; border-radius: 16px; background: #f2f7ff; }
.start-up ul { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; line-height: 1.7; color: #424245; }
@media (max-width: 560px) { .start-where li { grid-template-columns: 1fr; gap: 2px; } }
.plan-opts { gap: 22px 36px; }
fieldset.pick { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
fieldset.pick legend { float: none; width: 100%; padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.plan-opts fieldset.pick label { display: inline-block; position: relative; }
fieldset.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
fieldset.pick span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: 14px; color: var(--text); }
fieldset.pick input:checked + span { border-color: #0066ff; background: #f2f7ff; color: #0066ff; font-weight: 600; box-shadow: 0 0 0 1px #0066ff; }
fieldset.pick input:focus-visible + span { outline: 2px solid #0066ff; outline-offset: 2px; }
fieldset.pick label.off span { opacity: .55; }
fieldset.pick label.off input { cursor: not-allowed; }
fieldset.pick small { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--line-soft); color: var(--muted); }

.signin-legal { display: flex; gap: 14px; margin: -4px 0 4px 26px; font-size: 13px; }
.signin-legal a { color: inherit; opacity: .7; text-decoration: underline; }

.aic { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.aic.ok { background: #e3f6e8; color: #17713a; }
.aic.warn { background: #fff3d6; color: #8a5a00; }
.aic.bad { background: #fde5e3; color: #b3261e; }

.aic-group { margin: 22px 0 6px; font-size: 14px; font-weight: 700; }
.aic-group:first-child { margin-top: 0; }
.aic-table td:first-child { width: 22%; }
.aic-table td:nth-child(2) { width: 16%; }
.aic-score { font-size: 22px; }
.aic-ask { padding: 12px 0; border-top: 1px solid #ececf0; }
.aic-ask p { margin: 0 0 4px; }
@media print {
  .topbar, .sidebar, .btn, form.inline, .navtoggle, .flash { display: none !important; }
  .shell { display: block; }
  .card { break-inside: avoid; }
}

.aic-quote { margin: 4px 0 6px; padding: 8px 12px; border-left: 3px solid #d6d6dc; color: #444; font-size: 14px; }

/* Top bar, right side: the other console and one account menu. The language is chosen at the foot of the page. */
.logout { gap: 10px; }
.logout .me { position: relative; }
.logout .me summary { list-style: none; cursor: pointer; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; }
.logout .me summary::-webkit-details-marker { display: none; }
.logout .me > div { position: absolute; top: calc(100% + 10px); right: 0; z-index: 40; display: grid; gap: 8px; min-width: 200px; padding: 12px; border-radius: 12px; background: #fff; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.06); }
.logout .me .who { display: block; word-break: break-all; }
.logout .me button { width: 100%; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; font-size: 13px; }
.foot-langs a { padding: 5px 12px; border-radius: 999px; color: var(--muted); background: var(--bg); }
.foot-langs a:hover { color: var(--text); text-decoration: none; }
html[lang="ko"] .foot-langs a[lang="ko"], html[lang="en"] .foot-langs a[lang="en"], html[lang="ja"] .foot-langs a[lang="ja"], html[lang^="zh"] .foot-langs a[lang="zh"] { color: #fff; background: var(--text); font-weight: 600; }
@media print { .foot-langs { display: none; } }

.brand .beta { font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em; line-height: 1; padding: 3px 6px; border-radius: 5px; border: 1px solid currentColor; opacity: 0.55; }

.insights { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.insights li { padding: 14px 16px; border-radius: 12px; background: #f3f5f7; border-left: 3px solid #c7ccd1; display: grid; gap: 4px; }
.insights li.now { border-left-color: var(--danger); }
.insights li.better { border-left-color: var(--accent, #0a66ff); }
.insights li p { margin: 0; }
.insight-level { font-size: 12px; color: var(--muted); }

.insights li { grid-template-columns: 1fr auto; align-items: center; gap: 6px 18px; }
.insights li > div { display: grid; gap: 3px; }
.insights li .btn { white-space: nowrap; }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; }
.head-row p { margin: 0; }
@media (max-width: 720px) { .insights li { grid-template-columns: 1fr; } }

/* 새 작업 (task-routes.tsx): a request, the steps it ran, a plan to approve. */
.task-home { max-width: 760px; margin: 24px auto 0; display: grid; gap: 14px; }
.task-home h1 { margin: 0; justify-content: center; text-align: center; }
.task-home > p { text-align: center; margin: 0 auto; }
.composer { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; display: grid; gap: 8px; }
.composer textarea { border: 0; resize: vertical; font: inherit; font-size: 15px; outline: none; background: transparent; min-height: 52px; }
.composer .bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.composer .pj { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.sugs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sugs a { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; color: var(--text); font-weight: 600; display: grid; gap: 3px; }
.sugs a:hover { border-color: var(--accent); text-decoration: none; }
.sugs small { color: var(--muted); font-weight: 400; }
@media (max-width: 640px) { .sugs { grid-template-columns: 1fr; } }
.vh { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.vh h1 { margin: 0; }
.thread { display: grid; gap: 12px; max-width: 860px; }
.thread [hidden] { display: none !important; }
.thread .you { justify-self: end; max-width: 80%; background: var(--accent); color: #fff; border-radius: 16px 16px 4px 16px; padding: 10px 14px; font-size: 14.5px; overflow-wrap: anywhere; }
.thread .say { font-size: 14.5px; line-height: 1.6; }
.tool { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; display: grid; gap: 4px; }
.tool .top { display: flex; align-items: center; gap: 10px; font-size: 13.5px; flex-wrap: wrap; }
.tool .kind { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; color: var(--muted); }
.tool .st { margin-left: auto; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 9px; background: var(--accent-soft); color: var(--accent); }
.tool .st.ok { background: #e2f4ea; color: var(--ok); }
.tool:not(.done) .is-done, .tool.done .is-run, .tool:not(.done) details { display: none; }
.tool details summary { cursor: pointer; font-size: 12.5px; color: var(--accent); }
.tool details ul { margin: 8px 0 2px; padding-left: 18px; font-size: 13px; color: var(--muted); display: grid; gap: 3px; }
.plan2 { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.plan2 header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); }
.plan2 header h3 { font-size: 17px; margin: 0; }
.plan2 header p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.pend { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: #fff3d1; color: var(--warn); white-space: nowrap; }
.pend.ok { background: #e2f4ea; color: var(--ok); }
.plan2 .sec { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); display: grid; gap: 10px; }
.plan2 .sec h4 { margin: 0; font-size: 11.5px; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.plan2 .sec .plain, .plan2 .sec p { margin: 0; }
.plan2 .pick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 260px); gap: 14px; align-items: start; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.plan2 .pick .why { display: grid; gap: 5px; font-size: 13.5px; color: var(--muted); }
.plan2 .pick .why b { color: var(--text); font-size: 14.5px; line-height: 1.4; }
.plan2 .pick .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; color: var(--muted); }
.notif { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; display: grid; gap: 3px; }
.notif .src { color: var(--muted); font-size: 11px; }
.notif b { font-size: 13px; line-height: 1.35; }
@media (max-width: 720px) { .plan2 .pick { grid-template-columns: 1fr; } }
.sumrow { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; }
.plan2 footer { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: center; padding: 14px 18px; background: var(--bg); }
.plan2 footer .cost { margin-right: auto; font-size: 12.5px; color: var(--muted); }
.plan2 footer form.inline { margin: 0; }
.plan2 .fixtoggle { display: none; }
.plan2 .ask2 { display: none; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.plan2 .fixtoggle:checked ~ .ask2 { display: flex; }
.plan2 .ask2 input[name="note"] { flex: 1 1 260px; min-width: 0; border: 1px solid var(--line); border-radius: 10px; font: inherit; padding: 9px 11px; }

/* ---------- Console shell and 오늘 (2026-11 revamp, after publish.link/demo) ----------
   A white menu down the left with the site, a blue 새 작업 button and the grouped menu; pages on a pale grey,
   in white cards with a thin line instead of a fill. On a phone the menu is the drawer behind ☰. */
.card, .stat { border: 1px solid var(--line); }
.card-head { padding: 16px 20px; }
.card-body { padding: 18px 20px; }
.card-head h2 { font-size: 15px; }
.stats { gap: 12px; }
.stat { padding: 16px 18px; }
.stat-value { font-size: 28px; font-weight: 800; letter-spacing: -0.035em; }
.table th { font-size: 11.5px; letter-spacing: .02em; }
.table tbody tr:hover td { background: #f8f9fb; }
h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 20px; }
.head-row { margin-bottom: 20px; }
.head-row h1 { margin: 0; }

.sidebar a.side-brand { display: none; }
@media (min-width: 761px) {
  .has-side .topbar { margin-left: var(--side); height: 56px; background: transparent; border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; position: static; }
  .has-side .topbar .brand { display: none; }
  .has-side .shell { min-height: calc(100vh - 56px); padding-left: var(--side); }
  .has-side .sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: var(--side); overflow-y: auto; z-index: 11; }
  .has-side .content { padding-top: 4px; }
  .sidebar a.side-brand { display: flex; align-items: center; gap: 9px; padding: 6px 10px 14px; font-size: 16px; font-weight: 700; color: var(--text); background: none; }
}
.sidebar { background: var(--panel); border-right: 1px solid var(--line); padding: 18px 12px 24px; width: var(--side); display: flex; flex-direction: column; gap: 2px; }
.sidebar a { padding: 7px 10px; font-size: 14px; color: #3a3d44; }
.sidebar a:hover { background: var(--bg); color: var(--text); }
.sidebar a.active { background: var(--bg); color: var(--text); font-weight: 700; box-shadow: inset 3px 0 0 var(--accent); }
.nav-group { margin: 0 0 10px; }
.nav-label { font-size: 11.5px; letter-spacing: .02em; padding: 10px 10px 4px; color: #8a8d94; }

/* The site switcher: a box with the site's mark, name and address; the other sites open under it, in place. */
.sidebar .switcher { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 10px; }
.sidebar .switcher summary { background: none; border-radius: 12px; padding: 8px 10px; gap: 10px; font-weight: 600; }
.sidebar .switcher summary:hover { background: var(--bg); }
.sidebar .switcher summary::after { content: "⌄"; margin-left: auto; font-size: 14px; line-height: 1; }
.sw-name { display: grid; min-width: 0; line-height: 1.3; }
.sw-name b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-name small { color: var(--muted); font-size: 11.5px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar .switcher-menu { position: static; min-width: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; box-shadow: none; padding: 4px; }
.sidebar .switcher-menu a { display: grid; padding: 7px 8px; font-size: 13.5px; }
.sidebar .switcher-menu a.add { display: block; }
.sidebar .switcher-menu a small { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar .switcher-menu a.add { padding: 9px 8px 5px; }
.sidebar .site-dot { width: 28px; height: 28px; border-radius: 8px; }

/* 새 작업: the one blue button in the menu. */
.sidebar a.newtask { display: flex; align-items: center; justify-content: center; margin: 0 0 12px; padding: 9px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; }
.sidebar a.newtask:hover, .sidebar a.newtask.active { background: #0052cc; color: #fff; box-shadow: none; }

@media (max-width: 760px) {
  .sidebar { padding-top: 14px; }
  .has-side .shell { padding-left: 0; }
  /* A phone never scrolls the page sideways: a wide table scrolls inside its card, heads and option lines wrap. */
  .card-body { overflow-x: auto; }
  .card-head { flex-wrap: wrap; }
  .form label.check { white-space: normal; }
  .preview-card { max-width: 100%; }
}
@media (max-width: 960px) {
  .grid2, .compose, .compose:has(.pv-frame) { grid-template-columns: minmax(0, 1fr); }
}

/* 오늘: what to send, what to watch, drafts waiting, what happened lately. */
.today-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 0 16px; align-items: start; }
@media (max-width: 1100px) { .today-grid { grid-template-columns: minmax(0, 1fr); } }
.rows { list-style: none; margin: 0; padding: 0; display: grid; }
.rows > li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); min-width: 0; }
.rows > li:first-child { padding-top: 0; }
.rows > li:last-child { border-bottom: 0; padding-bottom: 0; }
.rows .main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.rows .main > a, .rows .main > b { font-weight: 600; color: var(--text); line-height: 1.4; overflow-wrap: anywhere; }
.rows .main > a:hover { color: var(--accent); }
.rows .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 12.5px; color: var(--muted); }
.rows .line { font-size: 13px; color: #4a4d55; }
.rows .btn { flex: none; white-space: nowrap; min-height: 32px; padding: 0 14px; font-size: 13px; }
.tier { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .02em; border-radius: 999px; padding: 2px 8px; background: #e3f5ea; color: var(--ok); white-space: nowrap; }
.tier.watch { background: var(--bg); color: var(--muted); }
.tier.now { background: #fdecec; color: var(--danger); }
.tier.better { background: var(--accent-soft); color: var(--accent); }
.rows.watch > li { align-items: flex-start; }
.rows.watch .main p { margin: 0; font-size: 13px; color: var(--muted); }
.card-head a.more-link { font-size: 13px; font-weight: 600; white-space: nowrap; }
.empty-note { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--bg); color: var(--muted); font-size: 13.5px; }
.empty-note a { font-weight: 600; }
@media (max-width: 560px) {
  .rows > li { flex-wrap: wrap; }
  .rows .btn { margin-left: auto; }
}
/* Linky underlines tab: the 7 / 30 day switch and the lines table. */
.ul-days { display: inline-flex; gap: 6px; }
.ul-days .btn { justify-self: auto; width: auto; }
.ul-table td:first-child { min-width: 220px; }
.ul-table .ul-asked { min-width: 200px; font-size: 13px; }
.ul-table td:last-child .btn { white-space: nowrap; }
