/* Barberfy visual system. Shared controls, public discovery, and role workspaces. */
:root {
  --paper: #111;
  --white: #181818;
  --soft: #242424;
  --ink: #f4f4f3;
  --muted: #b5b5b5;
  --line: #343434;
  --accent: #eeeeed;
  --shadow: none;
  --pad: clamp(22px, 4.3vw, 66px);
  --content: 1392px;
  --radius: 8px;
}
body.dashdark {
  --paper: #111;
  --white: #191919;
  --soft: #252525;
  --ink: #f1f1f0;
  --muted: #b7b7b7;
  --line: #373737;
  --accent: #eeeeed;
  --shadow: none;
}
body:not(.dashdark) { --rail: 0px; }
#main { max-width: var(--content); }
:where(h1, h2, h3) { overflow-wrap: anywhere; }
.btn, .bar-user, .bar-icon, .quiet-btn { min-height: 42px; border-radius: 6px; font-size: 13px; }
body .btn.primary, .dashdark .btn.primary, body .slot.on, .dashdark .slot.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #151515;
  font-weight: 700;
}
.btn:hover, .bar-user:hover, .bar-icon:hover { border-color: #8b8b8b; }
.btn:active, .bar-user:active, .bar-icon:active { opacity: .82; }
:focus-visible, .dashdark :focus-visible { outline: 2px solid #e9e9e9; outline-offset: 3px; }
body :where(.field input, .field select, .field textarea) { border-radius: 6px; }
.field input, .field textarea { background: #1c1c1c; }
body .field select, body .catalog-inputs select { background-color: #1c1c1c; }
dialog, .outreach-dialog { border-radius: 10px; }
.empty, .dashdark #main .empty { padding: 18px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--muted); }
:where(.box, .formbox, .authbox, .card, .post-card, .map-panel, .results-panel, .skin-card) { box-shadow: none; }
body :is(.box, .formbox, .authbox, .card, .post-card, .map-panel, .results-panel, .skin-card) { border-radius: var(--radius); }
body .app-logo { min-height: 44px; width: max-content; gap: 9px; letter-spacing: -1.5px; font-weight: 800; color: var(--ink); font-size: 28px; font-family: Arial, sans-serif; line-height: 1; }
body .app-logo .icon { width: 23px; height: 23px; }
.public-bar { position: relative; isolation: isolate; width: min(100%, var(--content)); height: 73px; margin-inline: auto; background: transparent; gap: 20px; border: 0; }
body:not(.dashdark) #top { border-bottom: 1px solid #303030; }
.public-bar .header-actions { justify-content: flex-end; }
.public-bar .bar-user, .public-bar .bar-icon { color: #eee; border-color: #424242; background: #181818; }
.public-bar .bar-icon { padding: 0 11px; }
.public-nav { display: flex; align-self: stretch; align-items: stretch; gap: clamp(12px, 2.6vw, 36px); }
.public-nav a { display: flex; align-items: center; position: relative; font-size: 14px; color: #bdbdbd; white-space: nowrap; }
.public-nav a[aria-current=page], .public-nav a:hover { color: #fff; }
.public-nav a[aria-current=page]::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: #eee; }
.public-nav .icon { display: none; }

.night-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: clamp(320px, 38vw, 492px);
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: #e7e7e7;
  color: #151515;
}
.night-hero::before { content: none; }
.hero-copy { padding: clamp(25px, 4.4vw, 64px); align-self: center; }
.night-hero .hero-copy h1 { max-inline-size: 11ch; margin: 0; font-size: clamp(44px, 6.2vw, 88px); font-weight: 850; line-height: 1.21; letter-spacing: -.07em; }
.hero-copy > p { max-inline-size: 32ch; color: #484848; font-size: clamp(14px, 1.35vw, 18px); margin-block: 15px 25px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.night-hero .hero-actions .primary { background: #1b1b1b; color: #fff; border-color: #1b1b1b; padding-inline: 15px; min-height: 46px; }
.hero-copy a:focus-visible { outline-color: #161616; }
.hero-actions .icon { width: 16px; }
.hero-textlink { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; font-weight: 700; }
.hero-textlink:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero-network { position: relative; min-width: 0; margin: 0; overflow: hidden; background: #103b47; }
.hero-network img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.finder { padding-top: clamp(28px, 4.6vw, 57px); }
.finder-title h1, .finder-title h2, .explore-head h1 { font-size: clamp(27px, 4vw, 50px); letter-spacing: -.055em; font-weight: 790; }
.finder-title { margin-block-end: 19px; }
.finder-bar .finder-search, .finder-bar .area-picker select { min-height: 46px; border-radius: 6px; }
.finder-bar .finder-search:focus-within { border-color: #d1d1d1; box-shadow: none; }
.finder-bar input:focus-visible { outline: none; }
.finder-bar .area-picker { height: auto; padding: 0; }
.finder-filters { gap: 0; padding-block: 8px 16px; }
.finder-filters .filter-pill { border: 0; border-bottom: 1px solid #444; border-radius: 0; padding: 7px 14px; color: #bdbdbd; }
.finder-filters .filter-pill[aria-pressed=true] { color: #fff; background: transparent; border-color: #fff; }
.finder-split { gap: 14px; }
.finder .atlas-head, .finder .atlas-key { background: #1b1b1b; }
.finder .atlas-mark { background: transparent; }
#salonResults { scrollbar-width: thin; }
.pick-salon img { border-radius: 5px; }
.quick-title { margin-top: 34px; }
.quick-paths { gap: 0; border-block: 1px solid var(--line); }
.quick-paths .quick-tile { border: 0; border-radius: 0; background: transparent; min-height: 66px; }
.quick-paths .quick-tile + .quick-tile { border-inline-start: 1px solid var(--line); }
.quick-paths .quick-tile:hover { background: var(--white); }
.quick-paths .quick-icon { width: 26px; color: #d7d7d7; background: transparent; }
.explore-page { width: min(100%, 940px); }
.explore-head { margin-block-end: 22px; }
.explore-grid, .explore-choice { border-radius: 5px; }
.explore-choice select { border-radius: 5px; }

.lookbook { padding-block-start: clamp(22px, 4vw, 48px); }
.catalog-cover {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  min-height: clamp(176px, 22vw, 310px);
  margin-bottom: 23px;
  padding: 0;
  border: 0;
  background: #222;
  border-radius: 4px;
}
.cover-copy { padding: clamp(18px, 4vw, 50px); }
.cover-copy h1 { max-width: 16ch; font-size: clamp(28px, 4vw, 54px); line-height: 1.25; }
.cover-copy p { color: #c7c7c7; max-width: 31ch; margin-bottom: 5px; }
.cover-portraits { overflow: hidden; margin: 0; min-width: 0; background: #303030; }
.catalog-tools.catalog-search-tools { background: #171717; border-color: var(--line); border-radius: 7px; gap: 8px; }
.catalog-inputs .field { margin: 0; }
.catalog-traits { border-color: var(--line); }
.catalog-traits summary small { color: var(--muted); }
.lookbook .groupbar { display: flex; gap: 0; padding: 0; border-bottom: 1px solid var(--line); }
.lookbook .groupbar .chip { color: #bbb; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; min-height: 44px; }
.lookbook .groupbar .chip.on { color: #fff; border-bottom-color: #eee; }
.catalog-count { color: var(--muted); margin: 12px 0; font-size: 13px; }
.look-grid { gap: clamp(10px, 1.7vw, 22px); }
body .look-card, body .look-card:nth-child(n) { overflow: hidden; border: 0; border-radius: 3px; background: #262626; box-shadow: none; transform: none; }
.look-card:hover { outline: 1px solid #787878; outline-offset: -1px; }
.look-card .look-caption { flex: 1; padding: 11px 12px 14px; background: #191919; border-top: 1px solid #393939; }
.look-card .look-caption h3 { margin-block: 3px; font-size: clamp(14px, 1.45vw, 20px); }
.look-card .look-caption > :is(span,small) { color: #bcbcbc; }
.look-detail .portrait-panel, body .skin-card, .look-detail .purpose { background: #202020; border-radius: 6px; }
body .authgrid { background: #171717; border-radius: 7px; }
body .identity-card { border-radius: 8px; }
body .identity-cover.pattern-plain { background: #2d2d2d; }

/* Role workspaces */
.dashdark .appbar.workspace-bar { background: #151515; padding-inline: clamp(18px, 3vw, 42px); gap: 14px; }
.workspace-location { display: flex; align-items: center; gap: 10px; min-width: 0; color: #afafaf; font-size: 12px; }
.workspace-location strong { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 650; }
.workspace-location > span { white-space: nowrap; }
.workspace-controls { display: none; }
.workspace-exit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: transparent; color: #c4c4c4; border-radius: 5px; min-height: 44px; padding-inline: 9px; white-space: nowrap; font-size: 13px; }
.workspace-exit .icon { width: 17px; height: 17px; }
.workspace-exit:hover { background: #282828; color: #fff; }
.dashdark #main { --section-gap: clamp(18px, 2.25vw, 36px); padding: clamp(24px, 4vw, 54px) var(--pad) 42px; }
.dashdark #main :is(.work-title,.pagehead) { align-items: end; padding-block-end: 20px; border-block-end: 1px solid #383838; }
.dashdark #main :is(.work-title,.pagehead) h1 { font-size: clamp(29px, 3.7vw, 52px); font-weight: 790; line-height: 1.26; }
.dashdark #main :is(.work-title,.pagehead) .eyeline { color: #b3b3b3; font-size: 13px; margin-bottom: 7px; }
.dashdark #main .work-title .formactions { margin: 0; }
.dashdark #main .desk-section-title { font-size: 14px; font-weight: 650; color: #ccc; }
.dashdark .desk-section-title::after { background: #343434; }
.dashdark #main :is(.box, .formbox, .viz-card) { border-radius: 8px; border-color: #353535; background: #181818; box-shadow: none; }
.dashdark #main :is(.box, .formbox, .viz-card) h2 { letter-spacing: -.024em; }
.dashdark #main :is(.box, .formbox) :is(input:not([type=checkbox]):not([type=radio]), select, textarea) { background-color: #151515; border-radius: 6px; border-color: #4a4a4a; }
.dashdark #main :is(.box, .formbox) .btn { border-radius: 6px; }
.dashdark #main .metrics { gap: 1px; margin-block: 0; border: 1px solid #363636; border-radius: 8px; background: #363636; overflow: hidden; }
.dashdark #main .metrics > div { border: 0; padding: clamp(13px, 1.65vw, 24px); border-radius: 0; background: #191919; }
.dashdark #main .metrics small { color: #c2c2c2; }
.dashdark #main .metrics strong { font-size: clamp(19px, 2.4vw, 32px); line-height: 1.23; font-weight: 690; }
.dashdark #main .button-toolbar, .dashdark #main .desk-tabs { background: transparent; }
.dashdark #main .desk-tabs { border-radius: 6px; }
.dashdark #main .desk-tabs button { border-radius: 4px; }
.dashdark #main .booking-ticket, .dashdark #main .booking-empty-next { border-radius: 8px; background: #1b1b1b; }
.dashdark #main .booking-ticket.next-ticket { border-inline-start: 3px solid #e5e5e5; }
.ticket-date { border-radius: 6px; }
.dashdark #main .booking-tabs button, .dashdark #main .ticket-badges span { border-radius: 5px; }

@media (min-width: 741px) {
  body.dashdark { --rail: clamp(190px, 18vw, 248px); --pad: clamp(20px, 3.2vw, 47px); }
  .dashdark .workspace-bar > .app-logo { display: none; }
  .dashdark .app-rail { padding: 0 0 0; display: grid; grid-template-rows: 61px 1fr auto; gap: 0; overflow: hidden; background: #161616; }
  .dashdark .panel-brand { padding: 0 16px; }
  .dashdark .panel-sections { min-height: 0; overflow-y: auto; scrollbar-width: thin; padding: 8px 10px 16px; }
  .dashdark .panel-group { padding: 4px 0 8px; margin-top: 6px; border: 0; }
  .dashdark .panel-group > small { margin: 0 9px 5px; color: #ababab; }
  .dashdark .panel-group a { margin-top: 1px; min-height: 36px; border-radius: 5px; color: #c0c0c0; font-size: 12.5px; }
  .dashdark .panel-group a[aria-current=page] { background: #2c2c2c; color: #f5f5f5; box-shadow: inset -2px 0 #eee; font-weight: 650; }
  .dashdark .rail-identity { min-height: 68px; margin: 0; padding: 9px 14px; border-color: #343434; }
  .dashdark .rail-identity > .icon { background: #2d2d2d; color: #eee; border-radius: 5px; }
  .dashdark .rail-identity span { overflow: hidden; text-overflow: ellipsis; }
  .dashdark .rail-identity small { color: #a9a9a9; }
}
@media (max-width: 830px) {
  .public-nav { gap: 15px; }
  .public-nav a { font-size: 12px; }
}
@media (max-width: 740px) {
  :root, body.dashdark { --pad: 16px; --rail: 0px; }
  body, body.dashdark { padding-block-end: calc(65px + env(safe-area-inset-bottom)); }
  .public-bar, .dashdark .appbar.workspace-bar { height: 59px; padding-inline: var(--pad); }
  .public-bar .app-logo, .dashdark .app-logo { font-size: 25px; }
  .public-nav, .workspace-location, .workspace-bar > .workspace-exit { display: none; }
  .workspace-controls { display: block; }
  .drawer-trigger { display: inline-flex; width: auto; min-height: 44px; border: 1px solid #4c4c4c; border-radius: 6px; padding-inline: 10px; gap: 8px; font-size: 13px; background: #1a1a1a; white-space: nowrap; }
  .menu-lines { display: inline-block; position: relative; width: 14px; height: 10px; border-block: 1px solid currentColor; }
  .menu-lines::after { content: ""; position: absolute; inset: 3.5px 0 auto; border-bottom: 1px solid currentColor; }
  .workspace-drawer[open] { padding-inline: 16px; }
  .workspace-drawer nav a { border-radius: 5px; }
  .drawer-exit { width: 100%; border-block-start: 1px solid #404040; margin-top: 14px; justify-content: flex-start; }
  body #mobile, body.dashdark #mobile { inset: auto 0 0; border: 0; border-top: 1px solid #3d3d3d; border-radius: 0; box-shadow: none; background: #191919; padding: 2px 5px max(3px, env(safe-area-inset-bottom)); }
  body.dashdark #mobile { grid-template-columns: repeat(4, minmax(0,1fr)); }
  body.dashdark[data-screen=barber] #mobile { grid-template-columns: repeat(2, minmax(0,1fr)); }
  body #mobile a, body.dashdark #mobile a { border-radius: 0; min-height: 53px; border-block-start: 2px solid transparent; gap: 2px; color: #bcbcbc; }
  body #mobile a[aria-current=page], body.dashdark #mobile a[aria-current=page] { background: transparent; color: #fff; border-block-start-color: #eee; }
  .dashdark #main { padding: 24px var(--pad) 24px; }
  .dashdark #main :is(.work-title,.pagehead) { margin-block-end: 18px; padding-block-end: 15px; }
  .dashdark #main :is(.work-title,.pagehead) h1 { font-size: clamp(25px, 7vw, 36px); }
  .dashdark #main :is(.work-title,.pagehead) .eyeline { margin-bottom: 3px; }
  .dashdark #main :where(.work-heading,.secthead) h2 { margin: 0; }
  .dashdark #main :is(.box,.formbox,.viz-card) { padding: 14px; }
  .dashdark #main .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .night-hero { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); min-height: 264px; margin-top: 16px; }
  .hero-copy { padding: 20px; }
  .night-hero .hero-copy h1 { font-size: clamp(34px, 7vw, 52px); }
  .hero-copy > p { font-size: 13px; margin-block: 9px 12px; }
  .finder { padding-top: 30px; }
  .finder-title { margin-block-end: 12px; }
  .finder-bar .area-picker { max-width: 126px; }
  .finder-bar .finder-search input { font-size: 14px; }
  .finder-filters .filter-pill { min-height: 44px; }
  .explore-head h1 { font-size: 30px; }
  .explore-grid { border-radius: 0; }
  .cover-copy { padding: 15px; }
  .cover-copy h1 { font-size: clamp(23px, 5vw, 38px); }
  .cover-copy p { margin-block: 5px 0; font-size: 12px; }
  .cover-copy .textlink { font-size: 12px; }
}
@media (max-width: 510px) {
  .night-hero { grid-template-columns: minmax(0, 1fr); }
  .hero-network { grid-row: 1; }
  .hero-network img { position: static; height: auto; }
  .hero-copy { padding: 17px 16px 15px; }
  .night-hero .hero-copy h1 { max-inline-size: none; font-size: clamp(27px, 8.5vw, 40px); }
  .hero-copy > p { max-inline-size: 36ch; }
  .hero-actions { gap: 5px 12px; }
  .night-hero .hero-actions .btn, .hero-textlink { font-size: 12px; }
  .look-grid { gap: 9px; }
  .look-card .look-caption { padding: 8px 8px 11px; }
  .look-card .look-caption > span { font-size: 11px; overflow-wrap: anywhere; }
}
.inventory-list .work-heading { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.inventory-list .work-heading h2 { margin: 0; }
.inventory-toolbar { display: grid; grid-template-columns: minmax(0,1fr) minmax(130px,220px); gap: 12px; margin-block: 15px 18px; }
.inventory-toolbar .field { margin: 0; }
.inventory-search { position: relative; display: block; }
.inventory-search > .icon { position: absolute; inset-inline-start: 10px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
#stockSearch { width: 100%; padding-inline-start: 34px; }
.inventory-empty { padding: 30px 12px 18px; border-top: 1px solid var(--line); display: grid; justify-items: center; text-align: center; gap: 8px; }
.inventory-empty > .icon { width: 25px; height: 25px; color: #a4a4a4; margin-block-end: 3px; }
.inventory-empty > h3 { font-size: 17px; }
.inventory-empty > p { color: var(--muted); font-size: 13px; }
.inventory-empty > .btn { margin-top: 5px; }
.inventory-list .stock-row { padding-block: 15px; }
.inventory-list .stock-row:last-child { border-block-end: 0; }
.inventory-list .stock-row .contact-actions { justify-content: end; }
@media(max-width:480px) {
  .inventory-toolbar { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 8px; }
  .inventory-list .stock-row .contact-actions { justify-content: start; }
}
@media(max-width:740px) {
  .dashdark #stockSummary .metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .dashdark #stockSummary .metrics > div { padding: 11px 7px; }
  .dashdark #stockSummary .metrics small { font-size: 11px; }
  .dashdark #stockSummary .metrics small .icon { display: none; }
  body:not(.dashdark):has(.public-bar a[href="#studio"].bar-user) #mobile { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
#stockSummary { margin-block-end: var(--section-gap); }
.catalog-cover { min-height: clamp(176px, 21vw, 270px); }
.look-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
.look-detail a.cast-note { text-decoration: underline; text-underline-offset: 3px; }
@media(max-width:1090px) { .look-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media(max-width:740px) {
  .look-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media(max-width:510px) { .look-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
