/* Jordan Matter Storage — monochrome identity, colour reserved for status. */
:root {
  --bg: #f5f5f5;
  --paper: #fff;
  --ink: #171717;
  --muted: #626262;
  --line: #dcdcdc;
  --green: #171717;
  --orange: #171717;
  --soft: #ededed;
  --radius: 8px;
  --shadow: none;
  font-family: 'Arial', 'Helvetica Neue', sans-serif;
}
h1 {font-weight: 750; letter-spacing: -1.8px;}
h2, h3 {font-weight: 700;}
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #707070; outline-offset: 3px;
}
.sidebar {background: #171717; border-color: #171717; color: white; padding-top: 29px;}
.brand {display: flex; width: auto; gap: 12px; letter-spacing: 0;}
.brand img {width: 54px; height: 54px; object-fit: contain; background: white; flex-shrink: 0;}
.brand-name {display: block; font-size: 17px; font-weight: 750; line-height: 1.1; letter-spacing: -.5px;}
.brand-name > span {display: block; font-size: 12px; font-weight: 400; letter-spacing: 1.8px; margin-top: 7px;}
.sidebar .brand {flex-direction: column; align-items: flex-start; gap: 18px;}
.sidebar .brand img {width: 80px; height: 80px;}
.sidebar .brand-name {font-size: 23px;}
.sidebar nav {margin-top: 42px; gap: 7px;}
.sidebar nav > a {color: #bfbfbf; border-radius: 5px;}
.sidebar nav > a:hover {background: #303030; color: white;}
.sidebar nav > a[aria-current] {background: #fff; color: #171717;}
.sidebar nav > a[aria-current]:after {background: #171717;}
.sidebar-profile {border-color: #414141;}
.sidebar-profile strong {color: white;}
.sidebar-profile small {color: #bfbfbf; overflow-wrap: anywhere;}
.avatar, .list-icon {background: #e9e9e9; color: #343434;}
.topbar {background: white; height: 76px;}
.breadcrumb, .connection, .muted, .page-heading p {color: var(--muted);}
.breadcrumb > span:first-child {overflow-wrap: anywhere;}
.breadcrumb strong {font-weight: 600;}
.slash {color: #959595;}
.top-actions {flex-shrink: 0;}
.tiny-dot {background: #3c7953;}
.page-heading {margin-bottom: 28px;}
.page-heading h1 {margin-bottom: 0;}
.button {border-radius: 5px; font-size: 13px;}
.button.primary {background: #171717; color: white; box-shadow: none;}
.button.primary:hover {background: #393939;}
.secondary {color: #303030; border-color: #c9c9c9;}
.stat {background: white; border-radius: 6px; padding: 20px 24px; border-top: 3px solid #171717;}
.stat-label {color: #626262; font-size: 10px; letter-spacing: 1px;}
.stat strong {font-size: 38px; font-weight: 700; letter-spacing: -1px;}
.stat strong svg {color: #727272;}
.stat small {color: #626262;}
.stats {margin-bottom: 30px; gap: 16px;}
.status-dot {background: #3c7953; box-shadow: 0 0 0 5px #edf4ef;}
.count, .pill {background: #ebebeb; color: #515151;}
.pill.amber {background: #fff0d8; color: #805516;}
.subtle-link, .back-link, .text-button {color: #515151;}
.filters select, .search-field input {background: white; font-size: 12px;}
input, select, textarea {border-color: #c9c9c9; border-radius: 5px;}
input::placeholder, textarea::placeholder {color: #747474;}
.item-card {border-radius: 7px;}
.item-card:hover {box-shadow: 0 5px 15px #0000000a; border-color: #a0a0a0;}
.item-image, .item-card:nth-child(3n+2) .item-image,
.item-card:nth-child(3n+3) .item-image {background: #eeeeee;}
.item-image {height: 210px;}
.item-title {font-size: 16px; font-weight: 700;}
.category-pill {color: #414141; border: 1px solid #00000012; border-radius: 3px; background: #fffffff2;}
.location, .record-row .location {color: #626262;}
.stock {color: #356447;}
.stock > span:last-child {color: #626262;}
.stock.none {color: #805516;}
.stock.none .tiny-dot {background: #a87523;}
.item-card-bottom {border-color: #e6e6e6;}
.round-button {color: #333;}
.panel, .detail-image, .home-address {border-radius: 8px;}
.home-address, .form-item-preview {background: #eeeeee;}
.home-address .location {color: #444;}
.help-text, .record-row small, .settings-row small, .profile-preview small,
.detail-info p, .stock-detail span, .shoot-card p, .shoot-card-bottom {color: #626262;}
.notice {background: #eff5f1; border-color: #c6d9cd; color: #31533d;}
.notice.error, .notice.warning, .errorlist {background: #fff1ec; border-color: #e6c2b6; color: #923b25;}
.notice.subtle {background: #ededed; color: #555;}
.form-status, .photo-status {color: #923b25;}
.photo-input {border-color: #a8a8a8; background: #fafafa; border-radius: 8px;}
.photo-preview img {background: #eee;}
.photo-input.drag-over {background: #e8e8e8;}
.photo-picker input::file-selector-button {background: #171717; color: white; border-radius: 4px;}
.tabs a {color: #626262;}
.tabs a[aria-current] {color: #171717; border-color: #171717;}
.shoot-card:hover {border-color: #888;}
.message-bubble {background: #eee;}
.mine .message-bubble {background: #222; color: white;}
.mine .message-bubble a {color: white; text-decoration: underline;}
.team-row .actions {flex-wrap: wrap;}
.page-footer {justify-content: flex-end; color: #626262;}
.demo-banner {background: #ededed; color: #555; border-color: #ccc; font-size: 11px;}
.public-app .topbar {max-width: none; background: #171717; color: white; height: 92px; padding: 0 max(32px, calc((100vw - 1140px) / 2));}
.public-app .brand {color: white;}
.public-app .connection {color: #ccc;}
.public-app main {display: flex; align-items: center; flex-direction: column; justify-content: center; padding-top: 40px; padding-bottom: 40px;}
.public-app main > .notice, .public-app main > .flash-stack {width: 100%;}
.login-layout {display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; width: 100%; max-width: 1040px; margin: 0 auto; background: white; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; align-items: stretch;}
.login-photo {display: flex; align-items: center; justify-content: center; padding: 34px; background: white; border-right: 1px solid var(--line);}
.login-photo img {display: block; width: 100%; height: auto; object-fit: contain;}
.login-panel {border: 0; border-radius: 0; padding: 56px 44px; align-self: center; box-shadow: none;}
.login-panel h1 {font-size: 40px; margin: 0 0 30px;}
.login-panel .form-field {margin-top: 0;}
.login-panel .subtle-link {font-size: 12px; margin: 16px 0 0;}
.login-panel input {min-height: 48px; background: #fafafa;}
.login-panel input[type=checkbox] {min-height: 18px;}
.login-panel .button {min-height: 48px;}
@media (max-width: 1200px) {
  .sidebar .brand-name {font-size: 21px;}
  .item-image {height: 175px;}
}
@media (max-width: 900px) {
  .sidebar .brand-name {font-size: 19px;}
  .sidebar .brand img {width: 68px; height: 68px;}
  .stat {padding: 16px;}
  .stat strong {font-size: 30px;}
  .stat-label {font-size: 9px;}
  .login-panel {padding: 34px 28px;}
  .login-photo {padding: 20px;}
}
@media (max-width: 650px) {
  .sidebar {background: #171717; border-color: #171717; padding-top: 5px;}
  .sidebar nav {margin-top: 0;}
  .sidebar nav.has-admin {grid-template-columns: repeat(5, 1fr);}
  .sidebar nav > a {padding: 7px 3px; font-size: 10px;}
  .sidebar > .brand {display: none;}
  .topbar {height: auto; min-height: 66px; gap: 12px; padding: 12px 17px;}
  .breadcrumb {gap: 8px; flex-wrap: wrap;}
  .breadcrumb > span:first-child {max-width: 140px;}
  .connection {font-size: 9px;}
  .top-actions {gap: 8px;}
  .stats {gap: 8px; margin-bottom: 25px;}
  .stat {padding: 11px 10px;}
  .stat strong {font-size: 28px;}
  .stat-label {font-size: 8px; letter-spacing: .4px;}
  .item-image {height: 100%; min-height: 150px;}
  .item-title {font-size: 15px;}
  .team-row .actions {width: 100%;}
  .public-app .topbar {height: 80px; padding: 0 20px;}
  .brand img {width: 44px; height: 44px;}
  .brand-name {font-size: 17px;}
  .brand-name > span {font-size: 11px; margin-top: 5px;}
  .public-app main {padding: 24px 18px 32px; justify-content: flex-start;}
  .login-layout {display: flex; flex-direction: column; max-width: 420px;}
  .login-photo {height: 170px; padding: 14px; border-right: 0; border-bottom: 1px solid var(--line);}
  .login-photo img {width: auto; height: 100%;}
  .login-panel {width: 100%; padding: 26px;}
  .login-panel h1 {font-size: 32px; margin-bottom: 24px;}
}

.push-dialog {width: min(440px, calc(100vw - 32px)); padding: 28px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--paper);}
.push-dialog::backdrop {background: #0008;}
.push-logo {display: block; object-fit: contain; margin-bottom: 20px;}
.push-dialog p, .push-settings p {color: var(--muted); font-size: 14px;}
.push-dialog .actions {gap: 10px;}
.push-settings {margin-bottom: 24px;}
.push-settings-heading {display: flex; align-items: center; gap: 14px; margin-bottom: 16px;}
.push-settings-heading img {object-fit: contain;}
.push-settings-heading h2 {margin: 0;}

/* Shoot inventory selection and per-item checkout. */
.shoot-details-form {display:grid;grid-template-columns:2fr 1fr;gap:18px;margin-bottom:24px;}
.shoot-details-form .form-field {margin:0;min-width:0;}
.shoot-details-form .field-notes {grid-column:1/-1;}
.shoot-editor-grid {display:grid;grid-template-columns:1.1fr 1fr;gap:24px;align-items:start;}
.shoot-editor-grid > .panel {min-width:0;}
.picker-filters {display:grid;grid-template-columns:1.4fr 1fr;gap:12px;}
.picker-filters label {min-width:0;}
.picker-status {font-size:12px;margin:14px 0;}
.picker-result {display:flex;gap:12px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line);}
.picker-result strong,.picker-result small,.picker-item-heading strong,.picker-item-heading small {display:block;}
.picker-result strong,.picker-item-heading strong {font-size:14px;}
.picker-result small {font-size:11px;margin-top:3px;}
.picker-stock {color:#356447;}
.picker-photo {display:grid;place-items:center;background:#eee;width:46px;height:46px;flex-shrink:0;border-radius:5px;overflow:hidden;font-size:22px;color:#666;}
.picker-photo img {width:100%;height:100%;object-fit:cover;}
.picker-pages {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:20px;}
.picker-pages span {font-size:12px;color:var(--muted);}
.chosen-panel .section-heading {margin-top:0;}
.chosen-panel > p {font-size:12px;}
.chosen-item {padding:18px 0;border-bottom:1px solid var(--line);}
.picker-item-heading {display:flex;align-items:center;gap:12px;}
.chosen-controls {display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin-top:12px;}
.chosen-controls label {width:115px;margin:0;}
.chosen-controls small {font-size:11px;padding-bottom:12px;}
.shoot-save {display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:24px;padding:18px 0;border-top:1px solid var(--line);}
.shoot-save p {margin:0;font-size:13px;}
.shoot-stock-list {border:1px solid var(--line);border-radius:8px;overflow:hidden;background:white;}
.shoot-stock-row {display:grid;grid-template-columns:minmax(200px,1fr) repeat(3,105px) 24px;gap:18px;align-items:center;padding:22px;border-bottom:1px solid var(--line);}
.shoot-stock-row:last-child {border-bottom:0;}
.shoot-stock-row:hover {background:#fafafa;}
.shoot-stock-name {display:flex;gap:14px;align-items:center;min-width:0;}
.shoot-stock-name strong {display:block;font-size:16px;margin-bottom:6px;}
.shoot-stock-number span {display:block;font-size:11px;color:var(--muted);}
.shoot-stock-number strong {font-size:23px;}
.shoot-list-note {font-size:12px;margin:14px 0 26px;}
.shoot-item-actions {margin-bottom:28px;}
@media(max-width:1100px){.shoot-editor-grid{grid-template-columns:1fr;}.shoot-stock-row{grid-template-columns:minmax(150px,1fr) repeat(3,82px) 20px;gap:12px;padding:18px;}}
@media(max-width:650px){.shoot-details-form{grid-template-columns:1fr;}.picker-filters{grid-template-columns:1fr;gap:4px;}.shoot-editor-grid{gap:18px;}.picker-result{gap:9px;}.picker-result .button{padding:8px 10px;}.picker-photo{width:38px;height:38px;}.shoot-save{align-items:stretch;flex-direction:column;}.shoot-save .actions{justify-content:space-between;}.shoot-stock-row{grid-template-columns:repeat(3,1fr) 20px;gap:16px 8px;padding:18px;}.shoot-stock-name{grid-column:1/5;}.shoot-stock-number span{font-size:10px;}.shoot-stock-number strong{font-size:22px;}.shoot-stock-name .mini-item-image{width:48px;height:48px;}.shoot-stock-name strong{font-size:15px;}.shoot-row-arrow{width:20px;}}

.picker-results {max-height:540px;overflow-y:auto;overscroll-behavior:contain;padding-right:4px;}
@media(max-width:650px){.picker-results{max-height:390px;}}

.shoot-people-panel {margin-bottom:24px;}
.people-selected {display:grid;gap:8px;margin-bottom:16px;}
.people-choice {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--line);}
.people-choice span {min-width:0;overflow-wrap:anywhere;}
.people-selected .people-choice {padding:10px 14px;background:var(--soft);border:0;border-radius:6px;}
.people-results {max-height:280px;overflow-y:auto;margin:12px 0 20px;}
.people-search, #chat-search {width:100%;}
.people-dialog {width:min(520px,calc(100vw - 32px));max-height:85dvh;overflow-y:auto;border:1px solid var(--line);border-radius:10px;padding:24px;color:var(--ink);background:var(--paper);}
.people-dialog::backdrop {background:#0008;}
.people-dialog .section-heading {margin-top:0;}
.chat-person-button {display:flex;align-items:center;gap:14px;width:100%;padding:8px 0;border:0;background:transparent;color:inherit;text-align:left;}
.chat-person-button span {flex:1;min-width:0;overflow-wrap:anywhere;}
.chat-person-button small {display:block;color:var(--muted);}
.chat-person[hidden] {display:none;}

.people-menu {margin:6px 0 12px;border:1px solid var(--line);border-radius:8px;background:var(--paper);box-shadow:0 6px 18px #0000000d;overflow:hidden;}
.people-menu .people-results {max-height:240px;overflow-y:auto;overscroll-behavior:contain;margin:0;padding:4px;}
.people-menu .people-empty {margin:0;padding:16px;}
.people-menu .record-row {margin:0;padding:4px 10px;}
.people-option {width:100%;text-align:left;background:transparent;color:inherit;border:0;border-radius:4px;padding:10px 12px;}
.people-option:hover,.people-option:focus-visible,.people-menu .chat-person-button:hover {background:var(--soft);}
.people-selected {margin-top:16px;}
.people-selected:empty {display:none;}
.people-menu[hidden] {display:none;}

.people-menu {position:fixed;z-index:1000;margin:0;overflow-y:auto;}
.people-dialog {overflow:visible;}
.chat-person-button > .avatar {flex:0 0 38px;width:38px;height:38px;}
.chat-person-button > span:not(.avatar) {flex:1;}
.people-save {margin-top:16px;}
.shoot-creator {padding:10px 14px;background:var(--soft);border:0;border-radius:6px;}
.person-handle {display:block;color:var(--muted);font-size:12px;font-weight:400;}
.password-control {display:flex;align-items:stretch;position:relative;}
.password-control input {width:100%;min-width:0;padding-right:66px;}
.password-toggle {position:absolute;right:5px;top:5px;bottom:5px;padding:0 12px;border:0;border-radius:4px;background:var(--soft);color:var(--ink);font-size:12px;font-weight:600;}
.people-save-status {margin:12px 0 0;font-size:12px;}
.people-save-status:empty {display:none;}
.chat-person-button > .chat-choice-action {flex:0 0 auto;display:flex;align-items:center;gap:8px;}
.chat-choice-action small {font-size:11px;}

.storage-units {display:grid;gap:24px;}
.storage-unit .section-heading {margin:0 0 20px;gap:16px;}
.storage-unit-heading {display:flex;align-items:center;gap:16px;min-width:0;}
.storage-unit-heading strong {font-size:20px;overflow-wrap:anywhere;}
.storage-unit-heading small {display:block;}
.storage-edit {font-size:12px;color:var(--muted);margin-left:12px;}
.storage-mini-rack {--storage-colour:#777;display:block;position:relative;width:48px;height:52px;border:4px solid var(--storage-colour);border-bottom:0;background:repeating-linear-gradient(to bottom,transparent 0,transparent 12px,var(--storage-colour) 12px,var(--storage-colour) 16px);flex-shrink:0;}
.storage-rack {border-left:5px solid var(--line);border-right:5px solid var(--line);padding:0 12px;}
.storage-shelf {border-bottom:7px solid var(--line);padding:14px 4px 18px;}
.storage-shelf-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;}
.storage-boxes {display:flex;flex-wrap:wrap;gap:16px;margin-top:16px;}
.storage-box {display:flex;flex-direction:column;align-items:center;gap:7px;width:130px;padding:12px 8px;border-radius:8px;text-align:center;}
.storage-box:hover,.storage-box:focus-visible {background:var(--soft);}
.storage-box strong {max-width:100%;overflow-wrap:anywhere;}
.storage-box small {color:var(--muted);}
.storage-box-graphic {display:grid;place-items:center;position:relative;width:82px;height:64px;border:2px solid #0003;border-radius:5px;background:var(--storage-colour,#3b82f6);box-shadow:inset 0 8px 0 #ffffff40;}
.storage-box-graphic>span {display:grid;place-items:center;min-width:34px;height:32px;padding:0 5px;margin-top:6px;background:#fff;color:#171717;border-radius:3px;font-weight:700;}
.storage-areas,.storage-types {display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;}
.storage-area {display:flex;align-items:center;gap:10px;}
.storage-area .storage-edit {margin-left:auto;}
.storage-types>a {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;min-height:170px;}
.storage-types h2 {margin:0;}
.storage-type-shelf {display:block;width:90px;height:35px;border-bottom:7px solid var(--storage-colour,#777);border-left:4px solid var(--storage-colour,#777);border-right:4px solid var(--storage-colour,#777);}
.storage-empty {padding:20px 12px;font-size:13px;}
.storage-editor {display:grid;grid-template-columns:minmax(180px,280px) minmax(0,640px);gap:24px;align-items:start;}
.storage-preview {display:flex;flex-direction:column;align-items:center;gap:16px;padding:40px 20px;overflow-wrap:anywhere;}
.storage-preview-art {height:120px;display:grid;place-items:center;}
.storage-preview-art .storage-mini-rack {--storage-colour:inherit;width:94px;height:110px;background:repeating-linear-gradient(to bottom,transparent 0,transparent 25px,var(--storage-colour) 25px,var(--storage-colour) 30px);}
.storage-preview-art .storage-box-graphic {width:130px;height:95px;}
.storage-preview-art svg {height:70px;width:70px;color:var(--storage-colour);}
.storage-colours {border:0;padding:0;margin:0 0 24px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
.storage-colours legend {font-weight:600;margin-bottom:10px;}
.storage-colour {position:relative;display:flex;align-items:center;gap:7px;padding:10px 8px;border:1px solid var(--line);border-radius:6px;cursor:pointer;font-size:12px;}
.storage-colour input {position:absolute;opacity:0;width:1px;height:1px;}
.storage-colour:has(input:checked) {border-color:var(--ink);outline:1px solid var(--ink);background:var(--soft);}
.storage-colour:has(input:focus-visible) {outline:3px solid var(--ink);outline-offset:2px;}
.storage-swatch {display:block;width:18px;height:18px;border-radius:50%;background:var(--storage-colour);border:1px solid #0003;flex-shrink:0;}
@media(max-width:650px){.storage-editor{grid-template-columns:1fr;gap:16px;}.storage-preview{padding:20px;}.storage-preview-art{height:95px;}.storage-preview-art .storage-mini-rack{height:90px;}.storage-unit{padding:16px;}.storage-unit-heading{gap:8px;}.storage-unit-heading strong{font-size:17px;}.storage-unit-heading .storage-edit{display:none;}.storage-rack{padding:0 5px;}.storage-boxes{gap:5px;}.storage-box{width:108px;}.storage-colours{grid-template-columns:repeat(2,minmax(0,1fr));}}

.photo-input {cursor:pointer;}
.photo-picker input[type=file] {display:none;}
.photo-picker small {display:block;text-align:center;}
.crop-stage {touch-action:none;cursor:grab;user-select:none;}
.crop-stage:active {cursor:grabbing;}
.crop-stage:focus-visible {outline:2px solid var(--ink);outline-offset:4px;}
