/* The outer Collection sheet is sized by the shared workspace controller. */
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create {
  container-type:size;container-name:collection-create;
  min-width:0;min-height:0;overflow:hidden;background:var(--app-raised,#fff);color:var(--app-ink,#173b48);
}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create [hidden] {display:none!important;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create>.ws-wizard-heading {
  flex:none;min-height:56px;padding:6px 12px 6px 16px;border-bottom:1px solid var(--app-line,#cadde0);gap:8px;box-sizing:border-box;
}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create>.ws-wizard-heading h3 {flex:1;font-size:20px;font-weight:650;line-height:1.2;min-width:0;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-create-back {width:44px;height:44px;min-height:44px;border-radius:50%;color:var(--app-ink);font-size:32px!important;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create>.ws-wizard-heading .ws-wizard-cancel {
  width:44px;height:44px;min-height:44px;border-radius:50%;color:var(--app-ink);background:var(--app-selected,#e1f0f2);
}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create>.ws-wizard-scroll {
  padding:12px max(16px,calc((100% - 720px)/2));overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y;min-width:0;
  scrollbar-width:thin;scroll-padding-block:12px;
}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-wizard-scroll>.ws-heading {display:none;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create :is(.ws-create-intro,.ws-note) {font-size:13px;line-height:1.45;color:var(--app-muted,#526d76);margin:0 0 12px;overflow-wrap:anywhere;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-type-grid {gap:8px;margin:0;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-type-card {
  flex-direction:row;align-items:center;min-height:64px;gap:10px;padding:10px;border-radius:16px;border:1px solid var(--app-line);background:var(--app-raised);color:var(--app-ink);
}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-type-card[aria-pressed=true] {border-color:#19798c;background:var(--app-selected);box-shadow:inset 0 0 0 1px #19798c;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-type-card .ws-icon {width:36px;height:36px;flex:none;border-radius:12px;background:var(--app-selected);color:var(--app-ink);}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-type-card strong {font-size:15px;line-height:1.25;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-create-import-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-create-import-action {
  display:grid;grid-template-columns:24px minmax(0,1fr);gap:2px 8px;align-items:center;text-align:left;min-width:0;min-height:64px;padding:10px;
  border:1px solid var(--app-line);border-radius:16px;background:var(--app-surface);color:var(--app-ink);font:600 14px/1.25 var(--font-body,system-ui);
}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-create-action-icon {grid-row:1/3;font-size:25px;text-align:center;color:#14778b;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-create-import-action small {font-size:11px;font-weight:400;line-height:1.35;color:var(--app-muted);overflow-wrap:anywhere;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create :is(.ws-button,.ws-source-card) {border-radius:14px;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-button {background:var(--app-raised);border:1px solid var(--app-line);color:var(--app-ink);font-size:15px;font-weight:600;min-height:44px;padding:10px 14px;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-primary {background:#166d83;border-color:#166d83;color:#fff;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create :is(button,input,select,summary):focus-visible {outline:3px solid #349bab;outline-offset:2px;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create button:disabled {opacity:.55;cursor:default;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create>.ws-wizard-footer {
  position:relative;flex:none;display:flex;flex-wrap:nowrap;gap:8px;min-height:60px;
  padding:8px 12px calc(8px + var(--app-safe-bottom,0px));border-top:1px solid var(--app-line);background:var(--app-raised);box-sizing:border-box;
}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create>.ws-wizard-footer>.ws-primary {flex:1;min-width:0;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-source-options {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-source-card {min-width:0;min-height:60px;padding:10px;gap:8px;background:var(--app-raised);border-color:var(--app-line);}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-source-card:has(input:checked) {background:var(--app-selected);border-color:#19798c;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-source-card strong {font-size:13px;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-source-card small {font-size:11px;line-height:1.35;color:var(--app-muted);margin-top:3px;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-source-card input {margin:2px 0 0;accent-color:#19798c;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-create-source-choices {grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:8px 0;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-create-source-choices .ws-source-card {position:relative;align-items:center;justify-content:center;text-align:center;min-height:44px;padding:6px;box-sizing:border-box;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-create-source-choices strong {font-size:12px;line-height:1.25;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-create-source-choices input {position:absolute;width:1px;height:1px;margin:0;opacity:0;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-create-source-choices .ws-source-card:focus-within {outline:3px solid #349bab;outline-offset:2px;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create:is([data-create-source=upload],[data-create-source=url]) .ws-type-badge {display:none;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-type-badge {margin:0!important;border-radius:10px;background:var(--app-selected);color:var(--app-ink);}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-layer-summary {margin-top:0;padding:8px 10px;gap:8px;border-radius:12px;background:var(--app-surface);border-color:var(--app-line);}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-layer-summary .ws-icon {width:28px;height:28px;background:none;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select) {min-width:0;border-radius:12px;border-color:var(--app-line);background:var(--app-raised);color:var(--app-ink);}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-create-source-edit {
  display:grid;grid-template-columns:minmax(0,1fr) 20px;gap:3px 8px;align-items:center;text-align:left;width:100%;min-height:54px;
  padding:8px 12px;margin-top:12px;border:1px solid var(--app-line);border-radius:14px;background:var(--app-surface);color:var(--app-ink);font:600 14px/1.3 var(--font-body,system-ui);
}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-create-source-edit small {grid-column:1;font-size:12px;font-weight:400;color:var(--app-muted);overflow-wrap:anywhere;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-create-source-edit>span:last-child {grid-column:2;grid-row:1/3;text-align:center;font-size:24px;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-create-disclosure {margin:8px 0 12px;border:1px solid var(--app-line);border-radius:14px;background:var(--app-raised);padding:0 12px;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-create-disclosure>summary {display:flex;align-items:center;gap:8px;min-height:48px;cursor:pointer;list-style:none;font-size:14px;font-weight:600;color:var(--app-ink);}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-create-disclosure>summary::-webkit-details-marker {display:none;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-create-disclosure>summary::after {content:'⌄';margin-left:auto;font-size:19px;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-create-disclosure[open]>summary::after {content:'⌃';}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-create-disclosure .ws-section-heading {margin:6px 0 8px;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-field-head {grid-template-columns:minmax(0,1fr) minmax(0,.9fr) 44px;font-size:11px;background:var(--app-surface);color:var(--app-muted);}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-field-row {grid-template-columns:minmax(0,1fr) minmax(0,.9fr) 44px;padding:6px;gap:5px;border-color:var(--app-line);}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-field-row :is(input,select) {width:100%;min-height:44px;font-size:16px;padding:6px;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-field-row .ws-icon-button {width:44px;min-height:44px;color:var(--app-muted);}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-field-system {font-size:11px;padding:8px;background:var(--app-surface);color:var(--app-muted);border-color:var(--app-line);}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-fields {border-color:var(--app-line);border-radius:10px;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-text-button {min-height:44px;color:var(--app-ink);font-size:14px!important;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-option {min-height:44px;padding:8px 0;gap:8px;align-items:center;border-color:var(--app-line);}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-option strong {font-size:14px;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-option small {font-size:12px;line-height:1.4;color:var(--app-muted);}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-option input {width:38px;height:24px;min-height:24px;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-option input::after {top:4px;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-option input:checked {background:#19798c;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-option input:checked::after {left:20px;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-subheading {margin:12px 0 8px!important;font-size:14px;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-drop-zone {display:grid;gap:8px;padding:14px;border-style:solid;border-color:var(--app-line);border-radius:16px;background:var(--app-surface);text-align:left;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-drop-zone>:is(.ws-upload-icon,h4) {display:none;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-drop-zone>small {font-size:12px;color:var(--app-muted);}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-drop-zone .ws-create-disclosure {margin:0;background:var(--app-raised);}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-drop-zone p {margin:0 0 12px;text-align:left;max-width:none;font-size:12px;line-height:1.45;color:var(--app-muted);}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-service-form>h4 {display:none;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-service-form {margin:12px 0;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-create-url-entry {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-service-results {display:grid;gap:8px;min-width:0;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-service-results .ws-note {margin:0;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-import-progress-positioner {position:static;display:block;padding:0;margin-bottom:12px;pointer-events:auto;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-import-progress {grid-template-columns:28px minmax(0,1fr);justify-items:start;text-align:left;gap:4px 8px;width:100%;box-sizing:border-box;padding:12px;border:1px solid var(--app-line);border-radius:14px;background:var(--app-selected);box-shadow:none;color:var(--app-ink);backdrop-filter:none;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-import-progress-icon {grid-column:1;grid-row:1/5;width:24px;height:24px;border-color:var(--app-muted);color:var(--app-ink);font-size:19px;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-import-progress-stage {grid-column:2;font-size:14px;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create :is(.ws-import-progress-count,.ws-import-progress-name,.ws-import-progress-detail) {grid-column:2;font-size:12px;padding:0;background:none;color:var(--app-muted);}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-import-progress progress {grid-column:1/-1;background:var(--app-line);accent-color:#19798c;height:6px;}
html:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-error {margin:0 0 12px;padding:10px 12px;border-radius:12px;background:#fff1ed;color:#8c3426;font-size:13px;line-height:1.4;overflow-wrap:anywhere;}
html[data-theme=dark]:is([data-app-layout=phone],[data-app-layout=tablet]) .ws-mobile-create .ws-error {background:#442a24;color:#ffc8b8;}
@container collection-create (height < 220px) {
  html:is([data-app-layout=phone],[data-app-layout=tablet]) #workspacePanel:not([data-collection-folded=true]) .ws-mobile-create>.ws-wizard-heading {min-height:44px;padding-block:0;}
  html:is([data-app-layout=phone],[data-app-layout=tablet]) #workspacePanel:not([data-collection-folded=true]) .ws-mobile-create>.ws-wizard-footer {min-height:44px;padding-block:0;}
  html:is([data-app-layout=phone],[data-app-layout=tablet]) #workspacePanel:not([data-collection-folded=true]) .ws-mobile-create>.ws-wizard-scroll {padding-block:6px;}
}
@container collection-create (height < 132px) {
  html:is([data-app-layout=phone],[data-app-layout=tablet]) #workspacePanel:not([data-collection-folded=true]) .ws-mobile-create>.ws-wizard-heading {position:absolute;inset:auto auto 0 4px;z-index:5;width:100px;height:44px;min-height:44px;border:0;padding:0;gap:4px;pointer-events:none;}
  html:is([data-app-layout=phone],[data-app-layout=tablet]) #workspacePanel:not([data-collection-folded=true]) .ws-mobile-create>.ws-wizard-heading h3 {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
  html:is([data-app-layout=phone],[data-app-layout=tablet]) #workspacePanel:not([data-collection-folded=true]) .ws-mobile-create>.ws-wizard-heading button {pointer-events:auto;}
  html:is([data-app-layout=phone],[data-app-layout=tablet]) #workspacePanel:not([data-collection-folded=true]) .ws-mobile-create>.ws-wizard-footer {height:44px;min-height:44px;max-height:44px;padding:0 8px 0 108px;gap:6px;border:0;}
  html:is([data-app-layout=phone],[data-app-layout=tablet]) #workspacePanel:not([data-collection-folded=true]) .ws-mobile-create>.ws-wizard-footer .ws-button {font-size:13px;height:44px;min-height:44px;padding:6px 8px;}
  html:is([data-app-layout=phone],[data-app-layout=tablet]) #workspacePanel:not([data-collection-folded=true]) .ws-mobile-create>.ws-wizard-scroll {min-height:44px;padding-block:0;}
  html:is([data-app-layout=phone],[data-app-layout=tablet]) #workspacePanel:not([data-collection-folded=true]) .ws-mobile-create:has(>.ws-wizard-footer[hidden])>.ws-wizard-scroll {padding-bottom:48px;}
}
