.tw-area, .tw-card { min-width:0 }
.tw-card { display:grid; gap:1rem }
.tw-heading, .tw-person { display:flex; align-items:center; justify-content:space-between; gap:.75rem 1rem; flex-wrap:wrap }
.tw-heading h2, .tw-card p { margin:0 }
.tw-person p, .tw-rooms p { color:var(--muted) }
.tw-table-wrap { border:1px solid var(--border); border-radius:.7rem }
.tw-grid, .tw-pick table { width:100%; border-collapse:collapse; text-align:start }
.tw-grid { table-layout:fixed; font-variant-numeric:tabular-nums }
.tw-grid th, .tw-grid td { border-bottom:1px solid var(--border); text-align:start; padding:.8rem 1rem; overflow-wrap:anywhere; vertical-align:middle }
.tw-grid :is(th,td) + :is(th,td) { border-inline-start:1px solid var(--border) }
.tw-grid tr:last-child :is(th,td) { border-bottom:0 }
.tw-grid thead { border-bottom:1px solid var(--border) }
.tw-grid thead th { background:var(--surface-soft) }
.tw-grid thead th:first-child { border-start-start-radius:.65rem }
.tw-grid thead th:last-child { border-start-end-radius:.65rem }
.tw-grid thead th, .tw-pick thead th { color:var(--muted); font-size:.9rem }
.tw-grid th:first-child { width:17% }
.tw-grid tbody th { font-size:1rem; font-weight:650 }
.tw-grid td { position:relative }
.tw-units { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); width:min(100%,9.75rem) }
.tw-unit { display:grid; place-items:center; min-width:0; height:2rem; padding:0; border:0; border-radius:.2rem; background:transparent }
.tw-unit::before { content:""; box-sizing:border-box; width:min(.96rem,85%); height:1.4rem; border:1px solid var(--muted); border-radius:.2rem; background:var(--surface-soft) }
button.tw-unit::before { background:var(--accent); border-color:var(--accent) }
.tw-unit:last-child { margin-inline-start:.22rem }
.tw-slot-tip { position:absolute; z-index:2; bottom:calc(50% + 1rem); inset-inline-start:.4rem; width:max-content; max-width:calc(100% - .8rem); padding:.35rem .6rem; border-radius:.35rem; background:var(--ink); color:var(--surface); font-size:.875rem; font-weight:600; overflow-wrap:anywhere }
.tw-grid tbody tr:first-child .tw-slot-tip { top:calc(50% + 1rem); bottom:auto }
.tw-short { display:none; text-decoration:none }
.tw-rooms summary { cursor:pointer; color:var(--accent-ink); font-weight:600 }
.tw-rooms ol { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr)); gap:.25rem 1.5rem; margin:.65rem 0; padding-inline-start:1.65rem }
.tw-rooms li::marker { font-weight:650; color:var(--muted) }
.tw-person { padding-top:.8rem; border-top:1px solid var(--border) }
.tw-person > div { min-width:0; flex:1 1 14rem; overflow-wrap:anywhere }
.tw-person p { font-size:.92rem; margin-top:.25rem }
.tw-pick { min-width:0; border:1px solid var(--border); border-radius:.6rem; padding:.6rem .8rem }
.tw-pick legend { font-weight:650; padding-inline:.3rem }
.tw-pick th { text-align:start }
.tw-pick tbody tr { border-top:1px solid var(--border) }
.tw-pick th:not(:first-child), .tw-pick td { text-align:center }
.tw-check { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:.3rem; min-height:2.7rem; cursor:pointer }
.tw-check input { width:1.15rem; height:1.15rem; accent-color:var(--accent); cursor:pointer; margin:0 }
.tw-check:has(input:disabled), .tw-check input:disabled { cursor:default }
.tw-check small { font-size:.77rem; color:var(--muted) }
@media(max-width:640px) {
  .tw-grid th, .tw-grid td { padding:.65rem .4rem }
  .tw-grid th:first-child { width:15% }
  .tw-long { display:none }
  .tw-short { display:inline }
}
.tw-area > .tabset { margin:0 }
.tw-prices { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,21rem),1fr)); gap:1rem 1.5rem; align-items:start }
.tw-price-group { min-width:0; margin:0 }
.tw-price-group h3, .tw-price-group legend { margin:0; font-size:1rem; font-weight:650; color:var(--accent-ink) }
.tw-price-group dl { margin:.4rem 0 0 }
.tw-price-row, .tw-price-input { display:flex; align-items:center; justify-content:space-between; gap:.7rem; padding:.65rem 0; border-bottom:1px solid var(--border) }
.tw-price-row dt { overflow-wrap:anywhere }
.tw-price-row dd { margin:0; flex-shrink:0; text-align:end; font-variant-numeric:tabular-nums }
.tw-price-group small { display:block; color:var(--muted); font-size:.875rem }
fieldset.tw-price-group { padding:.3rem .8rem; border:1px solid var(--border); border-radius:.6rem }
fieldset.tw-price-group legend { padding:0 .3rem }
.tw-price-input:last-child { border-bottom:0 }
.tw-price-input .tw-money { display:flex; align-items:center; gap:.35rem; flex:0 0 auto; font-variant-numeric:tabular-nums }
.tw-price-input input { width:6.6rem; max-width:30vw; text-align:end }
.tw-profile { min-width:0; overflow-wrap:anywhere }
.tw-profile > .plain { justify-self:start }
.tw-profile :is(h2,h3,dl,ul,p) { margin:0 }
.tw-identity { display:flex; gap:.8rem; align-items:center }
.tw-fields,.tw-contact { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr)); gap:.85rem 1.3rem }
.tw-contact dt,.tw-notes small { color:var(--muted); font-size:.875rem }
.tw-contact dd { margin:.2rem 0 }
.tw-remove { display:flex; align-items:center; gap:.5rem }
.tw-remove input { width:auto }
.tw-notes { display:grid; gap:.85rem; padding:0; list-style:none }
.tw-notes li { display:grid; gap:.3rem; border-top:1px solid var(--border); padding-top:.75rem }
.tw-note-body { white-space:pre-wrap }
:is(.tw-identity,.tw-person) > .avatar { position:relative; flex:0 0 2.75rem; width:2.75rem; height:2.75rem; overflow:hidden }
:is(.tw-identity,.tw-person) > .avatar img { width:100%; height:100%; object-fit:cover }
