/* v4 shared layout rules, using the established theme and sizing tokens. */
.v4-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.v4-steps article{padding:24px;border:1px solid #ded5ec;border-radius:20px;background:#fff;color:#272031}.v4-steps small{color:#6530a7;font-weight:700}.v4-sample{display:grid;gap:8px;padding:20px;background:#f5f0fc;border-radius:12px;font-variant-numeric:tabular-nums}.v4-steps p{line-height:1.6}
.v4-form{display:grid;gap:16px;min-width:0}.v4-form label{display:grid;gap:8px;font-weight:600}.v4-form input,.v4-form textarea,.v4-form select,.v4-report-list select{box-sizing:border-box;width:100%;min-height:44px;border:1px solid var(--line,#d4cddd);border-radius:10px;background:var(--p,#fff);color:var(--ink,#241d30);padding:12px;font:inherit}.v4-form textarea{resize:vertical}.v4-form .v4-check{display:flex;align-items:start;gap:12px}.v4-check input{width:22px;min-height:22px;flex:none}.v4-form p{margin:0;line-height:1.6}.v4-report-list article{padding:20px 0;border-bottom:1px solid var(--line)}.v4-report-list p,.v4-report-list pre{white-space:pre-wrap;overflow-wrap:anywhere}.v4-report-list small{display:block;overflow-wrap:anywhere}.v4-report-list select{margin:12px 0}
body.compact-shell .host-modal-card{box-sizing:border-box;max-height:calc(var(--mobile-visible-height,100dvh) - 32px);scroll-padding-block:24px;background:var(--p,#fff)!important;color:var(--ink,#241d30)!important}
body.compact-shell .host-modal-card .host-modal-actions{position:static!important;background:transparent!important;padding:16px 0 0!important;margin:16px 0 0!important;box-shadow:none!important;flex-wrap:wrap}
body.compact-shell .host-workspace-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(120px,1fr) auto;align-items:end;gap:12px}
body.compact-shell .host-workspace-row label{display:grid;gap:8px;margin:0;min-width:0}body.compact-shell .host-workspace-row input,body.compact-shell .host-workspace-row select,body.compact-shell .host-workspace-row .btn{height:46px;box-sizing:border-box;margin:0}
body.compact-shell #acceptInviteCode{margin:8px 0 12px}body.compact-shell .host-workspace-members{margin-top:24px;padding-top:20px}body.compact-shell .host-member-copy b,body.compact-shell .host-member-copy small{white-space:normal;overflow-wrap:anywhere}
.v4-import{width:min(1100px,calc(100vw - 32px))!important}.v4-import .account-dialog-body{overflow:auto}.v4-import-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.v4-import-table{overflow:auto;max-height:380px}.v4-import-table table{width:100%;border-collapse:collapse}.v4-import-table th,.v4-import-table td{padding:12px;text-align:left;border-bottom:1px solid var(--line);min-width:110px;vertical-align:top}.v4-import-table input{min-width:130px}.v4-import-summary{padding:16px;border-radius:12px;background:var(--bg,#f5f0fc);overflow-wrap:anywhere}.v4-import [role=alert]{color:var(--r,#b42336)}
@media(max-width:700px){.v4-steps,.v4-import-grid{grid-template-columns:1fr}.v4-steps{gap:16px}.v4-import{width:calc(100vw - 16px)!important}.host-modal{padding:12px!important}body.compact-shell .host-workspace-row{grid-template-columns:1fr}body.compact-shell .host-workspace-row .btn{width:100%}.v4-form input,.v4-form select,.v4-form textarea{font-size:16px}}
@media(prefers-reduced-motion:reduce){.v4-form *{animation:none!important;transition:none!important}}
@media(max-width:700px){.v4-import-table table,.v4-import-table tbody,.v4-import-table tr,.v4-import-table td{display:block;width:100%;min-width:0}.v4-import-table thead{display:none}.v4-import-table tr{padding:12px;border:1px solid var(--line);border-radius:12px;margin-bottom:16px}.v4-import-table td{padding:8px 0;border:0}.v4-import-table td::before{content:attr(data-label);display:block;font-size:13px;font-weight:600;margin-bottom:4px}.v4-import-table input{min-width:0}.v4-import-table input[type=checkbox]{width:22px;min-height:22px}.v4-import-table td label{display:flex;gap:8px}}
