:root {
  --paper: #f2eee8;
  --surface: #faf7f2;
  --ink: #241d19;
  --muted: #6f6259;
  --line: #cfc3b8;
  --accent: #217873;
  --accent-light: #7fcac1;
  --charcoal: #000000;
  --walnut: #000000;
  --ember: #c57645;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, sans-serif; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }

header {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 5vw, 64px);
  border-bottom: 1px solid #49372f;
  background: var(--charcoal);
  color: var(--paper);
}

.brand { font: 1.65rem Georgia, serif; }
.site-logo { display: block; width: auto; max-width: 210px; height: 42px; object-fit: contain; }
.site-navigation { position: relative; margin-left: auto; color: #cbbeb4; font-size: .9rem; }
.site-menu { position: relative; border: 0; }
.site-menu > summary { min-width: 104px; min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 13px; border: 1px solid rgba(255,255,255,.32); border-radius: 3px; color: #f8f1e9; font: 600 .8rem Arial, sans-serif; list-style: none; cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
.site-menu > summary:hover, .site-menu[open] > summary { border-color: rgba(255,255,255,.72); background: rgba(255,255,255,.06); }
.site-menu-icon { width: 17px; height: 12px; display: block; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; position: relative; }
.site-menu-icon::after { content: ""; position: absolute; top: 5px; right: 0; left: 0; border-top: 1px solid currentColor; }
.site-menu-panel { position: absolute; z-index: 20; top: calc(100% + 9px); right: 0; width: 224px; padding: 7px; border: 1px solid #343434; border-radius: 3px; background: #000; box-shadow: 0 18px 42px rgba(0,0,0,.34); }
.site-menu-panel a { min-height: 42px; display: flex; align-items: center; padding: 0 12px; border-radius: 2px; color: #d8d0c9; }
.site-menu-panel a:hover, .site-menu-panel a[aria-current="page"] { background: #181818; color: white; }
.site-menu-panel a[aria-current="page"] { border-left: 2px solid var(--accent-light); }

.home-page { background: var(--charcoal); color: #fffaf4; }
.home-page header { position: absolute; z-index: 2; top: 0; left: 0; width: 100%; border-bottom-color: rgba(255,255,255,.14); background: rgba(0,0,0,.72); }
.home-page main { min-height: 100vh; }
.home-hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.home-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.97) 0%, rgba(0,0,0,.78) 44%, rgba(0,0,0,.14) 82%); }
.home-content { position: relative; z-index: 1; width: min(760px, 100%); padding: 120px clamp(20px, 7vw, 90px) 58px; }
.home-content .eyebrow { color: #000000; }
.home-content .eyebrow:empty { display: none; }
.home-content h1 { margin: 0 0 12px; font: 400 clamp(3.5rem, 8vw, 6.6rem)/.98 Georgia, serif; letter-spacing: 0; }
.home-content > p:not(.eyebrow) { margin-bottom: 34px; color: #ded2c8; font: 1.25rem Georgia, serif; }
.home-actions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; width: min(900px, 100%); color: #fffaf4; }
.home-actions a { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid rgba(255,255,255,.5); border-radius: 3px; background: rgba(0,0,0,.62); font-weight: 600; }
.home-actions a:hover { border-color: #fffaf4; background: #fffaf4; color: var(--charcoal); }
.home-featured { padding: 68px clamp(20px, 7vw, 90px) 78px; background: var(--surface); color: var(--ink); }
.home-featured > div:first-child { margin-bottom: 24px; }
.home-featured h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.home-featured-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.home-featured-grid a { display: block; min-width: 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.home-featured-grid img { width: 100%; aspect-ratio: 4 / 3; display: block; margin-bottom: 14px; object-fit: cover; background: var(--charcoal); }
.home-featured-grid span { color: var(--accent); font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.home-featured-grid h3 { margin: 3px 0; font-size: 1.2rem; }
.home-featured-grid p { margin: 0; color: var(--muted); font-size: .82rem; }

.collection-page { background: var(--surface); }
.collection-hero { position: relative; min-height: 430px; display: flex; align-items: flex-end; overflow: hidden; }
.collection-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.collection-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.95), rgba(0,0,0,.65) 48%, rgba(0,0,0,.12)); }
.collection-hero > div { position: relative; z-index: 1; width: min(760px, 100%); padding: 70px clamp(20px, 7vw, 90px); color: #fffaf4; }
.collection-hero .eyebrow { color: var(--accent-light); }
.collection-hero h1 { margin: 0 0 12px; font: 400 clamp(3.2rem, 7vw, 6rem)/1 Georgia, serif; letter-spacing: 0; }
.collection-hero > div > p:last-child { max-width: 570px; margin: 0; color: #ded2c8; font-size: 1.06rem; }
.collection-inventory { padding: 70px clamp(20px, 7vw, 90px) 82px; }
.collection-heading { margin-bottom: 28px; }
.inventory-search { position: relative; width: min(460px, 100%); margin-top: 22px; }
.inventory-search label { margin-bottom: 7px; color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.inventory-search input { border-color: var(--line); background: var(--paper); }
.inventory-search input:focus { outline: 2px solid rgba(33,120,115,.25); outline-offset: 2px; border-color: var(--accent); }
.search-results { position: absolute; z-index: 5; top: calc(100% + 8px); left: 0; width: 100%; max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); box-shadow: 0 18px 36px rgba(33,24,21,.14); }
.search-results a { min-height: 76px; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 13px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink); }
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover, .search-results a.is-active { background: var(--surface); }
.search-results img { width: 64px; height: 56px; display: block; object-fit: cover; transform: scale(1.45); }
.search-results strong { display: block; font: 1rem Georgia, serif; font-weight: 400; }
.search-results small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.search-empty { margin: 0; padding: 15px 14px; color: var(--muted); font-size: .9rem; }
.collection-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.collection-list article { min-height: 158px; display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: stretch; border-bottom: 1px solid var(--line); cursor: pointer; }
.collection-list article:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.collection-list article:nth-child(odd) { border-right: 1px solid var(--line); }
.collection-list figure { min-width: 0; margin: 0; overflow: hidden; background: var(--charcoal); }
.collection-list img { width: 100%; height: 100%; display: block; object-fit: cover; transform: scale(1.5); }
.collection-list article > div { align-self: center; min-width: 0; padding: 20px 24px; }
.collection-list span { color: var(--accent); font-size: .7rem; font-weight: 600; text-transform: uppercase; }
.collection-list h3 { margin: 3px 0 4px; font-size: 1.28rem; }
.collection-list p { margin: 0; color: var(--muted); font-size: .88rem; }
.collection-list strong { display: block; margin-top: 8px; font-size: .8rem; }
.collection-filter-note { margin: -8px 0 24px; color: var(--muted); font-size: .86rem; }
.collection-filter-note a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.crop-sapphire { object-position: 15% 36%; }
.crop-ruby { object-position: 34% 36%; }
.crop-emerald { object-position: 53% 36%; }
.crop-aquamarine { object-position: 82% 34%; }
.crop-tsavorite { object-position: 19% 68%; }
.crop-spinel { object-position: 37% 68%; }
.crop-tourmaline { object-position: 57% 68%; }
.crop-opal { object-position: 79% 68%; }
.collection-contact { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 54px clamp(20px, 7vw, 90px); background: var(--walnut); color: #f8f1e9; }
.collection-contact .eyebrow { color: var(--accent-light); }
.collection-contact h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.collection-contact .button { border-color: var(--ember); background: var(--ember); color: var(--charcoal); font-weight: 600; }
.collection-contact .button:hover { background: #d88c5c; }

.stone-page { background: var(--surface); }
.stone-detail { padding: 58px clamp(20px, 7vw, 90px) 82px; }
.back-link { display: inline-block; margin-bottom: 28px; color: var(--accent); font-size: .88rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.stone-layout { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 76px); align-items: start; }
.stone-gallery { display: grid; gap: 12px; }
.stone-gallery figure { margin: 0; overflow: hidden; border-radius: 3px; background: var(--charcoal); }
.stone-gallery img { width: 100%; height: 100%; display: block; object-fit: cover; transform: scale(1.35); }
.stone-image-button { width: 100%; height: 100%; display: block; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.stone-gallery figcaption { padding: 7px 10px; color: var(--muted); font-size: .74rem; }
.stone-photo-main { height: clamp(320px, 46vw, 560px); }
.stone-photo-detail { height: 150px; }
.stone-copy h1 { margin: 0 0 14px; font: 400 clamp(3rem, 6vw, 5.4rem)/1 Georgia, serif; letter-spacing: 0; }
.stone-summary { max-width: 640px; margin-bottom: 30px; color: var(--muted); font: 1.18rem/1.5 Georgia, serif; }
.stone-copy dl { margin: 0; border-top: 1px solid var(--line); }
.stone-copy dl > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.stone-copy dt { color: var(--accent); font-size: .74rem; font-weight: 700; text-transform: uppercase; }
.stone-copy dd { margin: 0; color: var(--ink); font-size: .95rem; }
.stone-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; }
.stone-actions > strong { font: 1.2rem Georgia, serif; font-weight: 400; }
.price-stack { display: grid; gap: 6px; }
.price-stack > strong { font: 1.2rem Georgia, serif; font-weight: 400; }
.trade-price { display: block; color: var(--accent); font: .86rem Arial, sans-serif; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.stone-not-found { min-height: calc(100vh - 156px); padding: 100px clamp(20px, 7vw, 90px); }
.stone-not-found h1 { margin: 0 0 12px; font: 400 clamp(2.5rem, 6vw, 5rem)/1 Georgia, serif; letter-spacing: 0; }
.stone-not-found p:not(.eyebrow) { max-width: 520px; color: var(--muted); }
.stone-additional-copy { max-width: 680px; margin: 24px 0 0; color: var(--muted); white-space: pre-line; }
.certificate-link { display: inline-block; margin-top: 22px; color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.stone-lightbox { width: min(960px, calc(100vw - 30px)); max-height: calc(100vh - 30px); padding: 0; border: 1px solid var(--line); background: var(--charcoal); }
.stone-lightbox::backdrop { background: rgba(0,0,0,.85); }
.stone-lightbox img { width: 100%; max-height: calc(100vh - 60px); display: block; object-fit: contain; }
.stone-lightbox button { position: absolute; z-index: 2; top: 8px; right: 8px; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: rgba(0,0,0,.72); color: white; font-size: 1.5rem; cursor: pointer; }
.stone-related { margin-top: 70px; padding-top: 34px; border-top: 1px solid var(--line); }
.stone-related h2 { margin-bottom: 20px; font-size: 2rem; }
.stone-related > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stone-related a { display: grid; gap: 4px; }
.stone-related img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--charcoal); }
.stone-related span { margin-top: 8px; font: 1.05rem Georgia, serif; }
.stone-related small { color: var(--muted); }
.development-notice { margin: 0 0 20px; padding: 11px 13px; border-left: 3px solid var(--accent); background: #e9f1ef; color: #395d59; font-size: .86rem; }
.stone-unavailable { color: var(--muted); font-size: .86rem; }
.stone-gallery video { width: 100%; display: block; background: var(--charcoal); }

.about-page { background: var(--surface); }
.about-hero { position: relative; min-height: 430px; display: flex; align-items: flex-end; overflow: hidden; }
.about-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.about-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.96), rgba(0,0,0,.68) 50%, rgba(0,0,0,.16)); }
.about-hero > div { position: relative; z-index: 1; padding: 70px clamp(20px, 7vw, 90px); color: #fffaf4; }
.about-hero .eyebrow { color: var(--accent-light); }
.about-hero h1 { margin: 0 0 10px; font: 400 clamp(3.2rem, 7vw, 6rem)/1 Georgia, serif; letter-spacing: 0; }
.about-hero > div > p:last-child { margin: 0; color: #ded2c8; font: 1.15rem Georgia, serif; }
.about-intro { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 7vw, 90px); padding: 76px clamp(20px, 7vw, 90px); }
.about-intro h2 { font-size: clamp(2.2rem, 4vw, 4rem); }
.about-intro > p { max-width: 680px; margin: 25px 0 0; color: var(--muted); font-size: 1.02rem; }
.about-credentials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 clamp(20px, 7vw, 90px) 82px; }
.about-credentials article { min-width: 0; padding: 28px clamp(20px, 3vw, 38px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-credentials article + article { border-left: 1px solid var(--line); }
.about-credentials article > p:first-child { margin-bottom: 28px; color: var(--accent); font-size: .74rem; font-weight: 700; }
.about-credentials h2 { margin-bottom: 5px; font-size: 1.65rem; }
.about-credentials span { display: block; min-height: 48px; color: var(--accent); font-size: .82rem; font-weight: 600; }
.about-credentials article > p:last-of-type { margin: 18px 0 0; color: var(--muted); font-size: .9rem; }
.credential-link { display: inline-block; margin-top: 18px; color: var(--accent); font-size: .82rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.credential-link:hover { color: var(--ink); }
.about-micro { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 7vw, 90px); padding: 76px clamp(20px, 7vw, 90px); background: var(--walnut); color: #f8f1e9; }
.about-micro .eyebrow { color: var(--accent-light); }
.about-micro h2 { font-size: clamp(2.2rem, 4vw, 4rem); }
.about-micro > div:last-child { max-width: 680px; padding-top: 25px; }
.about-micro > div:last-child p { color: #d4c8bf; }
.about-contact { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 52px clamp(20px, 7vw, 90px); background: var(--paper); }
.about-contact > p { max-width: 520px; margin: 0; font: 1.35rem Georgia, serif; }
.about-contact > div { display: flex; align-items: center; gap: 24px; }
.about-contact .text-link { margin-top: 0; white-space: nowrap; }

.hero { position: relative; min-height: 520px; display: flex; align-items: center; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.96) 0%, rgba(0,0,0,.82) 45%, rgba(0,0,0,.12) 78%); }
.hero-copy { position: relative; z-index: 1; width: min(620px, 90%); padding: 64px clamp(20px, 7vw, 90px); }
h2, h3, p { margin-top: 0; }
h2, h3 { font-family: Georgia, serif; font-weight: 400; letter-spacing: 0; }
.hero-copy p { max-width: 390px; margin-bottom: 26px; color: #f2e9e1; font: 1.35rem/1.45 Georgia, serif; }

.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid var(--charcoal); border-radius: 3px; background: var(--charcoal); color: white; font: inherit; cursor: pointer; }
.button:hover { background: #181818; }
.hero .button { border-color: var(--ember); background: var(--ember); color: var(--charcoal); font-weight: 600; }
.hero .button:hover { background: #d88c5c; }

.section { padding: 82px clamp(20px, 7vw, 90px); border-top: 1px solid var(--line); background: var(--surface); }
.section-title { margin-bottom: 32px; }
.section-title > p { margin-bottom: 7px; color: var(--accent); font-size: .75rem; font-weight: bold; text-transform: uppercase; }
h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.4rem); }

.stock-photo { height: clamp(240px, 34vw, 430px); margin: 0 0 30px; overflow: hidden; }
.stock-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.stock-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stock-list article { min-height: 116px; display: flex; align-items: center; gap: 18px; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.stock-list article:nth-child(odd) { padding-right: 28px; }
.stock-list article:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
.stock-list h3 { margin-bottom: 3px; font-size: 1.2rem; }
.stock-list span { color: var(--accent); font-size: .72rem; text-transform: uppercase; }
.stock-list p { margin: 0; color: var(--muted); font-size: .9rem; }
.stock-list strong { display: block; margin-top: 7px; color: var(--ink); font-size: .82rem; font-weight: 600; }
.text-link { display: inline-block; margin-top: 26px; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

form { max-width: 760px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: grid; gap: 7px; color: #d4c8bf; font-size: .85rem; }
input, select, textarea { width: 100%; min-height: 46px; padding: 9px 11px; border: 1px solid #8c7467; border-radius: 3px; background: #f8f4ee; color: var(--ink); font: inherit; }
textarea { resize: vertical; }
.conditional-field[hidden] { display: none; }
.message-field { grid-column: 1 / -1; }
form .button { width: fit-content; margin-top: 4px; }
form .button:disabled { cursor: wait; opacity: .65; }
.appointment-page .button { border-color: var(--ember); background: var(--ember); color: var(--charcoal); font-weight: 600; }
.appointment-page .button:hover { background: #d88c5c; }
.form-result { align-self: center; margin: 4px 0 0; color: #b8d9c0; }

.trade-page { background: var(--surface); }
.trade-hero { position: relative; min-height: 430px; display: flex; align-items: flex-end; overflow: hidden; }
.trade-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.trade-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.96), rgba(0,0,0,.72) 52%, rgba(0,0,0,.18)); }
.trade-hero > div { position: relative; z-index: 1; width: min(780px, 100%); padding: 70px clamp(20px, 7vw, 90px); color: #fffaf4; }
.trade-hero .eyebrow { color: var(--accent-light); }
.trade-hero h1, .trade-simple h1, .admin-section h1 { margin: 0 0 12px; font: 400 clamp(3rem, 6vw, 5rem)/1 Georgia, serif; letter-spacing: 0; }
.trade-hero > div > p:not(.eyebrow) { max-width: 640px; color: #ded2c8; font-size: 1.06rem; }
.trade-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 28px; }
.trade-actions .button, .trade-form .button, .admin-page .button, .trade-panel .button { border-color: var(--ember); background: var(--ember); color: var(--charcoal); font-weight: 600; }
.trade-actions .button:hover, .trade-form .button:hover, .admin-page .button:hover, .trade-panel .button:hover { background: #d88c5c; }
.trade-section, .trade-simple, .admin-section { padding: 76px clamp(20px, 7vw, 90px); }
.trade-form, .compact-form { max-width: 860px; }
.compact-form { grid-template-columns: 1fr; }
.trade-page label, .admin-page label { color: var(--muted); }
.trade-page .form-result, .admin-page .form-result { color: var(--accent); }
.trade-muted { max-width: 680px; color: var(--muted); }
.trade-panel, .admin-card, .admin-price-card, .admin-login-card { border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.trade-panel { max-width: 760px; padding: 28px; }
.admin-login-card { max-width: 760px; padding: 28px; }
.admin-login-card h2 { margin-bottom: 8px; font-size: 1.8rem; }
.admin-login-card form { margin-top: 22px; }
.status-pill { width: fit-content; margin: 0 0 14px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--accent); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.status-approved-trade { border-color: rgba(33,120,115,.45); background: rgba(33,120,115,.08); }
.status-rejected, .status-suspended { border-color: #b48673; color: #8d4027; }
.account-details, .admin-details { margin: 0 0 24px; }
.account-details > div, .admin-details > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; padding: 12px 0; border-top: 1px solid var(--line); }
.account-details dt, .admin-details dt { color: var(--accent); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.account-details dd, .admin-details dd { margin: 0; color: var(--ink); }
.admin-list { display: grid; gap: 18px; }
.admin-card, .admin-price-card { padding: 24px; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.admin-toolbar .trade-muted { margin: 0; }
.admin-card-head { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.admin-card h2, .admin-price-card h2 { margin-bottom: 4px; font-size: 1.8rem; }
.admin-card a, .admin-details a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.secondary-button { border-color: var(--charcoal) !important; background: transparent !important; color: var(--charcoal) !important; }
.secondary-button:hover { background: var(--charcoal) !important; color: white !important; }
.admin-price-card { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(170px, .45fr) minmax(170px, .45fr) auto; gap: 18px; align-items: end; }
.admin-price-card .form-result { grid-column: 1 / -1; margin: 0; }

.appointment-page { background: var(--charcoal); color: #f8f1e9; }
.appointment-page main { min-height: calc(100vh - 78px); }
.appointment-hero { position: relative; min-height: calc(100vh - 78px); display: flex; align-items: center; overflow: hidden; }
.appointment-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.appointment-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.97) 0%, rgba(0,0,0,.9) 48%, rgba(0,0,0,.26) 82%); }
.appointment-content { position: relative; z-index: 1; width: min(820px, 72%); padding: 72px clamp(20px, 7vw, 90px) 82px; }
.appointment-content .section-title { margin-bottom: 30px; }
.appointment-content .section-title > p { color: var(--accent-light); }
.appointment-content h1 { margin: 0; font: 400 clamp(2.5rem, 5vw, 4.6rem)/1.04 Georgia, serif; letter-spacing: 0; }
.appointment-content form { width: 100%; }

.guide { background: var(--paper); }
.guide-preview > p { max-width: 620px; margin-bottom: 24px; color: var(--muted); }
.guide-list { max-width: 820px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { padding: 18px 0; font: 1.15rem Georgia, serif; cursor: pointer; }
details p { max-width: 680px; padding: 0 0 18px; margin: 0; color: var(--muted); }

.education-page { background: #000; color: #f8f1e9; }
.education-hero { position: relative; min-height: 430px; display: flex; align-items: flex-end; overflow: hidden; }
.education-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.education-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.96), rgba(0,0,0,.68) 48%, rgba(0,0,0,.18)); }
.education-hero > div { position: relative; z-index: 1; width: min(760px, 100%); padding: 70px clamp(20px, 7vw, 90px); color: #fffaf4; }
.education-hero h1 { margin: 0 0 16px; font: 400 clamp(2.6rem, 6vw, 5rem)/1.03 Georgia, serif; letter-spacing: 0; }
.education-hero > div > p:last-child { max-width: 560px; margin: 0; color: #ded2c8; font-size: 1.08rem; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: .74rem; font-weight: 700; text-transform: uppercase; }
.education-hero .eyebrow { color: var(--accent-light); }

.education-intro { max-width: 880px; padding: 76px clamp(20px, 7vw, 90px) 42px; }
.education-intro h2 { margin-bottom: 16px; }
.education-intro > p:last-child { max-width: 680px; margin-bottom: 0; color: #cfc7c0; font-size: 1.04rem; }

.mineral-encyclopedia { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0 clamp(20px, 7vw, 90px) 82px; background: #000; }
.mineral-card { border: 1px solid var(--line); border-top: 6px solid var(--accent); border-radius: 6px; background: var(--surface); color: var(--ink); overflow: hidden; }
.mineral-card:nth-child(4n + 2) { border-top-color: #2b7d72; }
.mineral-card:nth-child(4n + 3) { border-top-color: #a32f51; }
.mineral-card:nth-child(4n) { border-top-color: #5b7d47; }
.mineral-card > header { height: auto; display: block; padding: 25px 28px 22px; border: 0; background: transparent; color: var(--ink); }
.mineral-card > header p { margin-bottom: 7px; color: var(--accent); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.mineral-card > header h2 { margin-bottom: 8px; font-size: clamp(2rem, 3.2vw, 3rem); }
.mineral-card > header span { color: var(--muted); font-size: .82rem; }
.variety-list { margin: 0; padding: 0 28px 22px; }
.variety-list > div { display: grid; grid-template-columns: minmax(120px, .42fr) minmax(0, 1fr); gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.variety-list dt { font: 1rem Georgia, serif; }
.variety-list dd { margin: 0; color: var(--muted); font-size: .86rem; }
.compact-varieties > div { padding: 10px 0; }
.education-availability { margin: 0 28px 24px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); }
.education-availability > summary { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 13px; color: var(--accent); font: 700 .78rem Arial, sans-serif; list-style: none; cursor: pointer; }
.education-availability > summary::-webkit-details-marker { display: none; }
.education-availability > summary::after { content: "+"; color: var(--muted); font-size: 1rem; }
.education-availability[open] > summary::after { content: "−"; }
.education-availability > summary span { min-width: 24px; height: 24px; display: inline-grid; place-items: center; margin-left: auto; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); font-size: .7rem; }
.education-stone-menu { border-top: 1px solid var(--line); }
.education-stone-menu a { min-height: 52px; display: grid; align-content: center; gap: 2px; padding: 9px 13px; border-bottom: 1px solid var(--line); color: var(--ink); }
.education-stone-menu a:hover { background: var(--surface); }
.education-stone-menu a:last-child { border-bottom: 0; }
.education-stone-menu span { font: 1rem Georgia, serif; }
.education-stone-menu small { color: var(--muted); font-size: .72rem; }
.education-stone-menu .education-view-all { color: var(--accent); font: 700 .76rem Arial, sans-serif; }
.education-availability-disabled { min-height: 42px; margin: 0 28px 24px; padding: 0 13px; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: #8d8279; font: 700 .76rem Arial, sans-serif; cursor: not-allowed; opacity: .72; }
.origin-links { padding: 0 28px 28px; }
.origin-links > p { margin-bottom: 10px; color: var(--accent); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.origin-links > div { display: flex; flex-wrap: wrap; gap: 8px; }
.origin-links a { min-height: 38px; display: inline-flex; align-items: center; padding: 0 13px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); font-size: .82rem; }
.origin-links a:hover { border-color: var(--accent); color: var(--accent); }

.material-section { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr); gap: 54px; padding: 76px clamp(20px, 7vw, 90px); background: var(--walnut); color: #f8f1e9; }
.material-section .eyebrow { color: var(--accent-light); }
.material-section h2 { font-size: clamp(2.2rem, 4vw, 4rem); }
.material-section dl { margin: 0; }
.material-section dl > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; padding: 15px 0; border-top: 1px solid #715a4d; }
.material-section dt { font: 1.05rem Georgia, serif; }
.material-section dd { margin: 0; color: #d4c8bf; font-size: .9rem; }
.material-section .origin-links { grid-column: 1 / -1; padding: 8px 0 2px; }
.material-section .origin-links > p { color: var(--accent-light); }
.material-section .origin-links a { border-color: #715a4d; background: #0d0d0d; color: #f8f1e9; }
.material-section .origin-links a:hover { border-color: var(--accent-light); color: var(--accent-light); }
.material-section .education-availability, .material-section .education-availability-disabled { grid-column: 1 / -1; width: fit-content; margin: 10px 0 0; border-color: #715a4d; background: #0d0d0d; color: #cfc7c0; }
.material-section .education-availability > summary { color: var(--accent-light); }
.material-section .education-availability > summary span { border-color: #715a4d; color: #f8f1e9; }
.material-section .education-stone-menu { border-top-color: #715a4d; }
.material-section .education-stone-menu a { border-bottom-color: #715a4d; color: #f8f1e9; }
.material-section .education-stone-menu a:hover { background: #181818; }
.material-section .education-stone-menu small { color: #cfc7c0; }
.education-sources { padding: 64px clamp(20px, 7vw, 90px); background: #000; color: #f8f1e9; }
.education-sources h2 { margin-bottom: 24px; }
.education-sources > div { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.education-sources a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

.education-note { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 52px clamp(20px, 7vw, 90px); border-top: 1px solid #343434; background: #000; }
.education-note p { max-width: 720px; margin: 0; color: #cfc7c0; }
.education-note .button { border-color: #f8f1e9; background: transparent; color: #f8f1e9; }
.education-note .button:hover { background: #f8f1e9; color: #000; }

.origin-page { background: var(--paper); }
.origin-country[hidden], .origin-not-found[hidden] { display: none; }
.origin-hero { position: relative; min-height: 390px; display: flex; align-items: flex-end; overflow: hidden; }
.origin-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.origin-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.97), rgba(0,0,0,.72) 52%, rgba(0,0,0,.2)); }
.origin-hero > div { position: relative; z-index: 1; padding: 70px clamp(20px, 7vw, 90px); color: #fffaf4; }
.origin-hero .eyebrow { color: var(--accent-light); }
.origin-hero h1 { margin: 0 0 10px; font: 400 clamp(3rem, 7vw, 6rem)/1 Georgia, serif; letter-spacing: 0; }
.origin-hero > div > p:last-child { max-width: 620px; margin: 0; color: #ded2c8; font-size: 1.08rem; }
.origin-summary { display: grid; grid-template-columns: minmax(170px, .35fr) minmax(0, 1fr); gap: 38px; padding: 54px clamp(20px, 7vw, 90px); background: var(--surface); }
.origin-summary a { width: fit-content; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.origin-summary p { max-width: 760px; margin: 0; color: var(--muted); }
.origin-summary .origin-gems { margin-top: 12px; color: var(--accent); font-size: .88rem; font-weight: 600; }
.mine-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0 clamp(20px, 7vw, 90px) 78px; background: var(--surface); }
.mine-card { padding: 26px; border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: 6px; background: var(--paper); }
.mine-card:nth-child(2) { border-top-color: #2b7d72; }
.mine-card:nth-child(3) { border-top-color: #a32f51; }
.mine-card h2 { margin-bottom: 14px; font-size: 1.75rem; }
.mine-card > p:not(.eyebrow) { color: var(--muted); font-size: .9rem; }
.mine-card ul { margin: 20px 0 0; padding-left: 19px; }
.mine-card li { margin-top: 11px; font-size: .86rem; }
.origin-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 48px clamp(20px, 7vw, 90px); background: var(--walnut); color: #f8f1e9; }
.origin-sources h2 { width: 100%; margin-bottom: 5px; font-size: 1.65rem; }
.origin-sources a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 4px; }
.origin-not-found { min-height: calc(100vh - 156px); padding: 100px clamp(20px, 7vw, 90px); }
.origin-not-found h1 { font: 400 clamp(2.5rem, 6vw, 5rem)/1 Georgia, serif; }
footer { display: grid; grid-template-columns: minmax(160px,.4fr) minmax(0,1.6fr); gap: 16px 38px; padding: 28px clamp(20px, 7vw, 90px); border-top: 1px solid #49372f; background: var(--charcoal); color: #cbbeb4; font: .95rem Georgia, serif; }
footer nav { justify-content: flex-end; flex-wrap: wrap; gap: 8px 22px; font: .72rem Arial, sans-serif; }
footer nav a { text-decoration: underline; text-underline-offset: 3px; }
footer > p { grid-column: 1 / -1; margin: 0; color: #9f9188; font: .7rem Arial, sans-serif; }
.footer-brand { color: #eee6df; }
.legal-page { min-height: 70vh; padding: 64px clamp(20px, 7vw, 90px) 86px; background: var(--surface); }
.legal-page article { width: min(850px, 100%); margin: 0 auto; }
.legal-page h1 { margin: 0 0 12px; font: 400 clamp(2.6rem, 6vw, 4.8rem)/1 Georgia, serif; }
.legal-updated { margin: 0 0 42px; color: var(--muted); font-size: .78rem; }
.legal-page section { padding: 26px 0; border-top: 1px solid var(--line); }
.legal-page section h2 { margin-bottom: 12px; font-size: 1.6rem; }
.legal-page section p, .legal-page section li { color: var(--muted); }
.legal-page section ul { padding-left: 20px; }

/* Secure content management system */
.cms-admin-page { min-height: 100vh; background: #ece8e2; color: var(--ink); }
.cms-login-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: var(--charcoal); }
.cms-login-card { width: min(460px, 100%); padding: 36px; border: 1px solid #58463d; border-radius: 6px; background: var(--surface); box-shadow: 0 24px 70px rgba(0,0,0,.25); }
.cms-login-card .brand { display: block; margin-bottom: 54px; color: var(--ink); }
.cms-login-card h1 { margin: 0 0 12px; font: 400 2.6rem/1 Georgia, serif; }
.cms-login-card > p:not(.eyebrow) { color: var(--muted); }
.cms-login-form { grid-template-columns: 1fr; margin-top: 26px; }
.cms-login-card label, .cms-form label { color: var(--muted); }
.cms-login-card .form-result { color: var(--accent); }
.cms-back-link { display: inline-block; margin-top: 28px; color: var(--accent); font-size: .85rem; text-decoration: underline; text-underline-offset: 4px; }
.cms-reset-link { margin-top: 14px; padding: 0; border: 0; background: transparent; color: var(--accent); font: .8rem Arial, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cms-login-form[hidden] { display: none; }
.cms-shell { min-height: 100vh; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.cms-sidebar { position: sticky; z-index: 20; top: 0; height: 100vh; display: flex; flex-direction: column; overflow-y: auto; padding: 28px 18px 20px; background: var(--charcoal); color: #eee6df; }
.cms-admin-brand { display: grid; gap: 4px; padding: 0 10px 28px; border-bottom: 1px solid #4b3a32; font: 1.25rem Georgia, serif; }
.cms-admin-brand small { color: #aa9d94; font: .66rem Arial, sans-serif; font-weight: 700; text-transform: uppercase; }
.cms-sidebar nav { display: grid; gap: 3px; margin-top: 22px; }
.cms-sidebar nav button, .cms-sidebar-footer button, .cms-sidebar-footer a { width: 100%; min-height: 40px; display: flex; align-items: center; padding: 0 11px; border: 0; border-radius: 3px; background: transparent; color: #cfc2b8; font: .78rem Arial, sans-serif; font-weight: 600; text-align: left; cursor: pointer; }
.cms-sidebar nav button:hover, .cms-sidebar nav button.is-active, .cms-sidebar-footer button:hover, .cms-sidebar-footer a:hover { background: #1a1a1a; color: white; }
.cms-sidebar nav button.is-active { border-left: 3px solid var(--accent-light); }
.cms-sidebar-footer { display: grid; gap: 3px; margin-top: auto; padding-top: 18px; border-top: 1px solid #4b3a32; }
.cms-main { min-width: 0; }
.cms-topbar { position: sticky; z-index: 10; top: 0; height: 66px; padding: 0 28px; border: 0; border-bottom: 1px solid var(--line); background: rgba(250,247,242,.96); color: var(--ink); backdrop-filter: blur(8px); }
.cms-topbar > div { display: grid; gap: 1px; }
.cms-topbar p { margin: 0; color: var(--muted); font-size: .68rem; text-transform: uppercase; }
.cms-topbar strong { font-size: .9rem; }
.cms-secure-indicator { color: var(--accent); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.cms-menu-button { display: none; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--ink); }
.cms-workspace { padding: 34px clamp(20px, 4vw, 52px) 70px; }
.cms-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.cms-page-heading h1 { margin: 0; font: 400 clamp(2.1rem, 4vw, 3.5rem)/1 Georgia, serif; }
.cms-page-heading > div:first-child > p:last-child:not(.eyebrow) { max-width: 680px; margin: 10px 0 0; color: var(--muted); }
.cms-heading-actions, .cms-form-actions, .cms-editor-actions, .cms-card-actions, .cms-quick-actions, .cms-row-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.cms-panel { margin-bottom: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.cms-panel h2 { font-size: 1.55rem; }
.cms-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.cms-panel-head p { margin: 5px 0 0; color: var(--muted); font-size: .88rem; }
.cms-panel-head a { color: var(--accent); font-size: .82rem; text-decoration: underline; text-underline-offset: 3px; }
.cms-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.cms-stat-grid button { min-height: 138px; display: grid; align-content: start; gap: 3px; padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; }
.cms-stat-grid button:hover { border-color: var(--accent); }
.cms-stat-grid strong { color: var(--accent); font: 2.4rem Georgia, serif; }
.cms-stat-grid span { font: 1rem Georgia, serif; }
.cms-stat-grid small { color: var(--muted); }
.cms-list-tools { display: grid; grid-template-columns: minmax(220px, 1fr) 210px; gap: 12px; margin-bottom: 18px; }
.cms-table-wrap { overflow-x: auto; }
.cms-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.cms-table th { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); text-align: left; text-transform: uppercase; white-space: nowrap; }
.cms-table td { padding: 15px 12px; border-bottom: 1px solid #ded5cd; vertical-align: middle; }
.cms-table td:first-child { min-width: 210px; }
.cms-table td strong, .cms-table td small { display: block; }
.cms-table td strong { font: 1rem Georgia, serif; }
.cms-table td small { color: var(--muted); }
.cms-row-actions button, .cms-row-actions a, .cms-card-list article > button { padding: 0; border: 0; background: transparent; color: var(--accent); font: .78rem Arial, sans-serif; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cms-status { width: fit-content; display: inline-flex; align-items: center; min-height: 26px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .64rem; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.cms-status-available, .cms-status-approved-trade, .cms-status-public, .cms-status-completed { border-color: rgba(33,120,115,.4); background: rgba(33,120,115,.08); color: #17635f; }
.cms-status-sold, .cms-status-rejected, .cms-status-suspended, .cms-status-archived { border-color: #b58c7b; color: #8d4027; }
.cms-status-reserved, .cms-status-pending, .cms-status-on-memo { border-color: #b19b65; background: #fbf6e7; color: #71602f; }
.cms-editor { max-width: none; display: block; }
.cms-editor-bar { position: sticky; z-index: 8; top: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 4px; background: rgba(250,247,242,.97); }
.cms-editor-bar > div:first-child { display: flex; align-items: center; gap: 10px; }
.cms-editor-bar small { color: var(--muted); }
.cms-editor-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 8px 0; margin-bottom: 10px; }
.cms-editor-tabs button { min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.cms-editor-tabs button[aria-selected="true"] { border-color: var(--accent); background: var(--accent); color: white; }
.cms-editor-panel { padding: 26px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.cms-editor-panel[hidden] { display: none; }
.cms-editor-panel h2 { margin-bottom: 22px; font-size: 1.7rem; }
.cms-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cms-form { max-width: none; }
.cms-form small { color: var(--muted); font-size: .72rem; }
.cms-form textarea, .cms-editor textarea { min-height: 110px; }
.cms-form-grid textarea { grid-column: auto; }
.cms-check { display: flex !important; grid-template-columns: auto 1fr; align-items: center; align-self: end; min-height: 46px; }
.cms-check input { width: 18px; min-height: 18px; }
.cms-collection-picker { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 24px; padding: 18px; border: 1px solid var(--line); }
.cms-collection-picker legend { padding: 0 7px; color: var(--accent); font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.cms-collection-picker .cms-check { min-height: 30px; }
.cms-private-note { padding: 12px 14px; border-left: 3px solid var(--accent); background: #eef5f3; color: var(--muted); font-size: .86rem; }
.cms-sticky-result { min-height: 22px; margin: 12px 0; color: var(--accent); }
.cms-danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; padding: 20px; border: 1px solid #c7a99c; border-radius: 6px; background: #fbf4f0; }
.cms-danger-zone h3 { margin-bottom: 3px; font-size: 1.1rem; }
.cms-danger-zone p { margin: 0; color: var(--muted); font-size: .82rem; }
.cms-file-button { position: relative; overflow: hidden; cursor: pointer; }
.cms-file-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cms-photo-sort { display: grid; gap: 10px; }
.cms-photo-sort article { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; min-height: 100px; padding: 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); cursor: grab; }
.cms-photo-sort img, .cms-photo-sort video { width: 120px; height: 96px; object-fit: cover; background: var(--charcoal); }
.cms-photo-sort article > div { display: grid; align-content: center; gap: 7px; }
.cms-photo-sort label { display: flex; align-items: center; gap: 8px; }
.cms-photo-sort input { width: 16px; min-height: 16px; }
.cms-photo-sort button { width: fit-content; padding: 0; border: 0; background: transparent; color: #8d4027; cursor: pointer; }
.cms-media-picker { margin-top: 26px; }
.cms-media-picker h3 { font-size: 1.1rem; }
.cms-media-picker > label { display: inline-grid; width: 150px; margin: 0 8px 8px 0; padding: 8px; border: 1px solid var(--line); background: var(--paper); }
.cms-media-picker img { width: 100%; height: 88px; object-fit: cover; }
.cms-split { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(360px, 1.15fr); gap: 18px; }
.cms-card-list { display: grid; gap: 9px; }
.cms-card-list > article { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); }
.cms-card-list article strong, .cms-card-list article small { display: block; }
.cms-card-list article small { margin-top: 3px; color: var(--muted); }
.cms-content-groups { max-width: none; display: block; padding-bottom: 80px; }
.cms-publish-bar { position: fixed; z-index: 12; right: 24px; bottom: 18px; display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); box-shadow: 0 14px 40px rgba(33,24,21,.18); }
.cms-publish-bar .form-result { margin: 0 10px; color: var(--accent); }
.cms-media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cms-media-grid article { min-width: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--paper); }
.cms-media-grid article > img, .cms-media-grid article > video, .cms-document-preview { width: 100%; height: 170px; display: grid; place-items: center; object-fit: cover; background: var(--charcoal); color: var(--accent-light); font: 1.6rem Georgia, serif; }
.cms-review-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.cms-media-grid article > div:last-child { padding: 13px; }
.cms-media-grid strong, .cms-media-grid small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cms-media-grid small { margin: 4px 0 12px; color: var(--muted); font-size: .72rem; }
.cms-detail-card { display: block !important; padding: 22px !important; background: var(--surface) !important; }
.cms-detail-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.cms-detail-card-head h2 { margin: 8px 0 4px; font-size: 1.6rem; }
.cms-detail-card-head p, .cms-detail-card-head time { margin: 0; color: var(--muted); font-size: .8rem; }
.cms-detail-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 20px; border-top: 1px solid var(--line); }
.cms-detail-card dl > div { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.cms-detail-card dt { color: var(--accent); font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.cms-detail-card dd { margin: 3px 0 0; font-size: .84rem; overflow-wrap: anywhere; }
.cms-detail-card a { color: var(--accent); text-decoration: underline; }
.cms-prewrap { white-space: pre-wrap; }
.cms-empty-state { min-height: 260px; display: grid; place-content: center; text-align: center; }
.cms-empty-state p, .cms-empty { color: var(--muted); }

@media (max-width: 1120px) {
  .cms-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cms-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .material-section { grid-template-columns: 1fr; gap: 24px; }
  .mine-grid { grid-template-columns: 1fr; }
  .about-intro, .about-micro { grid-template-columns: 1fr; gap: 20px; }
  .admin-price-card { grid-template-columns: 1fr 1fr; }
  .admin-price-card > div, .admin-price-card .form-result { grid-column: 1 / -1; }
  .cms-shell { grid-template-columns: 1fr; }
  .cms-sidebar { position: fixed; left: -250px; width: 238px; transition: left .2s ease; }
  .cms-sidebar.is-open { left: 0; box-shadow: 12px 0 40px rgba(0,0,0,.25); }
  .cms-menu-button { display: inline-flex; align-items: center; }
  .cms-topbar { justify-content: flex-start; }
  .cms-topbar .cms-secure-indicator { margin-left: auto; }
  .cms-split { grid-template-columns: 1fr; }
  .home-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  header { height: 70px; align-items: center; flex-direction: row; padding-top: 0; padding-bottom: 0; }
  .brand { font-size: 1.45rem; }
  .site-navigation { width: auto; margin-left: auto; }
  .site-menu-panel { width: min(260px, calc(100vw - 40px)); }
  footer { grid-template-columns: 1fr; }
  footer nav { justify-content: flex-start; }
  .home-hero { align-items: flex-end; }
  .home-hero > img {
    top: 70px;
    right: auto;
    bottom: auto;
    left: 50%;
    width: 146vw;
    min-width: 548px;
    max-width: 650px;
    height: auto;
    transform: translateX(-56%);
    filter: brightness(1.28) saturate(1.18) contrast(1.06);
  }
  .home-hero::after {
    background: linear-gradient(180deg, rgba(0,0,0,.03) 0%, rgba(0,0,0,.08) 32%, rgba(0,0,0,.62) 50%, rgba(0,0,0,.94) 66%, rgba(0,0,0,.99) 100%);
  }
  .home-content { padding-top: 150px; padding-bottom: 38px; }
  .home-content h1 { font-size: 3.4rem; }
  .home-actions { grid-template-columns: 1fr; }
  .collection-hero { min-height: 390px; }
  .collection-hero::after { background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.96) 76%); }
  .collection-list { grid-template-columns: 1fr; }
  .collection-list article { grid-template-columns: 118px minmax(0, 1fr); min-height: 138px; }
  .collection-list article:nth-child(odd) { border-right: 0; }
  .collection-list article > div { padding: 16px 18px; }
  .collection-contact { align-items: flex-start; flex-direction: column; }
  .search-results { max-height: 310px; }
  .stone-detail { padding-top: 38px; padding-bottom: 58px; }
  .stone-layout { grid-template-columns: 1fr; gap: 28px; }
  .stone-photo-main { height: 340px; }
  .stone-photo-detail { height: 118px; }
  .stone-copy dl > div { grid-template-columns: 1fr; gap: 5px; }
  .stone-actions { align-items: flex-start; flex-direction: column; }
  .trade-hero { min-height: 390px; }
  .trade-hero::after { background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.96) 76%); }
  .trade-section, .trade-simple, .admin-section { padding-top: 58px; padding-bottom: 64px; }
  .trade-actions, .admin-card-head, .admin-actions, .admin-toolbar { align-items: flex-start; flex-direction: column; }
  .account-details > div, .admin-details > div, .admin-price-card { grid-template-columns: 1fr; gap: 6px; }
  .about-hero { min-height: 390px; }
  .about-hero::after { background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.96) 76%); }
  .about-credentials { grid-template-columns: 1fr; }
  .about-credentials article + article { border-top: 0; border-left: 0; }
  .about-credentials span { min-height: 0; }
  .about-contact, .about-contact > div { align-items: flex-start; flex-direction: column; }
  .hero { min-height: 460px; align-items: flex-end; }
  .hero::after { background: linear-gradient(180deg, rgba(0,0,0,.16), rgba(0,0,0,.96) 72%); }
  .hero-copy { padding-bottom: 46px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .stock-list, form { grid-template-columns: 1fr; }
  .stock-list article:nth-child(odd), .stock-list article:nth-child(even) { padding: 18px 4px; border-left: 0; }
  .appointment-page main, .appointment-hero { min-height: calc(100vh - 70px); }
  .appointment-hero { align-items: flex-end; }
  .appointment-hero::after { background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.92) 42%, rgba(0,0,0,.99) 100%); }
  .appointment-content { width: 100%; padding-top: 160px; padding-bottom: 64px; }
  .education-hero { min-height: 390px; }
  .education-hero::after { background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.96) 72%); }
  .education-intro { padding-top: 58px; }
  .mineral-encyclopedia { grid-template-columns: 1fr; }
  .variety-list > div, .material-section dl > div { grid-template-columns: 1fr; gap: 5px; }
  .education-note { align-items: flex-start; flex-direction: column; }
  .origin-hero { min-height: 340px; }
  .origin-hero::after { background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.96) 78%); }
  .origin-summary { grid-template-columns: 1fr; gap: 18px; }
  .cms-login-shell { padding: 14px; }
  .cms-login-card { padding: 26px 20px; }
  .cms-login-card .brand { margin-bottom: 38px; }
  .cms-topbar { height: 62px; padding: 0 16px; flex-direction: row; align-items: center; }
  .cms-workspace { padding: 24px 14px 56px; }
  .cms-page-heading, .cms-panel-head, .cms-editor-bar, .cms-danger-zone, .cms-detail-card-head { align-items: flex-start; flex-direction: column; }
  .cms-heading-actions { width: 100%; }
  .cms-heading-actions .button { flex: 1; }
  .cms-stat-grid, .cms-form-grid, .cms-list-tools, .cms-media-grid, .cms-detail-card dl { grid-template-columns: 1fr; }
  .cms-stat-grid button { min-height: 112px; }
  .cms-panel, .cms-editor-panel { padding: 18px 14px; }
  .cms-editor-bar { position: static; }
  .cms-editor-actions { width: 100%; }
  .cms-editor-actions .button { flex: 1; padding: 0 10px; }
  .cms-photo-sort article { grid-template-columns: 88px minmax(0, 1fr); }
  .cms-photo-sort img { width: 88px; height: 84px; }
  .cms-publish-bar { right: 8px; bottom: 8px; left: 8px; justify-content: flex-end; }
  .cms-publish-bar .form-result { position: absolute; right: 0; bottom: 58px; left: 0; padding: 8px 12px; background: var(--surface); }
  .home-featured-grid { grid-template-columns: 1fr; }
  .stone-related > div { grid-template-columns: 1fr; }
}
