[hidden] { display: none !important; }
.login { max-width: 400px; margin: 9vh auto 0; }
.login h1 { margin-bottom: 12px; }
.login form { margin-top: 24px; }
.login p { line-height: 1.8; }
.login .button { width: 100%; }
.preview-entry { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.preview-entry .button { width: auto; flex: 1 0 40%; }
.work-list { width: 100%; table-layout: fixed; }
.work-list td, .work-list th { overflow-wrap: anywhere; white-space: normal; }
.work-list td small { display: block; color: var(--muted); margin-top: 4px; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.button.menu-toggle { display: none; }
.empty { padding: 40px 0; line-height: 1.9; color: var(--muted); }
.inline-form { max-width: 780px; padding: 18px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.inline-form summary { cursor: pointer; color: var(--blue); padding: 10px 0; }
.inline-form form { margin-top: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.form-grid .wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea { min-width: 0; width: 100%; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.detail-section { margin: 26px 0; }
.detail-section h2 { margin-bottom: 16px; }
.detail-grid dd, .field-row span { overflow-wrap: anywhere; }
.network-record { margin: 14px 0; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.error-text { color: var(--red); line-height: 1.8; margin: 10px 0; overflow-wrap: anywhere; }
.success-text { color: var(--green); }
.event-history { padding: 0; list-style: none; }
.event-history li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.event-history p { margin-top: 5px; overflow-wrap: anywhere; }
.event-history small { display: block; margin-top: 5px; color: var(--muted); }
.status-message { min-height: 24px; }
.work-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.work-toolbar label { flex: 1; max-width: 400px; }
.work-toolbar input { width: 100%; min-height: 40px; border: 1px solid var(--line); padding: 8px 12px; border-radius: 5px; }
.full-width { width: 100%; }
#labels { width: 760px; max-width: calc(100vw - 24px); }
.label-help { font-size: 12px; color: var(--muted); line-height: 1.8; margin-bottom: 20px; }
.label-sheet { display: flex; flex-wrap: wrap; gap: 4mm; }
.label-item { break-inside: avoid; }
.label-format { max-width: 320px; margin-bottom: 12px; }
.label-download { margin-top: 8px; min-height: 44px; }
.label-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.label-actions .button { min-height: 44px; }
.printer-controls { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.printer-controls .form-actions { margin-top: 0; }
.printer-controls .button { white-space: nowrap; }
.printer-controls p { margin-top: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.printer-density { display: flex; align-items: center; gap: 8px; }
.printer-density select { min-height: 44px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface, #fff); padding: 6px 10px; color: inherit; }
.d110-image { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.asset-label { display: grid; grid-template-columns: 28mm 1fr; align-items: center; flex: 0 0 60mm; width: 60mm; height: 40mm; padding: 2mm; border: 1px solid var(--line); color: #000; background: #fff; break-inside: avoid; overflow-wrap: anywhere; }
.asset-label strong { font-size: 12px; }
.asset-label p, .asset-label small { font-size: 9px; line-height: 1.6; }
.label-qr { width: 28mm; height: 28mm; }
.label-qr svg { display: block; width: 100%; height: 100%; }
.asset-label.d110 { display: block; width: 30mm; height: 14mm; padding: 0; border: 0; outline: 1px solid var(--line); }
.asset-label.d110.label-invalid { width: 240px; max-width: 100%; height: auto; outline: none; }
.d110 .label-qr { width: 12mm; height: 12mm; }
.d110 strong { display: block; font-size: 9px; line-height: 1.2; }
.d110 p, .d110 small { font-size: 6px; line-height: 1.3; }
@page { size: A4; margin: 10mm; }
@media print {
  .app, #review, #toast { display: none !important; }
  #labels[open] { position: static; width: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; box-shadow: none; overflow: visible; transform: none; opacity: 1; transition: none; }
  #labels::backdrop, #labels .modal-header, #labels .modal-footer, .label-help, .label-format, .label-download, .label-actions, .printer-controls { display: none; }
  #labels .modal-body { padding: 0; }
  .asset-label { border-color: #999; }
}
@media (max-width: 680px) {
  .button.menu-toggle { display: inline-flex; }
  .login { margin-top: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .work-list thead { display: none; }
  .work-list, .work-list tbody, .work-list tr, .work-list td { display: block; width: 100%; }
  .work-list tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .work-list td { padding: 5px 0; border: 0; }
  .work-list td::before { content: attr(data-label); display: inline-block; min-width: 86px; color: var(--muted); }
  .work-list .table-link { min-height: 44px; display: inline-flex; align-items: center; }
  .form-actions .button { flex: 1; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .topbar .breadcrumb { display: none; }
  #environment { font-size: 11px; }
}
.cloud-status { margin: 0; padding: 12px 24px; font-size: 14px; line-height: 1.5; background: #fff5df; color: #594113; overflow-wrap: anywhere; }
.cloud-status[data-state="connected"] { background: #e9f7ed; color: #1d5e31; }
