/* BC Scanner identity and dark burgundy and champagne interface. */
:root {
  --ink: #392631;
  --muted: #7e6f75;
  --line: #e7dedb;
  --paper: #f5f1ec;
  --highlight: #e7cdaa;
  --lime: var(--highlight);
  --accent: #6b2b45;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  background: var(--paper);
}
.brand { font-family: "Segoe UI", Arial, sans-serif; color: #48172c; font-size: 25px; letter-spacing: -.7px; gap: 10px; align-items: center; white-space: nowrap; }
.brand .brand-initials { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 12px; background: #48172c; color: #f1d9b9; font-size: 22px; font-weight: 750; letter-spacing: -1px; }
.brand .brand-name { font-weight: 500; }
body { background: radial-gradient(ellipse at 88% 5%, #eaddca55, transparent 45%), var(--paper); }
header {
  height: 84px;
  min-height: 84px;
  padding: 0 36px;
  gap: 24px;
  background: #fff;
  border-bottom: 1px solid #e8dfd9;
}
.header-label { color: #88777d; font-size: 10px; font-weight: 600; letter-spacing: 2px; }
.language-setting { color: var(--muted); gap: 12px; }
.account-controls { display: flex; align-items: center; gap: 6px; }
.account-controls:not(:has(button:not([hidden]))) { display: none; }
.language-setting select {
  border: 1px solid #e6dcd5;
  border-radius: 12px;
  background-color: #fbf8f4;
  padding: 9px 12px;
  font-size: 13px;
}
header .account-controls .text-button {
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-decoration: none;
  color: #765565;
  font-weight: 600;
  white-space: nowrap;
}
header .account-controls .text-button:hover { background: #f4eceb; border-color: #e8d8dc; }
.workspace { grid-template-columns: 214px minmax(0, 1fr); min-height: calc(100vh - 84px); }
aside {
  background: linear-gradient(165deg, #48172c, #260b1b);
  border-right: none;
  padding: 40px 18px;
}
.section-label { color: #cbb3be; font-size: 10px; letter-spacing: 1.8px; margin: 0 14px 22px; }
.nav {
  min-height: 48px;
  padding: 13px 14px;
  border-radius: 12px;
  color: #f2e3e9;
  font-size: 13px;
  font-weight: 500;
  gap: 10px;
  margin-bottom: 10px;
  transition: background .16s, color .16s;
}
.nav:hover { background: #ffffff0d; }
.nav.active { color: #48172c; background: var(--lime); box-shadow: 0 4px 14px #260b1b20; font-weight: 650; }
.nav b { background: #ffffff17; color: #faeee7; font-size: 11px; padding: 4px 7px; }
.nav.active b { background: #48172c15; color: #48172c; }
main { max-width: 1280px; padding: 42px 38px 24px; margin: 0 auto; align-self: start; }
.capture-column { gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.panel, .capture-column .panel {
  border: 1px solid #e8ded8;
  border-radius: 22px;
  background: #fff;
  padding: 28px;
  box-shadow: 0 8px 28px #48172c10, 0 1px 2px #48172c05;
}
.capture-column .panel { display: flex; flex-direction: column; min-width: 0; }
.panel-title { gap: 12px; margin-bottom: 24px; align-items: center; }
.panel-title h2 { font-size: 19px; font-weight: 650; letter-spacing: -.45px; margin: 0 0 6px; }
.panel-title p { line-height: 1.5; font-size: 12px; color: #8a777f; }
.capture-panel .panel-title::before, .notes-panel .panel-title::before {
  content: "";
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  flex: 0 0 38px;
  background-color: #f4eceb;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 21px;
}
.capture-panel .panel-title::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2376455b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Ccircle cx='8' cy='10' r='1.5'/%3E%3Cpath d='M6 15h4m4-6h4m-4 4h4'/%3E%3C/svg%3E");
}
.notes-panel .panel-title::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2376455b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8.5' y='3' width='7' height='12' rx='3.5'/%3E%3Cpath d='M5.5 11.5a6.5 6.5 0 0 0 13 0M12 18v3m-3 0h6'/%3E%3C/svg%3E");
}
.dropzone {
  flex: 1;
  min-height: 232px;
  border: 1px dashed #d9c5b3;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 18px;
  background: #fbf7f1;
}
.dropzone img { border-radius: 10px; }
#photo-empty { gap: 9px; }
#photo-empty strong { color: #63414f; font-size: 14px; font-weight: 550; }
#photo-empty span { color: #8b756c; font-size: 11px; }
.empty-card-art rect:nth-child(1) { fill: #ecdfcd; }
.empty-card-art rect:nth-child(2) { fill: #fffcf7; }
.empty-card-art rect:nth-child(3) { fill: #ddc29b; }
.empty-card-art { width: 74px; height: 60px; margin-bottom: 10px; color: #997854; }
.button {
  min-height: 48px;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 650;
  transition: background .16s, box-shadow .16s, transform .16s;
}
.button:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 5px 12px #48172c10; }
.button:not(:disabled):active { transform: translateY(0); }
.primary { background: var(--lime); color: #48172c; border-color: #e7cdaa; }
.primary:hover { background: #dcc096; }
.secondary { border-color: #e7dcd4; background: #fff; color: #674653; }
.secondary:hover { background: #faf3e9; }
.photo-actions { gap: 10px; margin: 0; }
#camera-button::before, #file-button::before {
  content: "";
  display: inline-block;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  background-color: currentColor;
  mask-repeat: no-repeat;
  mask-size: contain;
}
#camera-button::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 5l1-2h6l1 2h3a2 2 0 0 1 2 2v12H3V7a2 2 0 0 1 2-2z'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/svg%3E"); }
#file-button::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Ccircle cx='8' cy='8' r='1.5'/%3E%3Cpath d='M3 17l5-5 4 4 4-6 5 7'/%3E%3C/svg%3E"); }
.voice-row { gap: 10px; flex-wrap: nowrap; }
.voice { background: #f4ecee; color: #713d54; border: 1px solid #e8dce0; }
.voice:hover { background: #eddde3; }
.voice.recording { background: #fff0ec; color: #9d3930; border-color: #f1c5bd; }
.voice-row select { width: 108px; flex: 0 0 108px; font-size: 13px; }
input, textarea, select { border-color: #e7dcd4; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
input:focus, textarea:focus, select:focus { border-color: #a17c54; box-shadow: 0 0 0 3px #a17c5426; }
input::placeholder, textarea::placeholder { color: #97868b; }
.notes-panel textarea { flex: 1; min-height: 175px; background: #fdfaf6; font-size: 14px; line-height: 1.7; }
.notes-panel .helper { color: #806e76; font-size: 11px; line-height: 1.55; }
.notes-panel > .helper:last-child { margin: 12px 0 0; }
.capture-next { max-width: 410px; margin: 26px auto 0; }
.dark { background: #48172c; color: white; border-color: #48172c; }
.dark:not(:disabled):hover { background: #2e0e1e; }
#ocr-button { min-height: 52px; font-size: 14px; box-shadow: 0 5px 15px #48172c14; }
button:disabled { cursor: not-allowed; }
#ocr-button:disabled { opacity: 1; background: #e7dfe0; border-color: #e7dfe0; color: #887780; box-shadow: none; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #a78251; outline-offset: 4px; }
.text-button { color: #76354e; text-underline-offset: 4px; }
footer { color: #907e86; font-size: 10px; letter-spacing: .8px; margin-top: 38px; }
h1 { font-weight: 650; letter-spacing: -1px; }
.page-heading p:not(.eyebrow) { color: var(--muted); }
.contact-card { border-radius: 16px; border-color: #e8ded8; padding: 22px; box-shadow: 0 3px 12px #48172c07; transition: border-color .15s, box-shadow .15s; }
.contact-card:hover { border-color: #c5a78a; box-shadow: 0 6px 18px #48172c10; }
.avatar { background: #f1e5d4; color: #765634; font-weight: 650; border-radius: 15px; }
.empty { border-radius: 20px; background: #ffffff60; }
.optional-fields > summary { color: #826171; }
.data-panel { max-width: 820px; }
.success-label { background: #e9f3e5; border-radius: 10px; color: #426a45; }
#login-view { max-width: 440px; margin: 68px auto; padding: 0 20px; }
#login-form { background: #fff; border: 1px solid #e8ded8; border-radius: 24px; padding: 32px; box-shadow: 0 16px 50px #48172c0c; }
#login-form::before { content: ""; display: block; width: 40px; height: 5px; background: var(--lime); border-radius: 5px; margin-bottom: 26px; }
#login-form h1 { font-size: 26px; line-height: 1.25; margin-bottom: 28px; }
#login-form label { font-size: 12px; color: #745561; font-weight: 600; }
#login-form input { margin-top: 10px; min-height: 50px; background: #fcf8f3; }
#login-form .helper { font-size: 11px; line-height: 1.65; }
#auth-message { font-size: 12px; margin: 10px 0 18px; }
#auth-message:empty { min-height: 0; margin: 16px 0; }
#login-submit { margin-bottom: 12px; }
#users-dialog, #language-chooser, .card-camera { border-radius: 22px; border-color: #e7dcd4; box-shadow: 0 24px 90px #260b1b30; }
#users-dialog::backdrop, #language-chooser::backdrop { background: #260b1b5e; backdrop-filter: blur(5px); }
.user-row { padding: 16px 0; }
@media (min-width: 1600px) { main { padding: 54px 48px 28px; } }
@media (max-width: 1100px) and (min-width: 801px) {
  header { padding: 0 24px; gap: 14px; }
  .header-label { display: none; }
  .language-setting > span { display: none; }
  .workspace { grid-template-columns: 178px minmax(0, 1fr); }
  aside { padding: 30px 12px; }
  main { padding: 28px 22px; }
  .capture-column { gap: 16px; }
  .panel, .capture-column .panel { padding: 20px; border-radius: 18px; }
  .photo-actions { grid-template-columns: 1fr; }
  .voice-row { flex-wrap: wrap; }
  .voice-row select { flex-basis: 100%; width: 100%; }
  .panel-title::before { display: none !important; }
}
@media (max-width: 800px) {
  header { height: auto; min-height: 72px; padding: 14px 18px; gap: 8px; flex-wrap: wrap; }
  header { display: grid; grid-template-columns: 1fr auto; row-gap: 3px; }
  header .brand { grid-column: 1; grid-row: 1; }
  .language-setting { grid-column: 2; grid-row: 1; }
  .account-controls { grid-column: 1 / -1; grid-row: 2; justify-content: flex-end; gap: 2px; }
  .header-label, .language-setting > span { display: none; }
  .language-setting select { width: 110px; font-size: 13px; min-height: 38px; }
  header .account-controls .text-button { font-size: 11px; min-height: 32px; padding: 6px 8px; }
  .workspace { display: block; min-height: calc(100vh - 72px); }
  aside { padding: 12px 16px; background: transparent; border-bottom: none; }
  .side-top { gap: 4px; padding: 5px; background: #48172c; border: 1px solid #48172c; border-radius: 16px; }
  .nav { margin: 0; padding: 10px 8px; min-height: 42px; border-radius: 11px; color: #f2e3e9; font-size: 12px; box-shadow: none; }
  .nav.active { background: var(--highlight); color: #48172c; box-shadow: 0 2px 7px #48172c0c; }
  .nav b, .nav.active b { color: #713d54; background: #ecddc7; padding: 3px 7px; }
  .nav span { font-size: 12px; }
  main { padding: 8px 16px 24px; margin: 0; }
  .capture-column { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .panel, .capture-column .panel { padding: 19px; border-radius: 20px; box-shadow: 0 5px 20px #48172c08; }
  .panel-title { margin-bottom: 16px; gap: 10px; }
  .panel-title h2 { font-size: 17px; margin: 0; }
  .capture-panel .panel-title::before, .notes-panel .panel-title::before { width: 32px; height: 32px; flex-basis: 32px; border-radius: 10px; background-size: 18px; }
  .dropzone { min-height: 126px; padding: 16px 12px; border-radius: 13px; margin-bottom: 14px; }
  .empty-card-art { width: 46px; height: 35px; margin-bottom: 2px; }
  #photo-empty { gap: 5px; }
  #photo-empty strong { font-size: 12px; }
  #photo-empty span { font-size: 10px; }
  .button { min-height: 48px; border-radius: 11px; padding: 11px 10px; font-size: 12px; gap: 7px; }
  #camera-button::before, #file-button::before { width: 15px; height: 15px; flex-basis: 15px; }
  .photo-actions { grid-template-columns: 1fr 1fr; gap: 8px; }
  .voice-row { gap: 8px; flex-wrap: nowrap; margin-bottom: 0; }
  .voice-row select { flex: 0 0 99px; width: 99px; padding: 10px 8px; font-size: 12px; }
  #voice-status { font-size: 10px; margin: 9px 0; }
  .notes-panel textarea { min-height: 94px; height: 94px; font-size: 13px; padding: 12px; }
  .capture-next { max-width: none; margin: 18px 0 0; }
  #ocr-button { min-height: 50px; font-size: 13px; }
  footer { margin-top: 26px; font-size: 8px; letter-spacing: .3px; }
  #login-view { margin: 28px auto; padding: 0 18px; }
  #login-form { border-radius: 21px; padding: 26px 23px; }
  #login-form h1 { font-size: 25px; }
  #users-dialog { padding: 20px; }
  .user-row { flex-wrap: wrap; gap: 10px; }
  .user-row span { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .button, .nav, .contact-card { transition: none; } }
