.studio-body { min-height: 100vh; }
.studio-account { display: flex; align-items: center; gap: 14px; }
.role-badge { padding: 7px 11px; border-radius: 999px; background: var(--cream-deep); color: var(--wine); font-size: .7rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.text-button, .forgot-link { border: 0; background: none; color: var(--wine); font: inherit; font-size: .86rem; font-weight: 800; cursor: pointer; }
.studio-main { padding-block: 54px 100px; }
.auth-layout { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 80px; min-height: calc(100vh - 185px); }
.auth-intro h1, .access-denied h1, .workspace-heading h1 { margin-bottom: 24px; font-size: clamp(3.4rem, 7vw, 6.8rem); letter-spacing: -.055em; }
.auth-intro h1 em { color: var(--wine); font-weight: 500; }
.access-note { display: flex; gap: 16px; max-width: 560px; margin-top: 38px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,253,248,.75); }
.access-note strong { flex: 0 0 auto; color: var(--wine); }
.access-note span { color: var(--muted); }
.auth-card { padding: 38px; border: 1px solid var(--line); border-radius: 30px; background: var(--paper); box-shadow: var(--shadow); }
.auth-card h2 { margin-bottom: 30px; font-size: 2.4rem; }
label { display: grid; gap: 8px; color: var(--ink); font-size: .76rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; outline: none; background: white; color: var(--ink); font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; }
input, select { min-height: 52px; padding: 0 15px; }
textarea { padding: 14px 15px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(115,33,63,.1); }
.auth-card label + label { margin-top: 18px; }
.full-button { width: 100%; cursor: pointer; }
button.button { font: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
.form-message { min-height: 25px; margin: 14px 0; color: #a02b40; font-size: .86rem; font-weight: 700; }
.form-message.success { color: var(--sage); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.forgot-link { display: block; margin-top: 20px; text-align: center; text-decoration: none; }
.access-denied { max-width: 850px; padding: 80px 0; }
.access-denied p:not(.eyebrow) { max-width: 650px; color: var(--muted); font-size: 1.1rem; }
.workspace-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 35px; margin-bottom: 38px; }
.workspace-heading h1 { margin-bottom: 10px; }
.workspace-heading p:last-child { max-width: 650px; margin: 0; color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 34px; }
.stats-grid article { padding: 25px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); }
.stats-grid span { display: block; color: var(--muted); font-size: .74rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.stats-grid strong { display: block; margin-top: 5px; font-family: Georgia, serif; font-size: 2.4rem; }
.studio-tabs { display: inline-flex; gap: 5px; margin-bottom: 18px; padding: 5px; border-radius: 15px; background: var(--cream-deep); }
.studio-tabs button { min-height: 42px; padding: 0 18px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font: inherit; font-weight: 850; cursor: pointer; }
.studio-tabs button[aria-selected="true"] { background: white; color: var(--wine); box-shadow: 0 3px 12px rgba(70,40,20,.08); }
.panel { min-height: 420px; padding: 26px; border: 1px solid var(--line); border-radius: 26px; background: var(--paper); }
.toolbar { display: grid; grid-template-columns: 1fr 240px; gap: 12px; margin-bottom: 16px; }
.panel-status { min-height: 24px; margin: 8px 0 12px; color: var(--muted); font-size: .85rem; }
.catalog-list, .review-list { display: grid; }
.catalog-row { display: grid; grid-template-columns: 1.2fr 1fr .75fr auto; align-items: center; gap: 20px; padding: 18px 8px; border-top: 1px solid var(--line); }
.catalog-row:first-child { border-top: 0; }
.catalog-row h3 { margin: 0 0 4px; font-family: Georgia, serif; font-size: 1.28rem; }
.catalog-row p, .catalog-row span { margin: 0; color: var(--muted); font-size: .86rem; }
.category-chip { justify-self: start; padding: 5px 9px; border-radius: 999px; background: var(--cream-deep); color: var(--wine) !important; font-size: .67rem !important; font-weight: 900; }
.small-button { min-height: 38px; padding: 0 14px; border: 1px solid var(--wine); border-radius: 999px; background: transparent; color: var(--wine); font: inherit; font-size: .8rem; font-weight: 850; cursor: pointer; }
.review-heading h2 { margin-bottom: 5px; font-size: 2rem; }
.review-heading p { margin: 0 0 20px; color: var(--muted); }
.review-card { margin-top: 14px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--cream); }
.review-card:first-child { margin-top: 0; }
.review-card header { display: flex; justify-content: space-between; gap: 20px; }
.review-card h3 { margin: 0 0 5px; font-family: Georgia, serif; font-size: 1.6rem; }
.review-card header p { margin: 0; color: var(--muted); }
.review-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0; }
.review-details div { padding: 12px; border-radius: 12px; background: white; }
.review-details strong { display: block; color: var(--wine); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; }
.review-details span { display: block; margin-top: 3px; font-size: .88rem; }
.review-actions { display: flex; justify-content: flex-end; gap: 10px; }
.danger-button { border-color: #a02b40; color: #a02b40; }
.empty-state { padding: 80px 20px; text-align: center; }
.empty-state > span { display: inline-grid; width: 54px; height: 54px; place-items: center; border: 2px solid var(--sage); border-radius: 50%; color: var(--sage); font-size: 1.5rem; }
.empty-state h3 { margin: 18px 0 6px; font-size: 1.5rem; }
.empty-state p { margin: 0; color: var(--muted); }
.modal { position: fixed; inset: 0; z-index: 40; display: grid; justify-items: end; }
.modal-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(33,30,26,.45); backdrop-filter: blur(3px); }
.editor-sheet { position: relative; width: min(760px, 100%); height: 100%; overflow-y: auto; padding: 32px 38px 50px; background: var(--paper); box-shadow: -20px 0 60px rgba(30,20,10,.18); }
.editor-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.editor-header h2 { margin: 0; font-size: 2.4rem; }
.close-button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--cream-deep); color: var(--ink); font-size: 1.8rem; cursor: pointer; }
.form-section { padding: 25px 0; border-top: 1px solid var(--line); }
.form-section h3 { margin-bottom: 18px; }
.form-grid { display: grid; gap: 17px; }
.form-grid.two { grid-template-columns: repeat(2, 1fr); }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.span-two { grid-column: 1 / -1; }
label small { color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.editor-actions { position: sticky; bottom: -50px; display: flex; justify-content: flex-end; gap: 10px; margin: 10px -38px -50px; padding: 20px 38px; border-top: 1px solid var(--line); background: rgba(255,253,248,.96); backdrop-filter: blur(14px); }
.toast { position: fixed; z-index: 60; right: 24px; bottom: 24px; max-width: 420px; padding: 15px 18px; border-radius: 14px; background: var(--wine-dark); color: white; box-shadow: var(--shadow); font-weight: 750; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
[hidden] { display: none !important; }

@media (max-width: 820px) {
  .auth-layout { grid-template-columns: 1fr; gap: 35px; }
  .auth-intro { padding-top: 20px; }
  .workspace-heading { align-items: flex-start; flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr 1fr 1fr; }
  .catalog-row { grid-template-columns: 1fr auto; gap: 8px 14px; }
  .catalog-row > :nth-child(2), .catalog-row > :nth-child(3) { grid-column: 1; }
  .catalog-row button { grid-column: 2; grid-row: 1 / span 3; }
  .review-details { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .studio-main { padding-top: 30px; }
  .studio-account .role-badge { display: none; }
  .auth-card { padding: 25px 20px; }
  .access-note { flex-direction: column; gap: 4px; }
  .stats-grid { grid-template-columns: 1fr; }
  .studio-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .panel { padding: 18px 14px; }
  .toolbar { grid-template-columns: 1fr; }
  .review-details { grid-template-columns: 1fr; }
  .review-actions { align-items: stretch; flex-direction: column-reverse; }
  .editor-sheet { padding: 24px 18px 40px; }
  .form-grid.two, .form-grid.three { grid-template-columns: 1fr; }
  .editor-actions { bottom: -40px; margin: 10px -18px -40px; padding: 15px 18px; }
}
