:root { font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #20312b; background: #f4f7f5; font-size: 15px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.topbar { height: 78px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; background: white; border-bottom: 1px solid #dce6df; }
.brand { display: flex; gap: 13px; align-items: center; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; background: #205d51; color: white; font-weight: 800; font-size: 21px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; letter-spacing: -.03em; }
.brand small { color: #788981; font-size: 12px; }
.top-actions { display: flex; gap: 11px; align-items: center; }
.top-actions label { display: flex; gap: 8px; align-items: center; font-size: 12px; color: #77877e; font-weight: 700; }
.top-actions select { min-width: 160px; }
.primary, .ghost, .small-button { border: 1px solid #d0ddd4; border-radius: 9px; padding: 9px 13px; background: white; color: #225d4b; font-weight: 650; }
.primary { background: #205d51; border-color: #205d51; color: white; }
.primary:hover { background: #17463e; }
.ghost:hover, .small-button:hover { background: #eef6f0; }
.small-button { padding: 5px 8px; font-size: 11px; }
.shell { display: grid; grid-template-columns: 242px minmax(0,1fr); min-height: calc(100vh - 78px); }
.sidebar { padding: 28px 17px; background: white; border-right: 1px solid #dce6df; }
.eyebrow { color: #91a198; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.eyebrow.space { margin-top: 35px; margin-bottom: 13px; }
.nav, .location { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border: 0; border-radius: 9px; background: transparent; color: #56675d; text-align: left; font-size: 13px; }
.nav { display: flex; justify-content: space-between; }
.nav span { padding: 2px 7px; border-radius: 20px; background: #e0ebe2; font-size: 11px; }
.nav:hover, .location:hover { background: #f1f7f3; }
.nav.active, .location.active { background: #e4f1e9; color: #1d614a; font-weight: 700; }
.location { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.location.child { padding-left: 25px; }
.location .code { display: block; color: #93a39a; font-size: 10px; font-weight: 650; }
.content { padding: 36px; min-width: 0; }
.page-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.page-heading h1 { margin: 5px 0 3px; font-size: 28px; letter-spacing: -.045em; }
.page-heading p { margin: 0; font-size: 13px; color: #77887f; }
.inventory-layout { display: grid; grid-template-columns: minmax(300px,390px) minmax(400px,1fr); gap: 20px; align-items: start; }
.list-panel, .detail-panel, .todo-group { background: white; border: 1px solid #dfe8e1; border-radius: 14px; box-shadow: 0 2px 12px #233d3108; }
.list-panel { overflow: hidden; }
.list-tools { display: flex; gap: 8px; padding: 15px; border-bottom: 1px solid #edf1ed; }
.list-tools input { flex: 1; min-width: 0; }
.list-tools select { max-width: 135px; }
input, select, textarea { padding: 9px 10px; border: 1px solid #d7e1da; border-radius: 8px; background: white; color: #263c31; outline: none; }
input:focus, select:focus, textarea:focus { border-color: #378268; box-shadow: 0 0 0 3px #37826820; }
.asset-card { display: block; width: 100%; padding: 17px 18px; border: 0; border-bottom: 1px solid #edf1ed; background: white; text-align: left; }
.asset-card:hover { background: #f7faf8; }
.asset-card.selected { border-left: 3px solid #338463; padding-left: 15px; background: #eaf4ed; }
.asset-card strong, .asset-card small { display: block; }
.asset-card strong { font-size: 14px; }
.asset-card small { margin-top: 5px; color: #73847a; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 20px; background: #e7f2eb; color: #21664f; font-size: 11px; font-weight: 700; }
.badge.issue { background: #fff1df; color: #9a5d1c; }
.badge.muted { background: #eef0ef; color: #63716b; }
.detail-panel { min-height: 450px; padding: 26px; }
.detail-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.detail-top h2 { margin: 5px 0 7px; font-size: 23px; letter-spacing: -.04em; }
.detail-top p { margin: 0; color: #75847c; font-size: 13px; }
.facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 10px; }
.fact { padding: 12px; border-radius: 10px; background: #f5f8f5; }
.fact span, .fact strong { display: block; }
.fact span { color: #829188; font-size: 11px; }
.fact strong { margin-top: 5px; font-size: 14px; overflow-wrap: anywhere; }
.valuation { margin-top: 18px; padding: 13px 15px; border: 1px solid #d6e9db; border-radius: 10px; background: #eaf3ec; }
.valuation strong { font-size: 17px; }
.valuation small { display: block; margin-top: 4px; color: #6b8072; }
.section-title { margin: 30px 0 12px; color: #809188; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.row-card { margin-top: 9px; padding: 14px; border: 1px solid #e5ebe6; border-radius: 10px; }
.row-card .meta { margin-bottom: 5px; color: #8a9b91; font-size: 11px; }
.row-card strong { font-size: 14px; }
.row-card p { margin: 6px 0 0; color: #52625a; font-size: 13px; line-height: 1.45; }
.row-card a { color: #246b53; font-size: 13px; font-weight: 650; }
.verification-note { margin-top: 18px; padding: 12px 14px; border-radius: 9px; background: #eef7f1; color: #215d46; font-size: 12px; font-weight: 650; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(145px,1fr)); gap: 10px; }
.photo-grid a { display: block; padding: 7px; border: 1px solid #e1e9e3; border-radius: 9px; color: #28654e; font-size: 11px; text-decoration: none; }
.photo-grid img { display: block; width: 100%; height: 110px; object-fit: cover; border-radius: 5px; }
.photo-grid span { display: block; margin-top: 6px; }
.invite-dialog { padding: 26px; }
.invite-dialog h2 { margin: 6px 0 10px; }
.invite-dialog p { color: #63776a; font-size: 13px; line-height: 1.5; }
.invite-dialog label { display: block; margin-top: 18px; font-size: 12px; font-weight: 700; }
.invite-dialog input { display: block; width: 100%; margin-top: 6px; }
.invite-dialog .hint { font-size: 11px; }
.row-flex { display: flex; justify-content: space-between; gap: 12px; }
.row-flex > strong:last-child { white-space: nowrap; }
.empty { padding: 30px; color: #8b9a92; text-align: center; font-size: 13px; }
.detail-empty { display: grid; place-items: center; min-height: 390px; color: #9aa9a0; text-align: center; }
.todo-group { margin-bottom: 16px; padding: 18px 20px; }
.todo-group h2 { margin: 0 0 8px; font-size: 15px; }
.todo-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 16px 0; border-top: 1px solid #edf0ed; }
.todo-item strong { font-size: 13px; }
.todo-item p { margin: 5px 0 0; color: #718078; font-size: 12px; }
.todo-item button { white-space: nowrap; }
.lifecycle-intro { margin: 0 0 16px; color: #64766b; font-size: 13px; line-height: 1.5; }
.lifecycle-table-wrap { overflow-x: auto; background: white; border: 1px solid #dfe8e1; border-radius: 14px; box-shadow: 0 2px 12px #233d3108; }
.lifecycle-table { width: 100%; min-width: 790px; border-collapse: collapse; text-align: left; }
.lifecycle-table th { padding: 16px 18px; color: #677a6e; background: #f8faf8; font-size: 11px; font-weight: 800; letter-spacing: .03em; white-space: nowrap; }
.lifecycle-table th a { color: inherit; text-decoration-color: #9cad9f; text-underline-offset: 3px; }
.lifecycle-table td { padding: 15px 18px; border-top: 1px solid #edf1ed; vertical-align: top; font-size: 13px; }
.lifecycle-table td small { display: block; margin-top: 4px; color: #809087; font-size: 11px; line-height: 1.35; }
.lifecycle-table .object-code { font-weight: 750; white-space: nowrap; }
.lifecycle-device { padding: 0; border: 0; background: transparent; color: #205d51; font-weight: 750; text-align: left; text-decoration: underline; text-decoration-color: #bdd6c4; text-underline-offset: 3px; }
.lifecycle-device:hover { color: #123e34; }
.lifecycle-defect { display: inline-block; margin-top: 5px; padding: 2px 6px; border-radius: 5px; background: #fff1df; color: #925819; font-size: 10px; font-weight: 750; }
.lifecycle-remaining { display: inline-block; padding: 5px 9px; border-radius: 7px; font-weight: 750; white-space: nowrap; }
.lifecycle-remaining.remaining { background: #e5f4e9; color: #176441; }
.lifecycle-remaining.overdue { background: #fde8e6; color: #a12d27; }
.lifecycle-remaining.unknown { background: #eff2ef; color: #697970; }
.unknown { color: #78877f; }
dialog { width: min(570px,calc(100vw - 28px)); max-height: 88vh; padding: 0; border: 1px solid #dce6df; border-radius: 16px; box-shadow: 0 20px 80px #14281d44; }
dialog::backdrop { background: #19382b66; }
dialog form { padding: 23px 26px; }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; }
.dialog-header h2 { margin: 5px 0 20px; font-size: 22px; }
.icon-button { border: 0; background: transparent; color: #728078; font-size: 25px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-grid label { color: #66796d; font-size: 12px; font-weight: 650; }
.form-grid label.wide { grid-column: 1/-1; }
.form-grid input, .form-grid select, .form-grid textarea { display: block; width: 100%; margin-top: 5px; }
.form-grid textarea { min-height: 80px; resize: vertical; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
#toast { position: fixed; right: 24px; bottom: 24px; padding: 12px 16px; border-radius: 9px; background: #163f31; color: white; opacity: 0; pointer-events: none; transition: opacity .2s; box-shadow: 0 8px 25px #152b2040; }
#toast.visible { opacity: 1; }
@media (max-width: 900px) { .shell { grid-template-columns: 180px 1fr; } .content { padding: 22px; } .inventory-layout { grid-template-columns: 1fr; } .sidebar { padding: 20px 10px; } }
@media (max-width: 650px) { .topbar { height: auto; gap: 12px; padding: 15px; align-items: flex-start; flex-direction: column; } .top-actions { width: 100%; flex-wrap: wrap; } .shell { display: block; } .sidebar { display: flex; flex-wrap: wrap; gap: 4px; border-right: 0; border-bottom: 1px solid #ddd; } .sidebar .eyebrow, .sidebar #location-list { display: none; } .sidebar .nav { width: auto; } .content { padding: 16px; } .facts { grid-template-columns: 1fr 1fr; } .form-grid { grid-template-columns: 1fr; } }

.demo-banner{display:flex;align-items:center;gap:20px;justify-content:space-between;padding:14px 24px;background:#245a78;color:#fff;font-size:12px;line-height:1.5}.demo-banner a{color:#fff;white-space:nowrap}.demo-banner button{background:#fff;color:#245a78;border:0;border-radius:8px;padding:8px 12px;font:inherit;white-space:nowrap}.demo-banner form{margin:0}@media(max-width:800px){.demo-banner{flex-wrap:wrap;gap:10px;padding:12px 16px}.demo-banner span{flex-basis:100%;order:3}}

@media(max-width:650px){.inventory-layout{grid-template-columns:minmax(0,1fr)}.list-panel,.detail-panel,.content{min-width:0}.list-tools{flex-wrap:wrap}.list-tools input{min-width:0;flex:1 1 100%}.list-tools select{width:100%}.detail-top,.section-title{flex-wrap:wrap}.asset-card{overflow-wrap:anywhere}.sidebar #location-list{display:flex;width:100%;flex-wrap:wrap;gap:4px}.sidebar .location{width:auto;flex:1 1 auto}.sidebar .location.child{margin-left:0}.facts{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
