:root { font: 16px/1.5 system-ui, sans-serif; color: #243228; background: #f5f6f2; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { max-width: 42rem; margin: auto; padding: 1.25rem; }
header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
h1 { margin: .25rem 0; font-size: 2rem; }
h2 { margin: 0 0 .75rem; font-size: 1.25rem; }
section { background: #fff; border: 1px solid #dce4da; border-radius: .75rem; padding: 1rem; margin: 0 0 1rem; }
form { display: grid; gap: .65rem; }
#photo-form { margin-bottom: 1.25rem; }
label { font-weight: 600; }
input, textarea, select { font: inherit; color: inherit; width: 100%; padding: .55rem; border: 1px solid #8a9a8c; border-radius: .4rem; background: #fff; }
button { justify-self: start; padding: .55rem .8rem; min-height: 44px; font: inherit; font-weight: 600; color: #fff; background: #356447; border: 1px solid transparent; border-radius: .4rem; cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
#logout, [data-remove], #add-item { color: #294d38; background: #edf3ed; }
fieldset { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; border: 1px solid #dce4da; border-radius: .4rem; margin: 0 0 .5rem; min-width: 0; }
fieldset button { grid-column: 1 / -1; }
details { border-top: 1px solid #dce4da; padding: .65rem 0; }
details p { margin-bottom: 0; }
summary { cursor: pointer; }
fieldset label:first-of-type { grid-column: 1 / -1; }
#ocr-result { margin-bottom: 1.25rem; }
#ocr-text { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 14rem; overflow: auto; }
