
:root {
  --ink: #f4efeb;
  --muted: #9f9693;
  --faint: #6e6664;
  --bg: #0c0a0b;
  --panel: #151112;
  --panel-2: #1b1517;
  --line: rgba(255,255,255,.1);
  --wine: #8f1f32;
  --wine-bright: #b53149;
  --wine-soft: #d28793;
  --cream: #efe2d4;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
button { color: inherit; }
.app-shell { min-height: 100vh; overflow: hidden; background: radial-gradient(circle at 80% 6%, rgba(110,20,36,.13), transparent 28%), var(--bg); }

.topbar { height: 82px; padding: 0 4.5vw; display: flex; align-items: center; border-bottom: 1px solid var(--line); position: relative; z-index: 20; background: rgba(12,10,11,.9); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 12px; border: 0; background: none; font-family: Georgia, "Times New Roman", serif; font-size: 24px; letter-spacing: -.03em; cursor: pointer; }
.brand-mark { width: 33px; height: 33px; display: grid; place-items: center; background: var(--wine); font-family: Georgia, serif; font-style: italic; font-size: 21px; border-radius: 50% 50% 46% 54%; box-shadow: 0 0 0 1px #bd5265 inset; }
.main-nav { display: flex; justify-content: center; gap: 5px; margin: 0 auto; }
.main-nav button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 30px 14px 27px; font-size: 13px; position: relative; white-space: nowrap; }
.main-nav button:hover, .main-nav button.active { color: white; }
.main-nav button.active::after { content: ""; position: absolute; height: 2px; background: var(--wine-bright); bottom: 0; left: 13px; right: 13px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.search-button, .menu-button { background: none; border: 0; font-size: 25px; color: var(--muted); cursor: pointer; }
.menu-button { display: none; }
.role-switch { display: flex; align-items: center; gap: 9px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 5px 10px 5px 5px; cursor: pointer; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #702031, #b84558); display: grid; place-items: center; font-family: Georgia, serif; }
.role-copy { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; min-width: 69px; }
.role-copy b { font-size: 12px; }.role-copy small { color: var(--faint); font-size: 9px; }

.hero { min-height: 625px; display: grid; grid-template-columns: 1fr 1fr; position: relative; border-bottom: 1px solid var(--line); }
.hero-copy { padding: 105px 4vw 80px 8.5vw; position: relative; z-index: 2; }
.eyebrow { margin: 0 0 15px; color: var(--wine-soft); text-transform: uppercase; font-size: 10px; font-weight: 700; letter-spacing: .22em; }
.hero h1, .page-intro h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(50px, 5.8vw, 88px); font-weight: 400; letter-spacing: -.055em; line-height: .95; }
.hero h1 em { color: var(--wine-soft); font-weight: 400; }
.hero-text { color: var(--muted); max-width: 470px; line-height: 1.7; margin: 28px 0; font-size: 15px; }
.search-wrap { height: 52px; width: min(100%, 470px); display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 3px; background: rgba(255,255,255,.035); padding: 0 15px; }
.search-wrap input { background: transparent; border: 0; outline: 0; color: var(--ink); flex: 1; font-size: 13px; min-width: 0; }
.search-wrap kbd { color: var(--faint); font-size: 10px; border: 1px solid var(--line); padding: 3px 6px; border-radius: 4px; }
.hero-art { position: relative; overflow: hidden; min-height: 600px; }
.hero-art::before { content: ""; position: absolute; inset: 8% 10% -8% 5%; background: radial-gradient(ellipse, rgba(130,32,51,.45), rgba(31,12,17,.1) 55%, transparent 70%); filter: blur(10px); }
.hero-art img { position: absolute; width: 62%; height: 82%; object-fit: cover; top: 9%; left: 20%; border-radius: 52% 48% 9% 9% / 30% 35% 8% 8%; filter: saturate(.8) contrast(1.08); box-shadow: 0 30px 100px rgba(0,0,0,.6); }
.hero-orbit { position: absolute; border: 1px solid rgba(191,95,110,.22); border-radius: 50%; z-index: 1; }
.orbit-one { width: 500px; height: 500px; top: 50px; left: 55px; }.orbit-two { width: 630px; height: 630px; top: -15px; left: -10px; }
.hero-caption { position: absolute; z-index: 3; bottom: 10%; left: 8%; display: flex; flex-direction: column; background: rgba(12,9,10,.86); backdrop-filter: blur(18px); border: 1px solid var(--line); padding: 18px 24px; min-width: 230px; }
.hero-caption span { color: var(--wine-soft); text-transform: uppercase; font-size: 8px; letter-spacing: .2em; }.hero-caption b { font-family: Georgia, serif; font-size: 18px; margin: 6px 0 3px; }.hero-caption small { color: var(--muted); }
.content-section, .workspace { padding: 70px 8.5vw; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 30px; }
.section-heading h2, .panel h2, .page-intro h1, .quality-summary h2 { font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: 400; margin: 0; letter-spacing: -.03em; }
.text-button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px; padding: 7px; }.text-button span { color: var(--wine-soft); margin-left: 8px; }
.collections { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 17px; }
.collection-card { height: 260px; border: 1px solid var(--line); padding: 0; position: relative; overflow: hidden; background: var(--panel); cursor: pointer; text-align: left; border-radius: 2px; }
.collection-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; filter: saturate(.7); }
.collection-card:hover img { transform: scale(1.04); }.collection-card.selected { outline: 1px solid var(--wine-bright); }
.collection-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,6,7,.85), rgba(8,6,7,.05) 80%), linear-gradient(0deg, rgba(8,6,7,.55), transparent 60%); }
.collection-copy { position: absolute; inset: auto 24px 23px; display: flex; flex-direction: column; }
.collection-copy small { color: var(--wine-soft); text-transform: uppercase; letter-spacing: .17em; font-size: 8px; }.collection-copy b { font-family: Georgia, serif; font-weight: 400; font-size: 30px; margin: 3px 0; }.collection-copy em { color: #c9c0bc; font-size: 11px; font-style: normal; }
.articles-section { padding-top: 30px; }
.view-actions { display: flex; gap: 2px; }.view-actions button { border: 1px solid var(--line); background: transparent; color: var(--faint); padding: 7px 10px; }.view-actions button.active { background: var(--wine); color: white; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px 20px; }
.empty-message { color: var(--muted); grid-column: 1 / -1; padding: 40px 0; }
.article-card { min-width: 0; }
.article-image { width: 100%; aspect-ratio: 4/5; padding: 0; border: 0; background: var(--panel); overflow: hidden; position: relative; cursor: pointer; }
.article-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease, filter .55s ease; filter: saturate(.75); }
.article-image:hover img { transform: scale(1.025); filter: saturate(.9) brightness(.75); }
.status-chip { position: absolute; top: 12px; left: 12px; background: rgba(13,10,11,.78); border: 1px solid var(--line); backdrop-filter: blur(8px); padding: 5px 9px; font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.hover-actions { opacity: 0; transition: opacity .25s; position: absolute; inset: auto 12px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.article-image:hover .hover-actions, .article-image:focus .hover-actions { opacity: 1; }
.hover-actions span { background: rgba(16,11,13,.9); border: 1px solid rgba(255,255,255,.2); padding: 10px 8px; font-size: 10px; }
.hover-actions span:first-child { background: var(--wine); }
.article-meta { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-top: 15px; }
.article-meta small { color: var(--wine-soft); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }.article-meta h3 { font-family: Georgia, serif; margin: 3px 0 0; font-weight: 400; font-size: 20px; }.article-meta > b { font-size: 14px; }
.article-properties { display: flex; gap: 7px; margin-top: 11px; }.article-properties span { color: var(--muted); border: 1px solid var(--line); padding: 4px 7px; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }

.workspace { min-height: calc(100vh - 82px); max-width: 1600px; margin: auto; }
.page-intro { display: flex; justify-content: space-between; gap: 40px; align-items: flex-end; margin: 35px 0 55px; }
.page-intro h1 { font-size: clamp(48px, 5vw, 72px); }.page-intro > div > p:last-child { color: var(--muted); margin: 18px 0 0; }
.primary-button, .ghost-button, .outline-button { border: 0; padding: 13px 18px; cursor: pointer; font-size: 11px; }
.primary-button { background: var(--wine); color: white; }.primary-button:hover { background: var(--wine-bright); }
.ghost-button, .outline-button { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.metric-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 45px; }
.metric { background: linear-gradient(135deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; }
.metric small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }.metric b { font-family: Georgia, serif; font-weight: 400; font-size: 31px; margin: 10px 0 4px; }.metric span { color: var(--wine-soft); font-size: 9px; }
.table-toolbar { display: flex; justify-content: space-between; margin-bottom: 15px; }.filter-pills { display: flex; gap: 5px; flex-wrap: wrap; }.filter-pills button { border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 8px 13px; font-size: 10px; }.filter-pills button.active { background: var(--cream); color: #1b1415; }
.inventory-table { border-top: 1px solid var(--line); }
.table-row { display: grid; grid-template-columns: 2fr 1.1fr 1.2fr .7fr .8fr .6fr; align-items: center; min-width: 900px; padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.table-row:not(.table-head):hover { background: rgba(255,255,255,.025); }
.table-head { text-transform: uppercase; letter-spacing: .12em; color: var(--faint); font-size: 8px; padding-top: 16px; padding-bottom: 16px; }
.table-product { display: flex; align-items: center; gap: 12px; }.table-product img { width: 46px; height: 53px; object-fit: cover; }.table-product > span { display: flex; flex-direction: column; gap: 4px; }.table-product b, .table-row > span > b { color: var(--ink); font-size: 11px; }.table-product small { color: var(--faint); }
.table-row button { border: 0; background: none; color: var(--wine-soft); cursor: pointer; font-size: 10px; }
.dot { width: 6px; height: 6px; display: inline-block; background: var(--wine-bright); border-radius: 50%; margin-right: 7px; }
.inventory-table { overflow-x: auto; }
.two-column { display: grid; grid-template-columns: 1.15fr .85fr; gap: 17px; }
.panel { border: 1px solid var(--line); background: rgba(255,255,255,.02); padding: 27px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }.panel-head h2 { font-size: 28px; }
.confidence { background: rgba(143,31,50,.18); color: var(--wine-soft); padding: 5px 9px; font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.price-row { display: grid; grid-template-columns: 56px 1fr auto auto; align-items: center; gap: 13px; padding: 12px 0; border-top: 1px solid var(--line); }
.price-row img { width: 56px; height: 65px; object-fit: cover; }.price-row div { display: flex; flex-direction: column; gap: 5px; }.price-row div b { font-family: Georgia, serif; font-weight: 400; }.price-row small { color: var(--muted); font-size: 9px; }.price-row > span { text-align: right; display: flex; flex-direction: column; }.price-row > span b { color: var(--wine-soft); }.price-row button { border: 1px solid var(--line); background: transparent; padding: 7px 9px; color: var(--muted); font-size: 9px; cursor: pointer; }
.chart { height: 240px; position: relative; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(255,255,255,.045) 60px); }
.chart > span { position: absolute; bottom: 0; width: 7%; background: linear-gradient(0deg, rgba(143,31,50,.35), rgba(181,49,73,.85)); }.chart-line { position: absolute; inset: 30% 0 auto; border-top: 1px dashed rgba(210,135,147,.3); }
.chart-labels { display: flex; justify-content: space-around; color: var(--faint); font-size: 8px; padding-top: 10px; }
.outfit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.outfit-card { border: 1px solid var(--line); padding-bottom: 20px; }.outfit-image { height: 340px; position: relative; margin-bottom: 16px; overflow: hidden; }.outfit-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.65); transition: .5s; }.outfit-card:hover img { transform: scale(1.03); filter: saturate(.9); }.outfit-image > span { position: absolute; top: 12px; right: 13px; font-family: Georgia, serif; color: rgba(255,255,255,.5); }
.outfit-card > small, .outfit-card > h2, .stacked-avatars { margin-left: 18px; margin-right: 18px; }.outfit-card > small { color: var(--wine-soft); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }.outfit-card > h2 { font-family: Georgia, serif; font-weight: 400; margin-top: 5px; margin-bottom: 14px; }
.stacked-avatars { display: flex; }.stacked-avatars img, .stacked-avatars b { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--panel); object-fit: cover; margin-right: -7px; }.stacked-avatars b { display: grid; place-items: center; background: var(--wine); font-size: 10px; }
.empty-outfit { border: 1px dashed rgba(255,255,255,.18); background: rgba(255,255,255,.01); min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; color: var(--muted); cursor: pointer; }.empty-outfit > span { width: 46px; height: 46px; border: 1px solid var(--line); display: grid; place-items: center; border-radius: 50%; color: var(--wine-soft); font-size: 23px; }.empty-outfit b { font-family: Georgia, serif; font-weight: 400; color: var(--ink); }.empty-outfit small { color: var(--faint); }
.quality-summary { display: flex; align-items: center; gap: 30px; padding: 28px; border: 1px solid var(--line); background: radial-gradient(circle at 10% 50%, rgba(143,31,50,.18), transparent 27%); margin-bottom: 25px; }.quality-summary h2 { margin-bottom: 7px; }.quality-summary > div > p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.score-ring { width: 105px; height: 105px; border: 5px solid var(--wine); border-right-color: rgba(143,31,50,.3); border-radius: 50%; display: flex; align-items: baseline; justify-content: center; padding-top: 30px; flex: none; }.score-ring b { font-family: Georgia, serif; font-size: 32px; }.score-ring span { color: var(--faint); font-size: 9px; }
.issue { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; border-bottom: 1px solid var(--line); padding: 20px 15px; transition: opacity .3s; }.issue.resolved { opacity: .35; }.issue-icon { width: 30px; height: 30px; border-radius: 50%; background: rgba(143,31,50,.2); color: var(--wine-soft); display: grid; place-items: center; }.issue small { color: var(--wine-soft); font-size: 8px; text-transform: uppercase; letter-spacing: .12em; }.issue h3 { margin: 4px 0; font-family: Georgia, serif; font-weight: 400; }.issue p { margin: 0; color: var(--muted); font-size: 10px; }.issue button { border: 0; background: none; color: var(--wine-soft); font-size: 10px; cursor: pointer; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.72); backdrop-filter: blur(4px); display: flex; justify-content: flex-end; }
.edit-drawer { width: min(660px, 100%); height: 100%; overflow-y: auto; background: #100d0e; border-left: 1px solid var(--line); padding: 35px; box-shadow: -20px 0 70px rgba(0,0,0,.5); animation: slide-in .3s ease; }
@keyframes slide-in { from { transform: translateX(30px); opacity: 0; } }
.drawer-head { display: flex; justify-content: space-between; }.drawer-head h2 { font-family: Georgia, serif; font-weight: 400; font-size: 34px; margin: 0; }.close-button { border: 1px solid var(--line); background: none; color: var(--muted); width: 38px; height: 38px; font-size: 24px; cursor: pointer; }
.drawer-preview { display: flex; gap: 15px; align-items: center; margin: 28px 0; border: 1px solid var(--line); padding: 10px; }.drawer-preview img { width: 70px; height: 82px; object-fit: cover; }.drawer-preview div { display: flex; flex-direction: column; gap: 5px; }.drawer-preview b { font-family: Georgia, serif; font-weight: 400; font-size: 18px; }.drawer-preview span { color: var(--muted); font-size: 10px; }
.form-label { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .13em; }
.workflow-track { display: flex; justify-content: space-between; position: relative; padding-top: 6px; }.workflow-track::before { content: ""; position: absolute; height: 1px; background: var(--line); left: 8%; right: 8%; top: 19px; }.workflow-track button { position: relative; border: 0; background: none; z-index: 1; cursor: pointer; display: flex; flex-direction: column; align-items: center; color: var(--faint); gap: 6px; font-size: 8px; padding: 0 2px; }.workflow-track i { width: 27px; height: 27px; background: #211a1c; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-style: normal; }.workflow-track button.done i { background: var(--wine); color: white; }.workflow-track button.done { color: var(--ink); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 30px; }.form-grid label { display: flex; flex-direction: column; gap: 7px; }.form-grid label > span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }.form-grid input, .form-grid select { width: 100%; border: 1px solid var(--line); background: rgba(255,255,255,.025); color: var(--ink); padding: 12px; outline: none; border-radius: 0; }.form-grid input:focus, .form-grid select:focus { border-color: var(--wine); }.input-suffix { display: flex; position: relative; }.input-suffix b { position: absolute; right: 12px; top: 11px; color: var(--muted); }
.drawer-actions { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); margin-top: 35px; padding-top: 20px; }
.toast { position: fixed; z-index: 80; bottom: 25px; left: 50%; transform: translateX(-50%); background: var(--cream); color: #231719; padding: 12px 18px; font-size: 11px; box-shadow: 0 10px 40px #000; animation: toast-in .25s ease; }.toast span { color: var(--wine); margin-right: 9px; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

@media (max-width: 1080px) {
  .main-nav button { padding-left: 8px; padding-right: 8px; font-size: 11px; }
  .role-copy { display: none; }
  .hero-copy { padding-left: 5vw; }
  .content-section, .workspace { padding-left: 5vw; padding-right: 5vw; }
  .outfit-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .topbar { height: 68px; padding: 0 18px; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: #100d0e; border-bottom: 1px solid var(--line); padding: 8px 18px 18px; flex-direction: column; }
  .main-nav.open { display: flex; }.main-nav button { text-align: left; padding: 12px 8px; }.main-nav button.active::after { left: 0; top: 7px; bottom: 7px; width: 2px; height: auto; }
  .menu-button { display: block; }.search-button { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }.hero-copy { padding: 70px 22px 35px; }.hero h1 { font-size: 50px; }.hero-art { min-height: 440px; }.hero-art img { width: 68%; left: 20%; }
  .content-section, .workspace { padding: 50px 20px; }
  .collections { grid-template-columns: 1fr; }.collection-card { height: 220px; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 27px 10px; }.article-meta { display: block; }.article-meta > b { display: block; margin-top: 6px; }.article-properties span:last-child { display: none; }
  .page-intro { align-items: flex-start; flex-direction: column; margin-top: 15px; }.page-intro h1 { font-size: 50px; }
  .metric-row { grid-template-columns: repeat(2, 1fr); }.two-column { grid-template-columns: 1fr; }.outfit-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }.edit-drawer { padding: 25px 18px; }.workflow-track span { display: none; }
  .quality-summary { align-items: flex-start; flex-direction: column; }.issue { grid-template-columns: 38px 1fr; }.issue button { grid-column: 2; justify-self: start; padding: 8px 0; }
}

@media (max-width: 420px) {
  .article-grid { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: 1fr; }
  .section-heading h2 { font-size: 28px; }
}

/* Glossroom PHP compatibility layer */
body.tina-redesign {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(120, 22, 47, 0.28), transparent 32rem),
    radial-gradient(circle at 88% 18%, rgba(105, 82, 67, 0.2), transparent 30rem);
  background-attachment: fixed;
}

.tina-redesign .app-shell {
  width: min(1540px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding-top: 82px;
}

.tina-redesign .topbar {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 1040;
  width: min(1540px, calc(100% - 32px));
  box-sizing: border-box;
  transform: translateX(-50%);
}

.tina-redesign .main-nav a {
  position: relative;
  padding: 26px 13px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.tina-redesign .main-nav a:hover,
.tina-redesign .main-nav a:focus-visible {
  color: var(--ink);
}

.tina-redesign .main-nav a.active {
  color: var(--ink);
}

.tina-redesign .main-nav a.active::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 0;
  left: 13px;
  height: 2px;
  background: var(--wine-bright);
}

.tina-redesign .header-actions .role-switch {
  cursor: default;
}

.tina-redesign .menu-button {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.tina-redesign .menu-button:hover {
  border-color: var(--wine);
  background: rgba(137, 24, 54, 0.24);
}

.tina-redesign .menu-dropdown {
  width: min(420px, calc(100vw - 24px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(20, 16, 18, 0.98);
  backdrop-filter: blur(18px);
}

.tina-redesign .menu-dropdown[hidden] {
  display: none !important;
}

.tina-redesign .menu-dropdown ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.tina-redesign .menu-dropdown a {
  display: block;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  text-decoration: none;
}

.tina-redesign .menu-dropdown a:hover,
.tina-redesign .menu-dropdown a.active {
  color: var(--ink);
  background: rgba(137, 24, 54, 0.28);
}

.tina-redesign .page-stage {
  min-height: calc(100vh - 150px);
  padding: 28px 0 48px;
}

.tina-redesign h1,
.tina-redesign h2,
.tina-redesign h3,
.tina-redesign .page-title {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

.tina-redesign a {
  color: #d9a4b2;
}

.tina-redesign a:hover {
  color: var(--ink);
}

.tina-redesign .card,
.tina-redesign .modal-content,
.tina-redesign .accordion-item,
.tina-redesign .list-group-item,
.tina-redesign .dropdown-menu {
  color: var(--ink);
  border-color: var(--line);
  background: var(--panel);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

.tina-redesign .card-header,
.tina-redesign .card-footer,
.tina-redesign .modal-header,
.tina-redesign .modal-footer {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.tina-redesign .accordion {
  --bs-accordion-active-color: var(--ink);
  --bs-accordion-active-bg: rgba(137, 24, 54, 0.2);
  --bs-accordion-btn-focus-border-color: var(--line);
  --bs-accordion-btn-focus-box-shadow: none;
}

.tina-redesign .accordion-button:not(.collapsed) {
  color: var(--ink) !important;
  border-color: var(--line) !important;
  background:
    linear-gradient(90deg, rgba(137, 24, 54, 0.26), rgba(137, 24, 54, 0.08) 72%, transparent) !important;
  box-shadow: none !important;
  font-weight: 800;
}

.tina-redesign .accordion-button:not(.collapsed)::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--wine-bright);
  box-shadow: 0 0 0 4px rgba(181, 49, 73, 0.14);
}

.tina-redesign .table {
  --bs-table-color: var(--ink);
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--line);
  --bs-table-striped-color: var(--ink);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.025);
  --bs-table-hover-color: var(--ink);
  --bs-table-hover-bg: rgba(137, 24, 54, 0.12);
}

.tina-redesign .form-control,
.tina-redesign .form-select,
.tina-redesign .input-group-text,
.tina-redesign textarea {
  color: var(--ink);
  border-color: var(--line);
  background: #171315;
}

.tina-redesign .form-control:focus,
.tina-redesign .form-select:focus {
  color: var(--ink);
  border-color: var(--wine);
  background: #171315;
  box-shadow: 0 0 0 0.2rem rgba(137, 24, 54, 0.18);
}

.tina-redesign .form-control::placeholder {
  color: #81777b;
}

.tina-redesign .btn {
  border-radius: 999px;
  font-weight: 700;
}

.tina-redesign .btn-primary,
.tina-redesign .btn-success {
  border-color: var(--wine);
  background: var(--wine);
}

.tina-redesign .btn-primary:hover,
.tina-redesign .btn-success:hover {
  border-color: var(--wine-bright);
  background: var(--wine-bright);
}

.tina-redesign .text-muted,
.tina-redesign .form-text {
  color: var(--muted) !important;
}

@media (max-width: 1100px) {
  .tina-redesign .main-nav {
    display: none;
  }
}

@media (max-width: 700px) {
  .tina-redesign .app-shell {
    width: min(100% - 18px, 1540px);
    padding-top: 68px;
  }

  .tina-redesign .topbar {
    width: min(100% - 18px, 1540px);
    height: 68px;
    padding-inline: 10px;
    gap: 10px;
    background: rgba(12, 10, 11, 0.98);
  }

  .tina-redesign .brand {
    gap: 9px;
    color: var(--ink);
    font-size: 1.25rem;
    text-decoration: none;
  }

  .tina-redesign .brand-mark {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
  }

  .tina-redesign .header-actions {
    margin-left: auto;
    gap: 8px;
  }

  .tina-redesign .menu-button {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-color: rgba(210, 135, 147, 0.55);
    color: #fff;
    background: rgba(143, 31, 50, 0.72);
  }

  .tina-redesign .menu-button:focus-visible {
    outline: 2px solid var(--wine-soft);
    outline-offset: 3px;
  }

  .tina-redesign .role-copy {
    display: none;
  }

  .tina-redesign .menu-dropdown {
    width: calc(100vw - 16px);
    padding: 8px;
    border-color: rgba(210, 135, 147, 0.28);
    border-radius: 14px;
    background: #181315;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.72) !important;
  }

  .tina-redesign .menu-dropdown ul {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .tina-redesign .menu-dropdown a,
  .tina-redesign .menu-dropdown a:visited {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 12px 14px;
    color: #f4efeb;
    font-size: 0.95rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    background: rgba(255, 255, 255, 0.025);
  }

  .tina-redesign .menu-dropdown a:hover,
  .tina-redesign .menu-dropdown a:focus-visible,
  .tina-redesign .menu-dropdown a.active {
    color: #fff;
    background: rgba(143, 31, 50, 0.55);
  }

  .tina-redesign .page-stage {
    padding-top: 18px;
  }
}

@media (max-width: 420px) {
  .tina-redesign .role-switch {
    display: none;
  }
}
