@font-face {
  font-family: "Fraunces ICC";
  src: url("fonts/Fraunces.df89c7ab0af2.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --chocolate: #4a3028;
  --chocolate-light: #684336;
  --cocoa: #865441;
  --rose: #dfb9a2;
  --ink: #30231e;
  --muted: #6d5b51;
  --line: #e8dbcd;
  --surface: #fffdf8;
  --background: #f8f3eb;
  --shadow: 0 12px 34px rgba(65, 38, 28, .08);
}
html, body { height: auto; min-height: 100%; overflow: auto; }
body { background: var(--background); color: var(--ink); font-family: "Segoe UI", Arial, sans-serif; font-size: 15px; }
::selection { color: #2b1d17; background: #e8c7b3; }
a { text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #a9593d; outline-offset: 3px; }
.app-shell { display: block; width: 100%; height: auto; min-height: 100vh; }
.site-header { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: clamp(22px, 3vw, 48px); min-height: 78px; padding: 0 max(28px, calc((100vw - 1440px) / 2 + 34px)); background: #fffaf3; border-bottom: 1px solid #e9ddd2; }
.site-header .brand { flex: none; display: flex; align-items: center; gap: 12px; padding: 0; border: 0; }
.brand-mark { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); gap: 3px; flex: none; width: 42px; height: 42px; padding: 8px; border: 0; border-radius: 13px; background: #704634; box-shadow: 0 4px 10px rgba(72, 40, 29, .16); transform: none; }
.brand-mark i { border: 0; border-radius: 2px; background: #dcaf8d; box-shadow: inset 0 -2px 0 rgba(75, 43, 32, .24); }
.site-header .brand-name { color: #38261f; font-size: 19px; line-height: 1.04; letter-spacing: -.035em; }
.site-header .brand-name small { color: #7d6557; font-size: 10px; font-weight: 650; letter-spacing: .03em; margin-top: 5px; }
.primary-nav { display: flex; align-items: stretch; gap: 2px; align-self: stretch; }
.primary-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 78px; padding: 0 13px; border-bottom: 3px solid transparent; color: #624d42; font-size: 14px; font-weight: 650; white-space: nowrap; }
.primary-nav a:hover { color: var(--ink); background: #f5eade; }
.primary-nav a[aria-current="page"] { color: #6a3e2e; border-bottom-color: #b66a4e; }
.header-tools { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.header-menu { position: relative; }
.header-menu summary { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 11px; border-radius: 10px; color: #5e473b; font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; white-space: nowrap; }
.header-menu summary::-webkit-details-marker { display: none; }
.header-menu summary:hover, .header-menu[open] summary { background: #f2e6d9; }
.header-menu summary > span:last-child { font-size: 19px; font-weight: 400; line-height: .8; }
.menu-chevron { display: inline-flex; align-items: center; justify-content: center; }
.menu-chevron .ui-icon { width: 13px; height: 13px; }
.header-menu[open] summary > span:last-child { transform: rotate(180deg); }
.menu-panel { position: absolute; z-index: 16; top: calc(100% + 12px); right: 0; display: grid; gap: 2px; min-width: 256px; max-height: min(70vh, 580px); overflow-y: auto; padding: 10px; border: 1px solid #e8d9ca; border-radius: 15px; background: #fffdf8; box-shadow: 0 18px 42px rgba(49, 31, 24, .16); }
.header-tools > .header-menu:first-child .menu-panel { right: auto; left: 0; }
.menu-panel a, .account-panel button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 11px; border: 0; border-radius: 8px; background: transparent; color: #4d382e; font-size: 13px; font-weight: 650; text-align: left; }
.menu-panel a:hover, .account-panel button:hover { background: #f5eadf; }
.menu-panel .ui-icon { width: 18px; height: 18px; color: #92634c; }
.account-menu { margin-left: 7px; }
.account-menu summary { gap: 8px; }
.account-menu .avatar { width: 33px; height: 33px; border-radius: 10px; background: #744c3a; color: white; font-size: 12px; }
.account-name { overflow: hidden; max-width: 115px; text-overflow: ellipsis; }
.account-panel { min-width: 230px; }
.account-panel p { margin: 0 0 4px; padding: 8px 11px 12px; border-bottom: 1px solid var(--line); }
.account-panel strong, .account-panel small { display: block; overflow-wrap: anywhere; }
.account-panel strong { font-size: 14px; }
.account-panel small { color: #756056; font-size: 11px; margin-top: 3px; }
.workspace { display: block; width: 100%; max-width: 1440px; height: auto; min-height: 0; overflow: visible; margin: 0 auto; }
.page-heading { display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 24px; padding: 41px 34px 25px; border: 0; background: transparent; }
.page-heading h1 { margin: 0 0 8px; color: #34231d; font-size: 32px; line-height: 1.16; font-weight: 780; letter-spacing: -.03em; }
.page-heading h1, .action-stage-heading h2, .snapshot-heading h2, .section-heading h2, .photo-form-panel h2, .photo-guide h2, .login-intro h1, .login-card h2 { font-family: "Fraunces ICC", Georgia, serif; font-optical-sizing: auto; font-variation-settings: "SOFT" 35, "WONK" 0; font-weight: 700; }
.page-heading p { max-width: 70ch; margin: 0; color: #6d5b51; font-size: 14px; line-height: 1.55; }
.main { display: block; width: 100%; max-width: none; min-height: 0; flex: none; overflow: visible; padding: 0 34px 70px; margin: 0; }
.main.page-dashboard, .main.page-movement_history { overflow: visible; }
.heading-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.button { min-height: 43px; border-radius: 10px; padding: 10px 17px; font-size: 13px; box-shadow: none; }
.button-primary, .button-dark { background: #704332; color: white; box-shadow: 0 5px 12px rgba(85, 48, 35, .15); }
.button-primary:hover, .button-dark:hover { background: #563326; }
.button-outline { border-color: #ddc8b8; background: #fffaf3; color: #624333; }
.button-outline:hover { background: #f2e4d7; }
.button:disabled { opacity: .5; transform: none; box-shadow: none; cursor: not-allowed; }
.workbench { display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(310px, .72fr); gap: 22px; }
.action-stage { min-width: 0; padding: 31px; border-radius: 20px; background: #ecd9c6; }
.action-stage-heading h2 { margin: 0 0 7px; font-size: 23px; font-weight: 760; letter-spacing: -.025em; }
.action-stage-heading p { margin: 0; color: #664d40; font-size: 14px; }
.action-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 25px; }
.action-choice { display: flex; flex-direction: column; align-items: flex-start; min-height: 202px; padding: 23px; border-radius: 15px; transition: transform .18s cubic-bezier(.16, 1, .3, 1), box-shadow .18s cubic-bezier(.16, 1, .3, 1); }
.action-choice:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(77, 44, 32, .13); }
.action-choice:active { transform: translateY(0); }
.action-choice .ui-icon { width: 25px; height: 25px; margin-bottom: 17px; }
.action-choice strong { display: block; font-size: 18px; line-height: 1.15; letter-spacing: -.015em; }
.action-choice > span:not(.action-choice-link) { max-width: 29ch; margin-top: 6px; font-size: 12px; line-height: 1.45; }
.action-choice-link { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: auto; padding-top: 15px; font-size: 12px; font-weight: 800; }
.action-choice-link span { font-size: 18px; line-height: 1; }
.action-choice-primary { background: #623d2e; color: #fff9f2; }
.action-choice-primary .ui-icon { color: #f0c4a7; }
.action-choice-primary > span:not(.action-choice-link) { color: #f3d9c8; }
.action-choice-photo { background: #fffaf3; color: #4a3028; }
.action-choice-photo .ui-icon { color: #a76e50; }
.action-choice-photo > span:not(.action-choice-link) { color: #755d50; }
.review-steps { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; color: #62493b; font-size: 12px; font-weight: 650; }
.review-steps li { display: flex; align-items: center; gap: 7px; }
.review-steps li span { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #bc9d84; border-radius: 50%; font-size: 11px; font-variant-numeric: tabular-nums; }
.dashboard-snapshot { display: flex; flex-direction: column; min-width: 0; padding: 29px; border: 1px solid #e7d9ca; border-radius: 20px; background: #fffdf8; }
.snapshot-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 9px; }
.snapshot-heading h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.snapshot-heading a { color: #7a4938; font-size: 12px; font-weight: 750; text-decoration: underline; }
.snapshot-total { display: flex; align-items: center; gap: 16px; margin: 26px 0 21px; }
.snapshot-total strong { font-size: 62px; line-height: 1; font-weight: 760; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.snapshot-total span { color: #6f5a4d; font-size: 13px; line-height: 1.4; }
.snapshot-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 17px 0 20px; border-top: 1px solid #e9ded2; }
.snapshot-breakdown div { display: flex; flex-direction: column; gap: 2px; }
.snapshot-breakdown strong { font-size: 21px; font-variant-numeric: tabular-nums; }
.snapshot-breakdown span { color: #6f5a4d; font-size: 11px; }
.snapshot-alert { display: flex; align-items: center; gap: 11px; margin-top: auto; padding: 12px; border-radius: 10px; background: #e9f2e9; color: #29533b; }
.snapshot-alert-active { background: #fff0de; color: #814524; }
.snapshot-alert-mark { display: grid; place-items: center; flex: none; width: 27px; height: 27px; border-radius: 50%; background: rgba(40, 95, 58, .12); font-size: 16px; font-weight: 800; }
.snapshot-alert-mark .ui-icon { width: 16px; height: 16px; }
.snapshot-alert-active .snapshot-alert-mark { background: rgba(150, 79, 31, .14); }
.snapshot-alert strong { display: block; font-size: 12px; }
.snapshot-alert a { display: inline-block; margin-top: 3px; font-size: 11px; font-weight: 750; text-decoration: underline; }
.recent-section { margin-top: 33px; }
.recent-section .section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin: 0 0 14px; }
.section-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.section-heading h2 small { margin-left: 8px; color: #8a7466; font-size: 11px; font-weight: 650; letter-spacing: 0; }
.text-link { color: #754935; font-size: 12px; font-weight: 750; text-decoration: underline; text-decoration-color: transparent; }
.text-link:hover { text-decoration-color: currentColor; }
.panel, .stat { border-color: #e8dbcd; border-radius: 14px; background: #fffdf8; box-shadow: none; }
.table-panel { overflow-x: auto; }
.sensor-chart { margin: 18px 0; padding: 22px; }
.sensor-chart h2 { margin: 0 0 6px; }
.sensor-chart p { margin: 0 0 15px; color: var(--muted); }
.sensor-chart svg { display: block; width: 100%; height: auto; }
.table-panel th { position: sticky; top: 0; z-index: 1; }
th { padding: 15px 19px; background: #f2e8dd; color: #5e493e; font-size: 10px; }
td { padding: 16px 19px; color: #49392f; font-size: 13px; }
td strong { font-size: 13px; }
td small { color: #6f5a4d; font-size: 11px; }
tr:hover td { background: #fcf8f2; }
.tag { font-size: 11px; }
.quantity { font-variant-numeric: tabular-nums; }
.empty a { color: #704332; text-decoration: underline; }
.searchbar { max-width: 670px; min-height: 47px; }
.searchbar input, .searchbar button { font-size: 13px; }
.searchbar button { background: #704332; }
.field label { font-size: 13px; }
.field input, .field select, .field textarea { min-height: 44px; border-color: #d9c7b8; border-radius: 9px; font-size: 14px; }
.field[hidden] { display: none !important; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #9e5f43; box-shadow: 0 0 0 3px rgba(158, 95, 67, .14); }
.modal-card { border: 0; border-radius: 18px; background: #fffdf8; box-shadow: 0 25px 65px rgba(44, 27, 20, .26); }
.modal-shade { background: rgba(42, 26, 20, .56); }
.modal-header .eyebrow { display: none; }
.modal-header h2 { color: #3b2921; }
.modal-help { background: #f6eee5; color: #60483c; }
.sensor-card { background: #fffdf8; }
.photo-workspace { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(310px, .8fr); gap: 22px; max-width: 1120px; }
.photo-form-panel { padding: 34px; }
.photo-form-panel h2, .photo-guide h2 { margin: 0 0 8px; font-size: 23px; line-height: 1.2; letter-spacing: -.025em; }
.photo-form-panel > p, .photo-guide > p { max-width: 47ch; margin: 0 0 27px; color: #6d5b51; font-size: 14px; line-height: 1.55; }
.photo-form-panel .form-stack { max-width: 560px; }
.photo-form-panel .field { margin-bottom: 18px; }
.photo-form-panel .field input[type="file"] { padding: 10px; background: white; }
.photo-form-panel .button { margin-top: 7px; }
.photo-guide { padding: 35px; border-radius: 18px; background: #ead5c1; color: #3e2b23; }
.photo-guide-symbol { display: grid; place-items: center; width: 49px; height: 49px; margin-bottom: 28px; border-radius: 13px; background: #704332; color: white; font-size: 26px; }
.photo-guide-symbol .ui-icon { width: 25px; height: 25px; }
.photo-guide > p { color: #62493d; }
.photo-guide ol { display: grid; gap: 17px; margin: 32px 0; padding: 0; list-style: none; }
.photo-guide li { display: flex; align-items: center; gap: 13px; font-size: 14px; font-weight: 700; }
.photo-guide li span { display: grid; place-items: center; flex: none; width: 29px; height: 29px; border: 1px solid #af8973; border-radius: 50%; font-size: 12px; }
.photo-guide small { display: block; padding-top: 18px; border-top: 1px solid #c9a98f; color: #654b3e; font-size: 12px; }
.login-body { background: #f6eee4; }
.login-shell { grid-template-columns: minmax(440px, 1fr) minmax(440px, .9fr); min-height: 100vh; }
.login-intro { padding: 42px clamp(40px, 6vw, 110px); color: #39251d; background: #f2dfc9; }
.login-brand .brand-name { color: #3b2921; }
.login-brand .brand-name small { color: #755b4d; }
.login-intro-content { max-width: 540px; }
.intro-kicker, .login-overline { display: none; }
.login-intro h1 { max-width: 520px; margin: 0 0 22px; color: #3d291f; font-size: clamp(46px, 4.2vw, 64px); line-height: 1.08; letter-spacing: -.035em; }
.login-intro h1 span { color: #965d44; }
.login-intro p { color: #62483a; font-size: 16px; }
.intro-features { gap: 17px; margin-top: 37px; }
.intro-features > div { grid-template-columns: 1fr; padding: 0 0 14px; border-bottom: 1px solid #dcc3aa; }
.intro-features > div > span { display: none; }
.intro-features strong { color: #4a3028; font-size: 14px; }
.intro-features small { color: #6c5141; font-size: 12px; }
.login-intro-footer { color: #785b4b; }
.chocolate-art { display: none; }
.login-form-side { background: #5a382a; }
.login-card { width: min(490px, 100%); padding: 42px; border-radius: 20px; background: #fffdf8; box-shadow: 0 22px 50px rgba(39, 20, 12, .18); }
.login-card h2 { margin-top: 0; font-size: 32px; }
.login-card p { margin-bottom: 27px; }
.login-card .login-current { margin: -7px 0 20px; padding: 12px 14px; border-radius: 10px; background: #f2dfc9; color: #4a3028; font-size: 13px; }
.login-current strong { overflow-wrap: anywhere; }
.login-current a { color: #704332; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.login-card .full { min-height: 48px; margin-top: 10px; }
.login-footer { color: #6f5a4d; }
@media (max-width: 1150px) {
  .site-header { flex-wrap: wrap; justify-content: space-between; gap: 0 16px; padding: 11px 25px 0; }
  .primary-nav { order: 3; width: 100%; justify-content: flex-start; }
  .primary-nav a { min-height: 49px; }
  .header-tools { margin-left: auto; }
  .page-heading { padding-left: 26px; padding-right: 26px; }
  .main { padding-left: 26px; padding-right: 26px; }
}
@media (max-width: 850px) {
  .page-heading { align-items: flex-start; flex-direction: column; gap: 17px; }
  .workbench { grid-template-columns: 1fr; }
  .photo-workspace { grid-template-columns: 1fr; }
  .dashboard-snapshot { min-height: 280px; }
  .login-shell { grid-template-columns: 1fr; }
  .login-intro { min-height: 340px; }
}
@media (max-width: 620px) {
  .site-header { padding: 9px 15px 0; }
  .site-header .brand-name { font-size: 17px; }
  .brand-mark { width: 36px; height: 36px; padding: 7px; }
  .header-tools { gap: 0; }
  .header-menu summary { padding: 0 7px; font-size: 12px; }
  .account-name { display: none; }
  .primary-nav { gap: 0; overflow-x: auto; margin: 3px -15px 0; padding: 0 11px; scrollbar-width: none; }
  .primary-nav::-webkit-scrollbar { display: none; }
  .primary-nav a { min-height: 45px; padding: 0 11px; font-size: 12px; }
  .page-heading { padding: 26px 17px 19px; }
  .page-heading h1 { font-size: 26px; }
  .main { padding: 0 17px 40px; }
  .action-stage { padding: 23px 18px; }
  .action-choices { grid-template-columns: 1fr; }
  .action-choice { min-height: 165px; }
  .review-steps { flex-wrap: wrap; gap: 9px 17px; font-size: 11px; }
  .dashboard-snapshot { padding: 23px; }
  .photo-form-panel, .photo-guide { padding: 24px; }
  .snapshot-total strong { font-size: 52px; }
  .recent-section .section-heading { flex-direction: column; align-items: flex-start; }
  .mobile-card-table { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .mobile-card-table table, .mobile-card-table tbody { display: block; width: 100%; min-width: 0; }
  .mobile-card-table thead { display: none; }
  .mobile-card-table tr { display: block; margin-bottom: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
  .mobile-card-table td { display: block; width: 100%; padding: 8px 0; border: 0; font-size: 14px; overflow-wrap: anywhere; }
  .mobile-card-table tr:hover td { background: transparent; }
  .mobile-card-table td:first-child { padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 5px; color: var(--ink); font-weight: 700; }
  .mobile-card-table td strong { font-size: 15px; }
  .mobile-card-table td small { font-size: 12px; }
  .mobile-card-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--muted); font-size: 11px; font-weight: 700; text-align: left; }
  .mobile-card-table td.numeric { text-align: left; }
  .mobile-card-table td.empty, .mobile-card-table td[colspan] { padding: 16px 0; border: 0; margin: 0; text-align: left; }
  .mobile-card-table .history-line + .history-line { margin-top: 10px; }
  .device-filter { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px; overflow: visible; }
  .device-filter label { grid-column: 1 / -1; font-size: 13px; font-weight: 700; }
  .device-filter select { min-width: 0; width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; background: var(--surface); }
  .device-filter button { min-height: 44px; border-radius: 9px; }
  .login-intro { min-height: 300px; padding: 28px; }
  .login-intro h1 { font-size: 40px; }
  .login-form-side { min-height: 450px; padding: 25px; }
  .login-card { padding: 27px 23px; }
}
