/* ===== POSTNORI app · Stitch skin A0 (design APP-STITCH-VISUAL-SPEC-20261115). Loaded LAST (after studio-alignment.css).
   Colour literals/tokens are replaced in the existing app CSS by apply-a0.mjs; this file holds only the component rules that tokens cannot express.
   Deliberately has no rules for the on-hold schedule screen or its compose sheet (development-team condition). Skin only: no layout, wording rules or behaviour changes. ===== */
@font-face{font-family:"Space Grotesk";src:url("/fonts/SpaceGrotesk-Variable.latin.woff2") format("woff2-variations");font-weight:500 700;font-style:normal;font-display:swap}
@font-face{font-family:"Pretendard";src:url("/fonts/PretendardVariable.subset.woff2") format("woff2-variations");font-weight:400 800;font-style:normal;font-display:swap}

/* --- focus: ink 3px ring (dark surfaces keep white), never lime --- */
html body.a-product :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid var(--pn-ink);outline-offset:3px}
html body.a-product :is(.sidebar,.home-footer,.dark) :is(a,button):focus-visible{outline-color:#fff}

/* --- buttons --- */
html body.a-product .primary,html body.a-product .login-redesign .primary,html body.a-product .home-cta{border-radius:999px!important;background:var(--pn-ink)!important;border:1px solid var(--pn-ink)!important;color:#fff!important;min-height:44px;font-weight:700;box-shadow:none;white-space:normal}
html body.a-product .primary:hover{background:#27272a!important;border-color:#27272a!important}
html body.a-product .primary:active{background:#3f3f46!important;border-color:#3f3f46!important}
html body.a-product .primary:disabled,html body.a-product .primary[aria-disabled="true"]{background:#f4f4f5!important;border-color:#d4d4d8!important;color:var(--pn-ink-soft)!important}
html body.a-product .secondary,html body.a-product .main-shell .secondary,html body.a-product dialog .secondary{border:1.5px solid var(--pn-ink)!important;border-radius:999px!important;background:var(--pn-surface);color:var(--pn-ink)!important;min-height:44px}
html body.a-product .secondary:hover{background:#f4f4f5}
html body.a-product .secondary:is([aria-pressed="true"],.chosen,.selected,.active){background:var(--pn-ink);color:#fff!important;border-color:var(--pn-ink)!important;box-shadow:none}
html body.a-product .text-button,html body.a-product .main-shell .text-button,html body.a-product dialog .text-button,html body.a-product .login-redesign .text-btn{color:var(--pn-ink)!important;text-decoration:underline;text-underline-offset:3px}
html body.a-product .text-button:hover,html body.a-product .login-redesign .text-btn:hover{background:#f4f4f5}
html body.a-product .danger-outline{border-radius:999px;border:1.5px solid var(--pn-danger);color:var(--pn-danger);background:var(--pn-surface)}
html body.a-product .danger-outline:hover{background:var(--pn-danger-soft)}
/* lime = the one representative action per view (surface only, ink text) */
html body.a-product .dashboard-shell .page-heading .primary,html body.a-product .dashboard-shell .studio-empty .primary,html body.a-product .main-shell .page-heading>.primary:first-of-type{background:var(--pn-lime)!important;border-color:var(--pn-ink)!important;color:var(--pn-ink)!important}
html body.a-product .dashboard-shell .page-heading .primary:hover,html body.a-product .dashboard-shell .studio-empty .primary:hover,html body.a-product .main-shell .page-heading>.primary:first-of-type:hover{background:#ccea00!important}

/* --- inputs, cards, panels --- */
html body.a-product :is(input:not([type=checkbox],[type=radio],[type=range],[type=file]),select,textarea){border-radius:8px}
html body.a-product :is(.panel,.stat-card,.account-card,.brand-card,.plan-card,.studio-card,.start-card){border-radius:16px;box-shadow:none}
html body.a-product dialog{border-radius:24px;box-shadow:none;border:1px solid var(--pn-card-line)}
html body.a-product dialog::backdrop{background:rgba(12,12,12,.5)}

/* --- sidebar: pill items, active = outline + fill + 700 (not colour alone) --- */
html body.a-product .sidebar{background:var(--pn-sidebar);border-right:1px solid var(--pn-line)}
html body.a-product .sidebar .nav-item{border-radius:999px}
html body.a-product .sidebar .nav-item.active,html body.a-product .sidebar .nav-item[aria-current="page"]{background:#e4e4e7;color:var(--pn-ink);font-weight:700;box-shadow:inset 0 0 0 1.5px var(--pn-ink)}

/* --- status pairs (glyph + text + colour) --- */
html body.a-product :is(.badge,.connection-label):not(.tone-ok){font-weight:700}
html body.a-product .badge::before{margin-right:4px;font-weight:800}
html body .badge.scheduled{background:var(--pn-cobalt)!important;border:1px solid var(--pn-cobalt)!important;color:#fff!important}
html body .badge.scheduled::before{content:"●"}
html body .badge:is(.published,.manual_done){background:var(--pn-success-soft)!important;border:1px solid var(--pn-success)!important;color:var(--pn-success)!important}
html body .badge:is(.published,.manual_done)::before{content:"✓"}
html body .badge:is(.blocked,.uncertain){background:#fffbeb!important;border:1px solid #92400e!important;color:#92400e!important}
html body .badge.blocked::before{content:"▲"}html body .badge.uncertain::before{content:"?"}
html body .badge.failed{background:var(--pn-danger-soft)!important;border:1px solid var(--pn-danger)!important;color:var(--pn-danger)!important}
html body .badge.failed::before{content:"!"}
html body .badge:is(.cancelled,.draft){background:#fff!important;border:1px solid #d4d4d8!important;color:var(--pn-ink-soft)!important}
html body .badge:is(.cancelled,.draft)::before{content:"○"}
html body.a-product .dashboard-shell .connection-label.tone-ok{background:var(--pn-success-soft);color:var(--pn-success);border:1px solid var(--pn-success)}

/* --- wordmark: symbol SVG + uppercase Space Grotesk text (replaces the old 370x160 text-in-SVG logo) --- */
html body .postnori-wordmark{display:inline-flex;align-items:center;gap:10px;width:auto;height:auto;color:var(--pn-ink);overflow:visible}
html body .postnori-wordmark svg.pn-mark{width:28px;height:28px;max-width:none;margin:0;flex:0 0 auto;color:var(--pn-ink)}
html body .postnori-wordmark .pn-word{font-family:var(--pn-font-display);font-size:22px;font-weight:700;letter-spacing:-.02em;line-height:1;color:var(--pn-ink)}
html body.a-product .sidebar[data-studio-navigation="true"] .postnori-wordmark{width:auto;height:auto;overflow:visible;margin:0 0 20px;padding:0 9px}
html body.a-product .sidebar[data-studio-navigation="true"] .postnori-wordmark svg.pn-mark{width:28px;height:28px;margin:0}
html body .home-footer .postnori-wordmark,html body .dark .postnori-wordmark{color:#fff}
html body .home-footer .postnori-wordmark .pn-word,html body .home-footer .postnori-wordmark svg.pn-mark{color:#fff}
@media(max-width:720px){html body .postnori-wordmark svg.pn-mark{width:28px;height:28px}}

/* --- login --- */
html body .login-redesign .brand{font-family:var(--pn-font-display);font-weight:700;letter-spacing:-.02em;text-transform:none}
html body .login-redesign .brand small{font-family:var(--pn-font-body);font-weight:600;letter-spacing:0}
html body .login-redesign .foot,html body .login-redesign .foot *{font-size:12px}

/* SNS accounts: the representative action is "계정 추가" (lime); the heading "콘텐츠 만들기" stays black on this view */
html body.a-product .main-shell:has(.notice [data-action="connect"]) .page-heading>.primary:first-of-type{background:var(--pn-ink)!important;border-color:var(--pn-ink)!important;color:#fff!important}
html body.a-product .main-shell:has(.notice [data-action="connect"]) .page-heading>.primary:first-of-type:hover{background:#27272a!important}
html body.a-product .notice>.secondary[data-action="connect"]{background:var(--pn-lime)!important;border-color:var(--pn-ink)!important;color:var(--pn-ink)!important}
html body.a-product .notice>.secondary[data-action="connect"]:hover{background:#ccea00!important}

/* icon rail (901-1023px): mark only; the link keeps aria-label "POSTNORI 홈" */
@media(min-width:901px) and (max-width:1023px){
 html body.a-product .sidebar[data-studio-navigation="true"] .postnori-wordmark{width:44px;height:44px;justify-content:center;margin:0 0 12px;padding:0}
 html body.a-product .sidebar[data-studio-navigation="true"] .postnori-wordmark .pn-word{display:none}
}

/* login chip: hairline instead of shadow */
html body .login-redesign .brand{box-shadow:none;border:1px solid var(--pn-card-line);background:var(--pn-surface)}

/* --- r2 (design verdict A0): the login page body has no .a-product class, so the app-only rules above never reached it ---
   submit buttons were ink-on-ink (invisible text). Pill ink button with white text, pill social buttons, ink text links. */
html body .login-redesign .primary{border-radius:999px!important;background:var(--pn-ink)!important;border:1px solid var(--pn-ink)!important;color:#fff!important;min-height:48px;font-weight:700;box-shadow:none}
html body .login-redesign .primary:hover{background:#27272a!important;border-color:#27272a!important}
html body .login-redesign .primary:active{background:#3f3f46!important;border-color:#3f3f46!important}
html body .login-redesign .primary:focus-visible,html body .login-redesign a:focus-visible,html body .login-redesign button:focus-visible,html body .login-redesign input:focus-visible{outline:3px solid var(--pn-ink);outline-offset:3px}
html body .login-redesign .text-btn,html body .login-redesign .home-link{color:var(--pn-ink)!important;text-decoration:underline;text-underline-offset:3px}
html body .login-redesign .auth-social,html body .login-redesign .email-toggle{border-radius:999px}
html body .login-redesign .email-toggle{border:1.5px solid var(--pn-ink);color:var(--pn-ink);background:var(--pn-surface)}

/* touch target of the wordmark link; active sidebar item stays visible in forced-colors (box-shadow is dropped there) */
html body .postnori-wordmark{min-height:44px}
@media(forced-colors:active){html body.a-product .sidebar .nav-item.active,html body.a-product .sidebar .nav-item[aria-current="page"]{outline:2px solid Highlight;outline-offset:-2px}}

/* error text: danger colour + glyph + sentence on a danger tint (the legacy pink was neutralised to grey by the colour pass and lost contrast) */
html body .form-error:not(:empty),html body .login-redesign .form-error:not(:empty){background:var(--pn-danger-soft)!important;color:var(--pn-danger)!important;border:1px solid var(--pn-danger);border-radius:8px;font-weight:600}
html body .form-error:not(:empty)::before{content:"! ";font-weight:800}
