:root {
  color: #211c15;
  font-family: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4efe7;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(120% 90% at 12% -8%, #fbeadb 0%, rgba(251, 234, 219, 0) 52%),
    radial-gradient(110% 90% at 99% 2%, #ece5f7 0%, rgba(236, 229, 247, 0) 46%),
    radial-gradient(130% 120% at 50% 122%, #f4ebd8 0%, rgba(244, 235, 216, 0) 60%),
    #f4efe7;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: #7253da; text-decoration-color: rgba(114, 83, 218, .35); text-underline-offset: 3px; }
a:hover { color: #573ac5; }

.page { min-height: 100vh; display: grid; place-items: center; padding: 30px; }
.concierge {
  width: min(1040px, 100%);
  height: min(864px, calc(100vh - 60px));
  min-height: 630px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 34px;
  background: rgba(255, 255, 255, .70);
  box-shadow: 0 1px 1px rgba(255,255,255,.75) inset, 0 44px 100px -30px rgba(74, 52, 26, .24), 0 14px 34px -16px rgba(74, 52, 26, .12);
  backdrop-filter: blur(30px) saturate(1.35);
  -webkit-backdrop-filter: blur(30px) saturate(1.35);
  animation: rise .5s cubic-bezier(.2,.7,.3,1) both;
}

.topbar { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 26px; border-bottom: 1px solid rgba(33, 28, 21, .07); }
.brand-lockup { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
.brand-lockup > img { width: 56px; height: 56px; margin: -10px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(122, 90, 240, .16)); }
.brand-lockup-copy { display: grid; min-width: 0; gap: 3px; color: #8f8676; font-size: 12.5px; }
.brand-lockup-title { display: flex; align-items: center; gap: 9px; color: #1d1810; font-size: 16.5px; font-weight: 600; letter-spacing: -.015em; }
.brand-lockup-title b { padding: 3px 7px; border-radius: 6px; background: rgba(33, 28, 21, .055); color: #8a8272; font-size: 9.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }

.brand-picker { position: relative; flex: 0 0 auto; }
.brand-toggle { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid rgba(33, 28, 21, .1); border-radius: 14px; background: rgba(255,255,255,.72); box-shadow: 0 1px 2px rgba(74,52,26,.05); color: #211c15; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.brand-toggle:hover, .brand-toggle[aria-expanded="true"] { border-color: rgba(33,28,21,.22); background: rgba(255,255,255,.96); }
.brand-toggle-copy { display: grid; gap: 1px; text-align: left; line-height: 1.05; }
.brand-toggle-copy span, .brand-menu p { color: #a89f8d; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.brand-toggle-copy strong { font-size: 13.5px; font-weight: 600; }
.brand-swatch { width: 11px; height: 11px; flex: 0 0 auto; display: inline-block; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.brand-swatch.nas-com { background: linear-gradient(135deg, #f6c445, #e8622a 52%, #7a5af0); }
.brand-swatch.nas-daily { background: #f6c445; }
.brand-swatch.nas-house { background: #e8622a; }
.brand-swatch.\31 000-media { background: #7a5af0; }
.chevron { color: #b4ac9a; font-size: 10px; transition: transform .2s ease; }
.brand-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.brand-menu { position: absolute; z-index: 20; top: calc(100% + 9px); right: 0; width: 242px; padding: 7px; border: 1px solid rgba(33,28,21,.08); border-radius: 18px; background: rgba(255,255,255,.94); box-shadow: 0 24px 56px -18px rgba(74,52,26,.34); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); animation: pop .18s ease both; }
.brand-menu p { margin: 0; padding: 9px 11px 7px; }
.brand-menu button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 11px; border: 0; border-radius: 12px; background: transparent; color: #211c15; cursor: pointer; font-size: 14px; font-weight: 500; text-align: left; }
.brand-menu button:hover { background: rgba(33,28,21,.05); }
.brand-menu .brand-swatch { width: 24px; height: 24px; border-radius: 8px; }
.brand-menu b { margin-left: auto; color: #37a15e; font-size: 13px; }

.message-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 26px 34px 18px; scroll-behavior: smooth; }
.message-scroll::-webkit-scrollbar { width: 11px; }
.message-scroll::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 20px; background: rgba(33,28,21,.13); background-clip: padding-box; }
.message-list { width: min(724px, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }

.welcome { display: flex; gap: 15px; animation: rise .5s ease both; }
.agent-mark { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(33,28,21,.06); border-radius: 13px; background: rgba(255,255,255,.85); box-shadow: 0 5px 14px -5px rgba(122,90,240,.3); }
.agent-mark img { width: 48px; height: 48px; margin: -3px; object-fit: contain; }
.welcome-copy { min-width: 0; padding-top: 1px; }
.agent-label { display: flex; align-items: center; gap: 9px; margin: 0 0 11px; color: #a89f8d; font-size: 11.5px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.agent-label i { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: #37c871; box-shadow: 0 0 0 3px rgba(55,200,113,.16); animation: pulse 2.4s ease-in-out infinite; }
h1 { max-width: 500px; margin: 0 0 10px; color: #1c1710; font-family: "Instrument Serif", Georgia, serif; font-size: clamp(33px, 4.2vw, 39px); font-weight: 400; letter-spacing: -.01em; line-height: 1.05; }
h1 em { color: #6b6352; font-style: italic; }
.welcome-copy > p:last-child { max-width: 475px; margin: 0; color: #6b6352; font-size: 16px; line-height: 1.55; }

.suggestions { padding-left: 57px; animation: rise .55s ease .05s both; }
.suggestions.is-hidden { display: none; }
.suggestions > p { margin: 0 0 11px; color: #b4ac9a; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.suggestions > div { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.suggestions button { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 15px 16px; border: 1px solid rgba(33,28,21,.08); border-radius: 16px; background: rgba(255,255,255,.62); box-shadow: 0 1px 2px rgba(74,52,26,.04); color: #211c15; cursor: pointer; text-align: left; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease; }
.suggestions button:hover { border-color: rgba(33,28,21,.15); background: rgba(255,255,255,.98); box-shadow: 0 12px 26px -12px rgba(74,52,26,.24); transform: translateY(-2px); }
.suggestions strong, .suggestions small { display: block; }
.suggestions strong { font-size: 14px; font-weight: 600; line-height: 1.25; }
.suggestions small { margin-top: 3px; color: #948c7a; font-size: 12.5px; }
.suggestions b { flex: 0 0 auto; color: #c7beab; font-size: 15px; font-weight: 500; }

.message-row { display: flex; flex-direction: column; animation: rise .35s ease both; }
.message-row.user { align-items: flex-end; }
.message-row.concierge { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 15px; }
.user-bubble { max-width: min(82%, 520px); padding: 12px 17px; border-radius: 19px 19px 5px 19px; background: #211c15; box-shadow: 0 8px 20px -10px rgba(33,28,21,.45); color: #f4efe6; font-size: 15px; line-height: 1.5; white-space: pre-wrap; }
.concierge-bubble { min-width: 0; padding-top: 8px; }
.concierge-bubble > p { max-width: 520px; margin: 0; color: #33291d; font-size: 15.5px; line-height: 1.55; white-space: pre-wrap; }

.asset-card { max-width: 520px; margin-top: 15px; overflow: hidden; border: 1px solid rgba(33,28,21,.08); border-radius: 20px; background: rgba(255,255,255,.74); box-shadow: 0 14px 34px -18px rgba(74,52,26,.24); animation: pop .3s ease both; }
.asset-preview { display: block; width: 100%; max-height: 270px; object-fit: cover; border-bottom: 1px solid rgba(33,28,21,.06); background: #f2ece3; }
.asset-placeholder { height: 154px; display: grid; place-items: center; border-bottom: 1px solid rgba(33,28,21,.06); background: linear-gradient(135deg, #faf6ef, #efe8db); }
.asset-placeholder .file-icon { width: 82px; height: 108px; display: grid; align-content: start; gap: 8px; padding: 14px 12px; border: 1px solid rgba(33,28,21,.06); border-radius: 9px; background: #fff; box-shadow: 0 12px 26px -10px rgba(74,52,26,.32); }
.file-icon i { display: block; width: 34px; height: 8px; border-radius: 3px; background: #7a5af0; }
.file-icon b, .file-icon em { display: block; height: 5px; border-radius: 3px; background: rgba(33,28,21,.10); }
.file-icon em { width: 72%; opacity: .8; }
.asset-card-body { padding: 15px 17px 16px; }
.asset-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.asset-heading strong { color: #1d1810; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.asset-brand { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; color: #8f8676; font-size: 12.5px; white-space: nowrap; }
.asset-brand .brand-swatch { width: 9px; height: 9px; }
.asset-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 15px; }
.asset-meta span { padding: 5px 11px; border-radius: 8px; background: rgba(33,28,21,.05); color: #6b6352; font-size: 11.5px; font-weight: 500; }
.asset-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.asset-actions a, .asset-actions button { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 10px 15px; border-radius: 12px; font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer; }
.asset-actions a { border: 0; background: #211c15; color: #f7f2ea; }
.asset-actions a:hover { background: #37301f; color: #f7f2ea; }
.asset-actions button { border: 1px solid rgba(33,28,21,.14); background: transparent; color: #4a4234; }
.asset-actions button:hover { border-color: rgba(33,28,21,.22); background: rgba(33,28,21,.04); }
.status { padding: 4px 9px; border-radius: 999px; background: rgba(55,161,94,.15); color: #2e7d4f; font-size: 11px; font-weight: 600; text-transform: capitalize; }
.status.pending-review { background: rgba(233,162,59,.16); color: #9a6b12; }
.status.needs-info { background: rgba(122,90,240,.12); color: #6647ce; }
.status.rejected { background: rgba(210,76,76,.12); color: #b53636; }

.composer-area { flex: 0 0 auto; padding: 15px 22px 19px; border-top: 1px solid rgba(33,28,21,.07); background: linear-gradient(to top,rgba(255,255,255,.55),rgba(255,255,255,0)); }
.composer-area > * { width: min(724px, 100%); margin-right: auto; margin-left: auto; }
.review-panel { margin-bottom: 12px; overflow: hidden; border: 1px solid rgba(33,28,21,.08); border-radius: 16px; background: rgba(255,255,255,.5); }
.review-panel summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; cursor: pointer; list-style: none; }
.review-panel summary::-webkit-details-marker { display: none; }
.review-panel summary span { display: flex; align-items: baseline; gap: 11px; }
.review-panel summary strong { color: #211c15; font-size: 13.5px; font-weight: 600; }
.review-panel summary small { color: #948c7a; font-size: 12px; }
.review-panel summary > b { color: #b4ac9a; font-size: 11px; font-weight: 500; transition: transform .2s ease; }
.review-panel[open] summary > b { transform: rotate(180deg); }
.review-details { margin: 2px 16px 16px; padding: 15px; border: 1px dashed rgba(33,28,21,.16); border-radius: 13px; background: rgba(255,255,255,.5); text-align: center; animation: rise .25s ease both; }
.review-details strong { color: #211c15; font-size: 13.5px; }
.review-details p { max-width: 495px; margin: 8px auto 0; color: #948c7a; font-size: 12.5px; line-height: 1.45; }
.admin-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; max-width: 495px; margin: 15px auto 0; padding: 6px; border: 1px solid rgba(33,28,21,.08); border-radius: 12px; background: rgba(255,255,255,.72); }
.admin-controls input { min-width: 0; padding: 8px 9px; border: 0; outline: 0; background: transparent; color: #211c15; font-size: 12.5px; }
.admin-controls button, .review-heading button, .alert-card button { min-height: 34px; padding: 8px 10px; border: 0; border-radius: 9px; background: #211c15; color: #f7f2ea; cursor: pointer; font-size: 11.5px; font-weight: 600; }
.admin-controls button:hover, .review-heading button:hover, .alert-card button:hover { background: #37301f; }
.review-section { margin-top: 15px; padding-top: 14px; border-top: 1px solid rgba(33,28,21,.09); text-align: left; }
.review-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-heading strong { font-size: 12px; letter-spacing: .04em; }
.review-list { display: grid; gap: 10px; margin-top: 10px; color: #6b6352; font-size: 12.5px; }
.review-card { overflow: hidden; padding: 12px; border: 1px solid rgba(33,28,21,.08); border-radius: 12px; background: rgba(255,255,255,.7); }
.review-card > strong { display: block; color: #211c15; font-size: 12.5px; }
.review-card > p { margin: 5px 0 10px; color: #948c7a; font-size: 12px; line-height: 1.4; }
.review-card img { display: block; width: 100%; max-height: 230px; margin: 8px 0 10px; border: 1px solid rgba(33,28,21,.08); border-radius: 9px; background: #fff; object-fit: contain; }
.review-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.review-actions button { padding: 8px 10px; border: 0; border-radius: 9px; cursor: pointer; font-size: 12px; font-weight: 600; }
.review-actions .approved { background: #dcefdc; color: #28643d; }
.review-actions .rejected { background: #f8e0df; color: #a03f3b; }
.alert-card { border-left: 3px solid #e9a23b; }
.usage-summary { margin-top: 10px; color: #6b6352; font-size: 12px; line-height: 1.45; }
.usage-row { margin: 0; padding: 7px 0; border-top: 1px solid rgba(33,28,21,.07); color: #8f8676; font-size: 11.5px; line-height: 1.45; }
form { display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 19px; border: 1px solid rgba(33,28,21,.11); border-radius: 20px; background: #fff; box-shadow: 0 3px 12px -5px rgba(74,52,26,.12); }
input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #211c15; font-size: 15.5px; padding: 8px 0; }
input::placeholder { color: #b4ac9a; }
form:focus-within { border-color: rgba(122,90,240,.35); box-shadow: 0 0 0 4px rgba(122,90,240,.08), 0 3px 12px -5px rgba(74,52,26,.12); }
form button { display: flex; align-items: center; gap: 8px; padding: 12px 21px; border: 0; border-radius: 14px; background: #211c15; color: #f7f2ea; cursor: pointer; font-size: 14.5px; font-weight: 600; transition: transform .15s ease, background .15s ease, opacity .15s ease; }
form button:hover:not(:disabled) { background: #37301f; transform: translateY(-1px); }
form button:disabled { opacity: .55; cursor: wait; }
form button b { opacity: .65; font-weight: 500; }
.footer-note { margin-top: 11px; color: #b4ac9a; font-size: 11.5px; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(6px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: .45; transform: scale(.9); } 50% { opacity: 1; transform: scale(1); } }

@media (max-width: 700px) {
  .page { padding: 12px; align-items: stretch; }
  .concierge { height: calc(100vh - 24px); min-height: 580px; border-radius: 26px; }
  .topbar { padding: 17px 18px; }
  .brand-lockup > img { width: 48px; height: 48px; margin: -9px; }
  .brand-lockup-copy > span:last-child, .brand-lockup-title b { display: none; }
  .brand-lockup-title { font-size: 15px; }
  .brand-toggle { padding: 7px 9px; }
  .brand-toggle-copy span { font-size: 9px; }
  .brand-toggle-copy strong { font-size: 12.5px; }
  .message-scroll { padding: 24px 18px 16px; }
  .welcome { gap: 12px; }
  .agent-mark { width: 36px; height: 36px; border-radius: 11px; }
  .agent-mark img { width: 42px; height: 42px; }
  h1 { font-size: 34px; }
  .welcome-copy > p:last-child { font-size: 15px; }
  .suggestions { padding-left: 48px; }
  .suggestions > div { grid-template-columns: 1fr; }
  .message-row.concierge { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .user-bubble { max-width: 90%; }
  .composer-area { padding: 13px 14px 16px; }
  .review-panel summary span { display: grid; gap: 2px; }
  .admin-controls { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .brand-toggle-copy { display: none; }
  .brand-toggle { border-radius: 12px; }
  .brand-menu { right: -4px; }
  .message-scroll { padding-right: 14px; padding-left: 14px; }
  .suggestions { padding-left: 0; }
  .welcome { gap: 10px; }
  .welcome-copy > p:last-child { font-size: 14px; }
  .review-panel summary small { font-size: 11px; }
  form { padding-left: 14px; }
  form button { padding: 12px 15px; }
  form button span { display: none; }
}
