/* Shared visual foundation for the management workspace. */
:root {
  --studio-ink: #20283c;
  --studio-muted: #637087;
  --studio-accent: #4943cb;
  --studio-border: #e2e6ee;
}
.studio-body { margin: 0; min-height: 100vh; background: #f6f7fa; color: var(--studio-ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; font-size: 14px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
.studio-body :where(button, input, textarea, select, a) { -webkit-tap-highlight-color: transparent; }
.studio-body :where(button, input[type="submit"]) { cursor: pointer; }
.studio-body :where(a, button, input, textarea, select):focus-visible { outline: 3px solid #a5a0f4; outline-offset: 3px; }
.studio-body :where(input, textarea, select) { max-width: 100%; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 10; padding: 12px 20px; background: white; border: 1px solid var(--studio-border); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.studio-header { background: #fff; border-bottom: 1px solid var(--studio-border); }
.studio-header-inner { max-width: 1200px; height: 76px; margin: auto; padding: 0 32px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.studio-brand { display: inline-flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 750; letter-spacing: -.6px; flex-shrink: 0; }
.studio-brand-mark { position: relative; display: grid; place-items: center; width: 34px; height: 36px; border-radius: 10px; color: #fff; background: var(--studio-accent); font-size: 23px; line-height: 1; }
.studio-brand-mark span { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #c4c0ff; right: 5px; top: 5px; }
.studio-account { display: flex; align-items: center; gap: 20px; color: var(--studio-muted); font-size: 13px; }
.studio-plan { background: #f0efff; color: #4943b8; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.studio-quiet-link { color: var(--studio-muted); font-size: 13px; }
.studio-quiet-link:hover { color: var(--studio-accent); }
.studio-main { max-width: 1200px; margin: auto; padding: 40px 32px 80px; }
.workspace-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 44px; align-items: start; }
.workspace-sidebar { padding-top: 6px; }
.studio-eyebrow { color: var(--studio-muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; margin-bottom: 12px; }
.workspace-sidebar > .studio-eyebrow { padding: 0 14px; }
.workspace-nav { display: flex; flex-direction: column; gap: 6px; }
.workspace-nav-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 9px; font-size: 14px; color: #58637a; white-space: nowrap; }
.workspace-nav-link > span { width: 18px; text-align: center; font-size: 18px; line-height: 1; }
.workspace-nav-link:hover { background: #edf0f6; }
.workspace-nav-link.is-active { color: var(--studio-accent); background: #eae9fc; font-weight: 650; }
.workspace-usage { margin: 28px 10px 18px; padding-top: 22px; border-top: 1px solid var(--studio-border); color: var(--studio-muted); font-size: 12px; }
.workspace-usage meter { display: block; width: 100%; height: 7px; margin: 14px 0; background: #e1e4ed; border-radius: 9px; }
.workspace-usage meter::-webkit-meter-bar { background: #e1e4ed; border: 0; height: 7px; }
.workspace-usage meter::-webkit-meter-optimum-value { background: #827bdf; }
.workspace-usage meter::-moz-meter-bar { background: #827bdf; }
.studio-page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 32px; }
.studio-page-heading h1 { font-size: 28px; font-weight: 700; letter-spacing: -.04em; line-height: 1.35; overflow-wrap: anywhere; }
.studio-page-heading .studio-eyebrow { margin-bottom: 8px; }
.studio-description { margin-top: 10px; color: var(--studio-muted); font-size: 14px; }
.studio-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 9px; font-size: 14px; font-weight: 600; white-space: nowrap; flex-shrink: 0; transition: background-color .15s, box-shadow .15s; }
.studio-button-primary { background: var(--studio-accent); color: white; border: 1px solid var(--studio-accent); box-shadow: 0 2px 3px #28245a12; }
.studio-button-primary:hover { background: #3c36b3; }
.studio-button-secondary { background: white; color: var(--studio-ink); border: 1px solid #d9ddea; }
.studio-button-secondary:hover { background: #f5f5fc; }
.studio-empty-state { background: white; border: 1px solid var(--studio-border); border-radius: 16px; padding: 48px 24px 36px; text-align: center; }
.studio-empty-state h2 { font-size: 21px; font-weight: 650; letter-spacing: -.03em; margin-bottom: 12px; }
.studio-empty-state > p:not(.studio-eyebrow) { color: var(--studio-muted); }
.studio-empty-art { position: relative; margin: 0 auto 26px; width: 112px; height: 84px; border: 1px solid #d9d5f2; border-radius: 9px; background: #faf9ff; box-shadow: 8px 8px 0 #f1effb; padding: 29px 14px 10px; }
.studio-empty-art::before { content: ""; position: absolute; inset: 0 0 auto; height: 16px; border-bottom: 1px solid #e0dcf3; background: #efedf9; border-radius: 9px 9px 0 0; }
.studio-empty-art span { display: block; height: 5px; margin-bottom: 6px; border-radius: 2px; background: #dedbf3; }
.studio-empty-art span:first-child { width: 55%; height: 9px; background: #aca5e0; }
.studio-empty-art span:last-child { width: 75%; }
.studio-steps { display: flex; justify-content: center; gap: 20px; padding: 28px 0 30px; color: #556078; font-size: 12px; }
.studio-steps li { display: flex; align-items: center; gap: 7px; }
.studio-steps li span { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #f0effa; color: var(--studio-accent); font-weight: 600; flex-shrink: 0; }
.studio-footnote { font-size: 12px; margin-top: 16px; }
.studio-section-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px; }
.studio-section-heading h2 { font-size: 14px; font-weight: 650; }
.studio-section-heading h2 span { display: inline-block; margin-left: 6px; background: #e9ebf2; border-radius: 5px; padding: 0 7px; color: var(--studio-muted); font-size: 12px; }
.studio-section-heading p { color: var(--studio-muted); font-size: 12px; }
.site-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.site-card { padding: 24px; border: 1px solid var(--studio-border); border-radius: 14px; background: white; transition: box-shadow .15s, border-color .15s; }
.site-card:hover { border-color: #c8c5e5; box-shadow: 0 6px 22px #29234208; }
.site-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.site-monogram { width: 42px; height: 42px; display: grid; place-items: center; background: #f0effb; border-radius: 11px; color: #6961bd; font-size: 19px; font-weight: 650; }
.studio-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; border-radius: 20px; padding: 4px 10px; white-space: nowrap; }
.studio-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.studio-status.is-published { color: #217455; background: #eaf6ef; }
.studio-status.is-draft { color: #6a7285; background: #f0f2f6; }
.site-card h3 { font-size: 18px; font-weight: 650; overflow-wrap: anywhere; }
.site-card h3 a:hover { color: var(--studio-accent); }
.site-card-url { margin-top: 4px; color: var(--studio-muted); font-size: 13px; overflow-wrap: anywhere; }
.site-card-description { color: var(--studio-muted); font-size: 13px; margin-top: 22px; }
.site-card-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; border-top: 1px solid #eef0f5; margin-top: 20px; padding-top: 17px; }
.site-card-manage { font-size: 13px; font-weight: 650; color: var(--studio-accent); }
.studio-capacity-note { padding: 20px 0; font-size: 13px; color: var(--studio-muted); }
.studio-capacity-note a { color: var(--studio-accent); text-decoration: underline; text-underline-offset: 3px; }
.studio-flash { border-radius: 9px; padding: 12px 16px; font-size: 14px; margin-bottom: 24px; }
.studio-flash-success { color: #226248; background: #eaf5ee; border: 1px solid #cde4d5; }
.studio-flash-error { color: #96384b; background: #fff0f2; border: 1px solid #efcfd6; }
.site-workspace { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 44px; align-items: start; }
.site-workspace-nav { display: flex; flex-direction: column; gap: 6px; }
.site-workspace-nav button { width: 100%; min-height: 44px; padding: 11px 14px; border-radius: 9px; text-align: left; font-size: 14px; }
.site-workspace-nav button[aria-selected="true"] { background: #eae9fc; color: var(--studio-accent); font-weight: 650; }
.site-workspace-nav button[aria-selected="false"] { color: var(--studio-muted); }
.site-workspace-nav button:hover { background: #eeeef6; }
.site-workspace .text-xs { font-size: 13px; }
.site-workspace .text-slate-400 { color: #68758a; }
.site-workspace .text-slate-500 { color: #59667c; }
.site-workspace textarea { line-height: 1.75; background: #fafbfe; }
.site-workspace [data-controller="tabs"] > .flex { flex-wrap: wrap; }
.site-workspace [data-tabs-target="tab"] { min-height: 40px; }
.site-workspace form > .flex { flex-wrap: wrap; }
.site-workspace input[type="text"] { min-width: 0; }
.site-overview-card { padding: 28px; border: 1px solid var(--studio-border); border-radius: 14px; background: white; }
.site-overview-card h2 { font-size: 20px; font-weight: 650; letter-spacing: -.03em; margin: 14px 0 8px; }
.site-overview-card > p { color: var(--studio-muted); font-size: 14px; }
.site-overview-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.site-overview-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; border-top: 1px solid var(--studio-border); padding-top: 24px; margin-top: 28px; }
.site-overview-details dt { color: var(--studio-muted); font-size: 12px; margin-bottom: 6px; }
.site-overview-details dd { font-size: 14px; overflow-wrap: anywhere; }
@media (max-width: 1023px) {
  .workspace-layout, .site-workspace { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .workspace-sidebar { padding-top: 0; }
  .workspace-sidebar > .studio-eyebrow, .workspace-usage { display: none; }
  .workspace-nav, .site-workspace-nav { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .site-settings-links { margin-top: 8px; padding-top: 0; border-top: 0; }
  .site-settings-links .workspace-nav-link { padding: 6px 14px; justify-content: flex-end; font-size: 13px; }
  .site-workspace-nav button { width: auto; flex-shrink: 0; white-space: nowrap; }
}
@media (max-width: 640px) {
  .studio-header-inner { height: 64px; padding: 0 18px; }
  .studio-brand { font-size: 17px; gap: 9px; }
  .studio-account { gap: 12px; }
  .studio-main { padding: 24px 18px 48px; }
  .studio-page-heading { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 24px; }
  .studio-page-heading h1 { font-size: 25px; }
  .workspace-nav-link { padding: 10px 8px; font-size: 13px; gap: 6px; }
  .workspace-layout form > .flex { flex-wrap: wrap; }
  .site-grid { grid-template-columns: minmax(0, 1fr); }
  .studio-empty-state { padding: 32px 20px; }
  .studio-empty-state h2 { font-size: 19px; }
  .studio-steps { flex-direction: column; align-items: flex-start; width: fit-content; margin: auto; gap: 14px; }
  .site-overview-card { padding: 22px; }
  .site-overview-details { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .site-workspace input[type="file"] { min-width: 0; width: 100%; }
  .site-workspace form.flex { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .studio-button, .site-card { transition: none; }
}
