



body.gp-body { display: flex; flex-direction: column; min-height: 100vh; background: var(--gray-50); color: var(--gray-750); }
body.gp-body > .main-footer { margin-top: auto; width: 100%; }

.gp-wrap { width: 100%; max-width: 1000px; margin: 0 auto; padding: var(--space-8) var(--space-5) var(--space-16); box-sizing: border-box; word-break: keep-all; }
.gp-wrap.is-narrow { max-width: 640px; }

.gp-title { font-size: var(--fs-h3); font-weight: 800; color: var(--gray-900); letter-spacing: var(--ls-tight); line-height: var(--lh-snug); margin: 0 0 var(--space-2); word-break: keep-all; }
.gp-lead { font-size: var(--fs-md); color: var(--gray-450); margin: 0 0 var(--space-8); word-break: keep-all; }

.gp-card { background: var(--white); border: 1px solid var(--gray-150); border-radius: var(--radius-2xl); box-shadow: var(--shadow-md); padding: var(--space-6); margin-bottom: var(--space-4); }
.gp-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); flex-wrap: wrap; }
.gp-card-title { font-size: var(--fs-md2); font-weight: 800; color: var(--gray-850); margin: 0; }
.gp-card-note { font-size: var(--fs-sm); color: var(--gray-425); margin: 0; }


.gp-field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-6); }
.gp-field:last-child { margin-bottom: 0; }
.gp-label { font-size: var(--fs-md); font-weight: 700; color: var(--gray-750); }
.gp-hint { font-size: var(--fs-sm); color: var(--gray-425); margin: 0; line-height: var(--lh-normal); }
.gp-hint a { color: var(--pink-500); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.gp-hint.is-warn { color: var(--pink-600); }
.gp-input, .gp-select, .gp-textarea {
    width: 100%; box-sizing: border-box; min-height: 48px; padding: var(--space-3) var(--space-4);
    border: 1.5px solid var(--gray-175); border-radius: var(--radius-lg); background: var(--white);
    font-size: var(--fs-lg); color: var(--gray-850); outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.gp-textarea { min-height: 112px; resize: vertical; line-height: var(--lh-relaxed); font-size: var(--fs-base); }

@media (max-width: 768px) { .gp-input, .gp-select, .gp-textarea { font-size: max(var(--fs-lg), 16px); } }
.gp-input::placeholder, .gp-textarea::placeholder { color: var(--gray-375); }
.gp-input:focus, .gp-select:focus, .gp-textarea:focus { border-color: var(--pink-300); box-shadow: var(--ring-primary); }
.gp-input.is-error { border-color: var(--error); }
.gp-unit-row { display: flex; align-items: center; gap: var(--space-2-5); }
.gp-unit-row .gp-input { max-width: 160px; }
.gp-unit { font-size: var(--fs-md); color: var(--gray-550); font-weight: 600; }


.gp-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.gp-chip {
    min-height: 44px; padding: var(--space-2) var(--space-4); border: 1.5px solid var(--gray-175); border-radius: var(--radius-4xl);
    background: var(--white); font-family: inherit; font-size: var(--fs-sm2); font-weight: 600; color: var(--gray-450); cursor: pointer; white-space: nowrap;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.gp-chip:hover { border-color: var(--pink-200); color: var(--pink-500); }
.gp-chip[aria-pressed="true"], .gp-chip[aria-checked="true"] { border-color: var(--pink-500); color: var(--white); background: var(--pink-500); }


.gp-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 52px;
    padding: var(--space-3) var(--space-6); border: none; border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--pink-300), var(--pink-500)); color: var(--white);
    font-size: var(--fs-md); font-weight: 800; cursor: pointer; text-decoration: none; box-shadow: var(--shadow-pink-sm);
}
.gp-cta:hover { background: linear-gradient(135deg, var(--pink-400), var(--pink-600)); }
.gp-cta:disabled { background: var(--gray-175); color: var(--gray-425); box-shadow: none; cursor: default; }
.gp-cta.is-block { width: 100%; }
.gp-btn-line {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1-5); min-height: 44px;
    padding: var(--space-2) var(--space-4); background: var(--white); border: 1px solid var(--pink-200); border-radius: var(--radius-pill);
    font-size: var(--fs-sm); font-weight: 700; color: var(--pink-500); cursor: pointer; white-space: nowrap; text-decoration: none;
}
.gp-btn-line:hover { background: var(--pink-500); border-color: var(--pink-500); color: var(--white); }
.gp-btn-line:disabled { border-color: var(--gray-175); color: var(--gray-375); background: var(--white); cursor: default; }
.gp-btn-text { background: none; border: none; min-height: 44px; padding: var(--space-2); font-size: var(--fs-sm); color: var(--gray-450); cursor: pointer; }
.gp-btn-text:hover { color: var(--pink-500); }

:where(.gp-wrap) a:focus-visible, :where(.gp-wrap) button:focus-visible, :where(.gp-wrap) select:focus-visible,
:where(.gp-wrap) input:focus-visible, :where(.gp-wrap) textarea:focus-visible { outline: 2px solid var(--pink-500); outline-offset: 2px; }

.gp-error { display: none; margin: var(--space-3) 0 0; padding: var(--space-3) var(--space-4); background: var(--pink-50); border: 1px solid var(--pink-100); border-radius: var(--radius-lg); font-size: var(--fs-sm2); color: var(--pink-600); font-weight: 700; }
.gp-error.is-on { display: block; }


.gp-row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--gray-100); }
.gp-row:first-child { border-top: none; padding-top: 0; }
.gp-row-info { flex: 1; min-width: 0; }
.gp-row-title { font-size: var(--fs-base2); font-weight: 700; color: var(--gray-850); margin: 0 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-row-meta { font-size: var(--fs-xs3); color: var(--gray-425); margin: 0; }


.gp-empty { text-align: center; padding: var(--space-10) var(--space-5); color: var(--gray-425); }
.gp-empty p { margin: 0 0 var(--space-4); line-height: var(--lh-relaxed); font-size: var(--fs-base); }


.gw-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); }
.gw-head-info { min-width: 0; }
.gw-head-acts { display: flex; flex-direction: row; align-items: center; gap: var(--space-4); flex-shrink: 0; }   
.gw-guide-link { justify-content: center; min-height: 44px; display: inline-flex; align-items: center; color: var(--pink-500); font-weight: 700; font-size: var(--fs-sm2); text-decoration: underline; text-underline-offset: 3px; }
.gw-step-btn { white-space: nowrap; }
.gw-org { font-size: var(--fs-3xl); font-weight: 800; color: var(--gray-900); margin: 0 0 var(--space-1); letter-spacing: var(--ls-tight); word-break: keep-all; }
.gw-meta { font-size: var(--fs-sm2); color: var(--gray-450); margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); }
.gw-meta span:not(:last-child)::after { content: '·'; margin-left: var(--space-2); color: var(--gray-325); }
.gw-edit { display: none; margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--gray-100); }
.gw-edit.is-open { display: block; }
.gw-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5) var(--space-5); }
.gw-edit-grid .gp-field { margin-bottom: 0; }
.gw-edit-grid .is-wide { grid-column: 1 / -1; }
.gw-edit-actions { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-5); }


.gw-steps { list-style: none; margin: var(--space-6) 0; padding: 0; display: flex; gap: var(--space-2); }
.gw-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: var(--space-1-5); text-align: center; font-size: var(--fs-sm2); color: var(--gray-375); font-weight: 700; position: relative; }
.gw-step + .gw-step::before { content: ''; position: absolute; top: 17px; right: calc(50% + 24px); width: calc(100% - 48px + var(--space-2)); height: 2px; background: var(--gray-175); }
.gw-step-circle { width: 36px; height: 36px; border-radius: var(--radius-full); border: 2px solid var(--gray-175); background: var(--white); display: flex; align-items: center; justify-content: center; font-size: var(--fs-sm2); font-weight: 800; box-sizing: border-box; }
.gw-step-circle svg { width: 15px; height: 15px; }
.gw-step.is-active { color: var(--pink-500); font-weight: 800; }
.gw-step.is-active .gw-step-circle { border-color: var(--pink-500); background: var(--pink-500); color: var(--white); }
.gw-step.is-locked .gw-step-circle { background: var(--gray-100); color: var(--gray-350); }


.gw-mode { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-bottom: var(--space-4); }
.gw-mode-btn {
    min-height: 64px; padding: var(--space-3) var(--space-4); border: 2px solid var(--gray-175); border-radius: var(--radius-2xl);
    background: var(--white); text-align: left; cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.gw-mode-btn strong { display: block; font-size: var(--fs-md); color: var(--gray-750); font-weight: 800; }
.gw-mode-btn > .gw-mode-fig { display: flex; }   
.gw-mode-btn:hover { border-color: var(--pink-200); background: var(--pink-50); }
.gw-mode-btn[aria-checked="true"] { border-color: var(--pink-500); background: var(--pink-50); }
.gw-mode-btn[aria-checked="true"] strong { color: var(--pink-500); }


.gw-classes { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.gw-class { display: inline-flex; align-items: center; border: 1.5px solid var(--gray-275); border-radius: var(--radius-pill-sm); background: var(--white); padding-left: var(--space-3); }
.gw-class:focus-within { border-color: var(--pink-300); box-shadow: var(--ring-primary); }
.gw-class input { border: none; outline: none; background: none; font-size: var(--fs-sm3); font-weight: 700; color: var(--gray-750); width: 8em; min-height: 42px; padding: 0; }
.gw-class input:focus-visible { outline: none; }
.gw-class-count { font-size: var(--fs-xs3); color: var(--gray-425); white-space: nowrap; }
.gw-x { width: 44px; height: 42px; border: none; background: none; color: var(--gray-375); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-full); flex-shrink: 0; }
.gw-x:hover { color: var(--pink-500); }
.gw-x svg { width: 16px; height: 16px; }


.gw-paste { background: var(--pink-50); border-radius: var(--radius-2xl); padding: var(--space-4) var(--space-5); margin-bottom: var(--space-5); }
.gw-paste .gp-label { display: block; margin-bottom: var(--space-1); }
.gw-paste .gp-hint { margin-bottom: var(--space-3); }
.gw-paste-actions { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-2-5); margin-top: var(--space-3); flex-wrap: wrap; }
.gw-paste-actions .gp-select { width: auto; min-width: 140px; font-size: var(--fs-base); }
.gw-paste-count { font-size: var(--fs-sm); color: var(--gray-550); margin-right: auto; }


.gw-save { font-size: var(--fs-sm); color: var(--gray-425); white-space: nowrap; }
.gw-save.is-error { color: var(--pink-600); font-weight: 700; white-space: normal; }


.gw-roster { --gw-cols: 32px minmax(0, 1.3fr) minmax(0, 1fr) 96px 84px minmax(0, 1fr) 44px; }
.gw-roster.has-theme { --gw-cols: 32px minmax(0, 1.2fr) minmax(0, 0.9fr) 92px 80px minmax(0, 0.9fr) minmax(0, 1.5fr) 44px; }
.gw-roster-head, .gw-kid { display: grid; grid-template-columns: var(--gw-cols); gap: var(--space-2); align-items: start; }
.gw-roster-head { padding: 0 0 var(--space-2); border-bottom: 1px solid var(--gray-150); font-size: var(--fs-xs3); font-weight: 700; color: var(--gray-450); }
.gw-roster-head > span { padding-left: var(--space-1); }
.gw-kid { padding: var(--space-2) 0; border-bottom: 1px solid var(--gray-100); }
.gw-kid-no { font-size: var(--fs-sm); color: var(--gray-375); text-align: center; line-height: 44px; }
.gw-cell { min-width: 0; }
.gw-cell .gp-input, .gw-cell .gp-select { min-height: 44px; padding: var(--space-2) var(--space-2-5); font-size: var(--fs-base); border-radius: var(--radius-md); }
.gw-cell-msg { display: block; font-size: var(--fs-xs); color: var(--pink-600); margin-top: var(--space-1); line-height: var(--lh-snug); }
.gw-cell-msg.is-soft { color: var(--gray-450); }

.gw-roster .gw-kid > [data-col="age"] { display: flex; flex-direction: column; align-items: flex-end; }
.gw-roster .gw-kid > [data-col="age"] > .gw-cell-lab, .gw-roster .gw-kid > [data-col="age"] > .gp-input { align-self: stretch; }
.gw-roster .gw-kid > [data-col="age"] > .gw-cell-msg { width: max-content; text-align: right; white-space: nowrap; }
.gw-twin { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-1-5); margin-top: var(--space-1-5); }
.gw-twin label { font-size: var(--fs-xs); color: var(--gray-450); white-space: nowrap; }
.gw-twin .gp-input { min-height: 40px; font-size: var(--fs-sm); padding: var(--space-1-5) var(--space-2); }
.gw-theme-cell { display: none; }
.gw-roster.has-theme .gw-theme-cell { display: block; }
.gw-kid.is-new .gp-input { border-style: dashed; }
.gw-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); margin-top: var(--space-4); font-size: var(--fs-sm); color: var(--gray-425); flex-wrap: wrap; }

@media (max-width: 768px) {
    .gp-wrap { padding: var(--space-5) var(--space-4) var(--space-12); }
    .gp-title { font-size: var(--fs-3xl); }
    .gp-lead { margin-bottom: var(--space-6); }
    .gp-card { padding: var(--space-5) var(--space-4); }
    .gw-org { font-size: var(--fs-2xl); }
    .gw-edit-grid { grid-template-columns: 1fr; }
    .gw-steps { gap: var(--space-1); }
    .gw-step { font-size: var(--fs-xs3); }
    .gw-step-circle { width: 32px; height: 32px; }
    .gw-step + .gw-step::before { top: 15px; right: calc(50% + 20px); width: calc(100% - 40px + var(--space-1)); }
    .gw-mode { grid-template-columns: 1fr; }
    .gw-paste { padding: var(--space-4); }
    .gw-paste-actions .gp-select { flex: 1; }
    .gw-paste-actions .gp-btn-line { flex: 1; }
    
    .gw-roster-head { display: none; }
    .gw-kid, .gw-roster.has-theme .gw-kid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 44px;
        grid-template-areas: "name name book del" "gender age cls cls" "theme theme theme theme";
        gap: var(--space-2); padding: var(--space-3) 0;
    }
    .gw-kid-no { display: none; }
    .gw-kid > [data-col="name"] { grid-area: name; }
    .gw-kid > [data-col="book"] { grid-area: book; }
    .gw-kid > [data-col="gender"] { grid-area: gender; }
    .gw-kid > [data-col="age"] { grid-area: age; }
    .gw-kid > [data-col="cls"] { grid-area: cls; }
    .gw-kid > [data-col="theme"] { grid-area: theme; }
    .gw-kid > [data-col="del"] { grid-area: del; }
    .gw-kid.is-new { grid-template-areas: "name name name name"; }
}

@media (prefers-reduced-motion: reduce) {
    .gp-chip, .gw-mode-btn, .gp-input, .gp-select, .gp-textarea { transition: none; }
}

.gp-wrap .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.gp-wrap [hidden] { display: none !important; }
.gp-wrap section { padding: 0; }
.gp-wrap section.gp-card { padding: var(--space-6); }
@media (max-width: 768px) { .gp-wrap section.gp-card { padding: var(--space-5) var(--space-4); } }


.gw-step-btn { display: flex; flex-direction: column; align-items: center; gap: var(--space-1-5); width: 100%; min-height: 44px; padding: 0; border: none; background: none; font: inherit; color: inherit; cursor: pointer; position: relative; z-index: 1; }
.gw-step:not(.is-active) .gw-step-btn:hover { color: var(--pink-500); }
.gw-step:not(.is-active) .gw-step-btn:hover .gw-step-circle { border-color: var(--pink-200); }
.gw-step.is-done .gw-step-circle { border-color: var(--pink-300); color: var(--pink-500); }

.gw-step.is-active.is-done .gw-step-circle { border-color: var(--pink-500); color: var(--white); }


.gw-meter { height: 8px; border-radius: var(--radius-pill); background: var(--gray-150); overflow: hidden; margin-bottom: var(--space-5); }
.gw-meter > span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(135deg, var(--pink-300), var(--pink-500)); transition: width 0.3s; }
.gw-count-num { font-size: var(--fs-sm); font-weight: 700; color: var(--gray-450); margin-left: var(--space-1); }


.gw-drop { display: block; border: 2.5px dashed var(--pink-200); border-radius: var(--radius-3xl); background: var(--white); padding: var(--space-8) var(--space-5); text-align: center; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.gw-drop:hover, .gw-drop.is-over { border-color: var(--pink-300); background: var(--pink-50); }
.gw-drop svg { width: 44px; height: 44px; color: var(--pink-500); }
.gw-drop-title { display: block; margin-top: var(--space-2); font-size: var(--fs-lg); font-weight: 800; color: var(--pink-500); }
.gw-drop-sub { display: block; margin-top: var(--space-2); font-size: var(--fs-sm2); color: var(--gray-450); line-height: var(--lh-normal); }
.gw-drop-sub b { color: var(--gray-750); font-weight: 700; }
.gw-drop-pc { display: block; margin-top: var(--space-1); font-size: var(--fs-sm); color: var(--gray-375); }
.gw-drop-guide { margin: var(--space-3) 0 0; font-size: var(--fs-sm); color: var(--gray-425); text-align: center; }


.gw-up { margin-top: var(--space-4); padding: var(--space-4) var(--space-5); background: var(--pink-50); border-radius: var(--radius-2xl); }
.gw-up-line { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; font-size: var(--fs-sm3); font-weight: 700; color: var(--gray-750); }
.gw-up .gw-meter { margin: var(--space-2-5) 0 0; background: var(--white); }
.gw-up-stats { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); font-size: var(--fs-sm2); color: var(--gray-550); }
.gw-up-stats b { font-weight: 800; color: var(--gray-850); }
.gw-up-stats .is-bad b { color: var(--pink-600); }
.gw-up-list { list-style: none; margin: var(--space-3) 0 0; padding: var(--space-3) 0 0; border-top: 1px solid var(--pink-100); display: flex; flex-direction: column; gap: var(--space-1-5); }
.gw-up-list li { font-size: var(--fs-sm); color: var(--gray-550); line-height: var(--lh-snug); }
.gw-up-list li b { color: var(--gray-750); font-weight: 700; margin-right: var(--space-1-5); word-break: break-all; }


.gw-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: var(--space-4) var(--space-3); }
.gw-pk { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; position: relative; }
.gw-pk-pic { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; padding: 0; border: 2px solid var(--gray-150); border-radius: var(--radius-2xl); background: var(--gray-50); overflow: hidden; cursor: pointer; color: var(--gray-375); transition: border-color 0.15s, box-shadow 0.15s; }
.gw-pk-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.gw-pk-pic svg { width: 34%; height: 34%; }
.gw-pk-pic:hover { border-color: var(--pink-200); }
.gw-pk.is-none .gw-pk-pic { border-style: dashed; border-color: var(--gray-275); background: var(--white); }
.gw-pk.is-none .gw-pk-pic:hover { border-color: var(--pink-300); color: var(--pink-500); }
.gw-pk.is-bad .gw-pk-pic { border-color: var(--pink-500); background: var(--pink-50); color: var(--pink-500); }
.gw-pk.is-ok .gw-pk-pic { border-color: var(--white); box-shadow: var(--shadow-sm); }
.gw-pk-mark { position: absolute; top: var(--space-1-5); right: var(--space-1-5); width: 22px; height: 22px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; color: var(--white); box-shadow: var(--shadow-sm); }
.gw-pk-mark svg { width: 13px; height: 13px; }
.gw-pk.is-ok .gw-pk-mark { background: var(--success); }
.gw-pk.is-bad .gw-pk-mark { background: var(--pink-500); font-size: var(--fs-sm); font-weight: 800; }
.gw-pk-busy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--pink-50); opacity: 0.94; font-size: var(--fs-xs3); font-weight: 700; color: var(--pink-500); }
.gw-pk-name { margin-top: var(--space-2); max-width: 100%; font-size: var(--fs-sm3); font-weight: 800; color: var(--gray-850); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gw-pk-state { margin-top: 2px; font-size: var(--fs-xs); color: var(--gray-425); }
.gw-pk.is-ok .gw-pk-state { color: var(--gray-450); }
.gw-pk.is-bad .gw-pk-state { color: var(--pink-600); font-weight: 800; }
.gw-pk-reason { margin: var(--space-1) 0 0; font-size: var(--fs-2xs); line-height: var(--lh-snug); color: var(--pink-600); }
.gw-pk-acts { display: flex; justify-content: center; gap: var(--space-1); margin-top: var(--space-1); }
.gw-pk-act { position: relative; min-height: 28px; padding: 0 var(--space-2); border: none; background: none; font-size: var(--fs-xs); font-weight: 700; color: var(--gray-450); cursor: pointer; border-radius: var(--radius-sm); }
.gw-pk-act::after { content: ''; position: absolute; inset: -8px -2px; }
.gw-pk-act:hover { color: var(--pink-500); }


.gw-tray .gw-pk-pic { cursor: grab; }
.gw-tray .gw-pk-name { font-weight: 600; font-size: var(--fs-xs3); color: var(--gray-550); }
.gw-pk[aria-pressed="true"] .gw-pk-pic, .gw-tray .gw-pk.is-sel .gw-pk-pic { border-color: var(--pink-500); box-shadow: var(--ring-primary); }
.gw-tray-x { position: absolute; top: -8px; right: -8px; width: 32px; height: 32px; border: 1px solid var(--gray-175); border-radius: var(--radius-full); background: var(--white); color: var(--gray-450); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-sm); z-index: 1; }
.gw-tray-x:hover { color: var(--pink-500); }
.gw-tray-x svg { width: 14px; height: 14px; }
.gw-pick-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4); background: var(--pink-50); border: 1px solid var(--pink-100); border-radius: var(--radius-lg); font-size: var(--fs-sm3); font-weight: 700; color: var(--pink-600); }
.gw-pgrid.is-picking .gw-pk.is-target .gw-pk-pic, .gw-pk.is-over .gw-pk-pic { border-color: var(--pink-300); border-style: dashed; }
.gw-pk.is-over .gw-pk-pic { box-shadow: var(--ring-primary); }


.gw-filter { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
.gw-filter .gp-chip { min-height: 40px; padding: var(--space-2) var(--space-3-5); }
.gw-filter .gp-chip span { margin-left: var(--space-1); font-weight: 800; }

.gw-cell-msg.is-soft { color: var(--gray-450); }

@media (max-width: 768px) {
    .gw-drop { padding: var(--space-6) var(--space-4); }
    .gw-drop-pc { display: none; }
    .gw-up { padding: var(--space-4); }
    .gw-pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4) var(--space-2-5); }
}
@media (hover: none) { .gw-drop-pc { display: none; } }
@media (prefers-reduced-motion: reduce) {
    .gw-meter > span, .gw-drop, .gw-pk-pic { transition: none; }
}
@media (max-width: 768px) {
    
    .gw-meta span:nth-child(2)::after { display: none; }
    .gw-meta span:nth-child(3) { flex-basis: 100%; }
}


.gn-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.gn-form { margin-bottom: 0; }
.gn-side { display: flex; flex-direction: column; gap: var(--space-4); position: sticky; top: var(--space-6); }
.gn-side .gp-card { margin-bottom: 0; padding: var(--space-5); }
.gn-side-title { font-size: var(--fs-md); font-weight: 800; color: var(--gray-850); margin: 0 0 var(--space-3); }
.gn-quote-sum { min-height: 0; }
.gn-quote-total { margin: 0; font-size: var(--fs-h3); font-weight: 800; color: var(--pink-500); letter-spacing: var(--ls-tight); line-height: var(--lh-snug); }
.gn-quote-line { margin: 2px 0 0; font-size: var(--fs-sm2); color: var(--gray-550); font-weight: 600; }
.gn-quote-empty { margin: 0; font-size: var(--fs-sm2); color: var(--gray-450); line-height: var(--lh-normal); }
.gn-tiers { list-style: none; margin: var(--space-3) 0 0; padding: var(--space-3) 0 0; border-top: 1px solid var(--gray-100); display: flex; flex-direction: column; gap: var(--space-1); }
.gn-tiers li { display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--fs-sm); color: var(--gray-450); padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm); }
.gn-tiers li b { font-weight: 700; color: var(--gray-600); }
.gn-tiers li.is-on { background: var(--pink-50); color: var(--pink-600); }
.gn-tiers li.is-on b { color: var(--pink-600); }
.gn-quote-note { margin: var(--space-3) 0 0; font-size: var(--fs-xs3); color: var(--gray-450); }
.gn-step-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2-5); counter-reset: none; }
.gn-step-list li { display: grid; grid-template-columns: 24px auto 1fr; align-items: center; gap: var(--space-2-5); font-size: var(--fs-sm2); }
.gn-step-list b { font-weight: 800; color: var(--gray-750); white-space: nowrap; }
.gn-step-list li > span:last-child { color: var(--gray-450); }
.gn-step-no { width: 24px; height: 24px; border-radius: var(--radius-full); background: var(--pink-50); color: var(--pink-500); font-size: var(--fs-xs); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.gn-trust { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-4) 0 0; padding: var(--space-3); background: var(--pink-50); border-radius: var(--radius-lg); font-size: var(--fs-sm); font-weight: 700; color: var(--gray-600); }
.gn-trust svg { width: 22px; height: 22px; color: var(--pink-500); flex-shrink: 0; }
.gn-help-row { display: flex; align-items: center; gap: var(--space-3); min-height: 52px; padding: var(--space-2) 0; border-top: 1px solid var(--gray-100); text-decoration: none; color: inherit; }
.gn-help-row:first-of-type { border-top: none; }
.gn-help-row:hover b { color: var(--pink-500); }
.gn-help-ic { width: 36px; height: 36px; border-radius: var(--radius-full); background: var(--pink-50); color: var(--pink-500); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gn-help-ic svg { width: 18px; height: 18px; }
.gn-help-text { display: flex; flex-direction: column; min-width: 0; }
.gn-help-text b { font-size: var(--fs-sm3); font-weight: 800; color: var(--gray-750); }
.gn-help-text span { font-size: var(--fs-xs3); color: var(--gray-450); }
@media (max-width: 860px) {
    .gn-grid { grid-template-columns: 1fr; }
    .gn-side { position: static; }
}


.gw-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--white); border-top: 1px solid var(--gray-150); box-shadow: var(--shadow-sm); padding: var(--space-3) var(--space-5) calc(var(--space-3) + env(safe-area-inset-bottom, 0px)); }
.gw-bar-inner { max-width: 1000px; margin: 0 auto; padding: 0 var(--space-5); box-sizing: border-box; display: flex; align-items: center; gap: var(--space-4); }
.gw-bar-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gw-bar-info strong { font-size: var(--fs-md2); font-weight: 800; color: var(--gray-900); letter-spacing: var(--ls-tight); }
.gw-bar-info > span { font-size: var(--fs-sm); color: var(--gray-450); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gw-bar-info > span.is-note { color: var(--pink-600); font-weight: 700; white-space: normal; }
.gw-bar .gp-cta { flex-shrink: 0; min-width: 200px; min-height: 52px; }
.gw-bar .gp-cta.is-soon { background: var(--gray-175); color: var(--gray-550); box-shadow: none; cursor: default; }
.gw-soon { margin-left: var(--space-2); padding: 2px var(--space-2); border-radius: var(--radius-pill); background: var(--white); color: var(--gray-450); font-size: var(--fs-2xs); font-weight: 800; }
body.gw-has-bar > .main-footer { padding-bottom: calc(var(--space-24) + env(safe-area-inset-bottom, 0px)); }

html:has(body.gw-has-bar) { scroll-padding-bottom: calc(var(--gw-bar-h, 76px) + var(--space-4)); }
body.gw-has-bar .gw-wrap, body.gw-has-bar main { padding-bottom: calc(var(--gw-bar-h, 76px) + var(--space-6)); }


.gw-pick-empty { width: 100%; min-height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-1); border: 2px dashed var(--pink-200); border-radius: var(--radius-2xl); background: var(--white); color: var(--pink-500); cursor: pointer; font: inherit; }
.gw-pick-empty:hover { background: var(--pink-50); border-color: var(--pink-300); }
.gw-pick-empty svg { width: 28px; height: 28px; }
.gw-pick-empty strong { font-size: var(--fs-md); font-weight: 800; }
.gw-pick-empty span { font-size: var(--fs-xs3); color: var(--gray-450); }
.gw-picked { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3); border: 1.5px solid var(--pink-100); border-radius: var(--radius-2xl); background: var(--pink-50); }
.gw-picked-cover { width: 140px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-xs) var(--radius-xl) var(--radius-xl) var(--radius-xs); box-shadow: var(--shadow-md); background: var(--white); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--pink-300); }
.gw-picked-cover.is-empty svg { width: 40%; height: 40%; }
.gw-picked-info { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); }
.gw-picked-info strong { font-size: var(--fs-lg); font-weight: 800; color: var(--gray-900); line-height: var(--lh-snug); }
.gw-picked-acts { display: flex; align-items: center; gap: var(--space-1); margin-top: var(--space-1); }
.gw-picked-acts .gp-btn-text { text-decoration: underline; text-underline-offset: 3px; }
.gw-age { display: inline-block; font-size: var(--fs-2xs); background: var(--pink-100); color: var(--pink-500); border-radius: var(--radius-3xl); padding: 3px 10px; font-weight: 700; }

.gw-book-mini { width: 100%; min-height: 44px; display: flex; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-2); border: 1.5px solid var(--gray-175); border-radius: var(--radius-md); background: var(--white); cursor: pointer; font: inherit; text-align: left; }
.gw-book-mini:hover { border-color: var(--pink-300); }
.gw-book-mini span { min-width: 0; font-size: var(--fs-sm); font-weight: 700; color: var(--gray-750); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gw-book-mini.is-empty { border-style: dashed; }
.gw-book-mini.is-empty span { color: var(--pink-500); }
.gw-book-mini-cover { width: 32px; height: 32px; object-fit: cover; border-radius: var(--radius-xs); flex-shrink: 0; background: var(--pink-50); display: flex; align-items: center; justify-content: center; color: var(--pink-300); }
.gw-book-mini-cover.is-empty svg { width: 18px; height: 18px; }

.gw-modal { position: fixed; inset: 0; z-index: 1000; background: var(--overlay-dark); display: flex; align-items: center; justify-content: center; padding: var(--space-6); }
.gw-modal[hidden] { display: none; }
.gw-modal-box { width: 100%; max-width: 880px; max-height: calc(100vh - var(--space-12)); overflow-y: auto; background: var(--white); border-radius: var(--radius-3xl); padding: var(--space-6); box-sizing: border-box; word-break: keep-all; }
.gw-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.gw-modal-title { margin: 0; font-size: var(--fs-2xl); font-weight: 800; color: var(--gray-900); }
.gw-modal-sub { margin: 2px 0 0; font-size: var(--fs-sm2); color: var(--gray-450); }
.gw-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-4); }
.gw-book { border: 2.5px solid var(--gray-175); border-radius: var(--radius-xs) var(--radius-xl) var(--radius-xl) var(--radius-xs); overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.gw-book:hover { border-color: var(--pink-200); }
.gw-book.is-on { border-color: var(--pink-500); box-shadow: var(--ring-primary); }
.gw-book-pick { display: flex; flex-direction: column; padding: 0; border: none; background: none; cursor: pointer; text-align: left; font: inherit; }
.gw-book-cover { width: 100%; aspect-ratio: 1; object-fit: cover; display: flex; align-items: center; justify-content: center; background: var(--pink-50); color: var(--pink-300); }
.gw-book-cover.is-empty svg { width: 36%; height: 36%; }
.gw-book-title { padding: var(--space-2-5) var(--space-3) 0; font-size: var(--fs-sm3); font-weight: 800; color: var(--gray-850); line-height: var(--lh-snug); }
.gw-book-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: var(--space-2) var(--space-3) var(--space-3); margin-top: auto; }
.gw-book-foot a { position: relative; font-size: var(--fs-xs3); font-weight: 700; color: var(--gray-450); text-decoration: underline; text-underline-offset: 3px; }
.gw-book-foot a::after { content: ''; position: absolute; inset: -12px -8px; }
.gw-book-foot a:hover { color: var(--pink-500); }


.gw-pk-img { position: absolute; inset: 0; display: block; }
.gw-pk-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.gw-skel { position: absolute; inset: 0; background: linear-gradient(100deg, var(--gray-100) 30%, var(--gray-50) 50%, var(--gray-100) 70%); background-size: 200% 100%; animation: gwSkel 1.2s linear infinite; }
@keyframes gwSkel { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.gw-pk-fail { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-1); background: var(--gray-50); color: var(--gray-450); font-size: var(--fs-2xs); font-weight: 700; }
.gw-pk-fail svg { width: 22px; height: 22px; }


.gw-drop.is-compact { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-5); text-align: left; border-width: 2px; border-radius: var(--radius-2xl); }
.gw-drop.is-compact svg { width: 30px; height: 30px; flex-shrink: 0; }
.gw-drop.is-compact .gw-drop-title { margin: 0; font-size: var(--fs-md); white-space: nowrap; }
.gw-drop.is-compact .gw-drop-sub { display: none; }   
.gw-drop.is-compact .gw-drop-sub br { display: none; }
.gw-drop.is-compact .gw-drop-pc { margin: 0 0 0 auto; white-space: nowrap; }
.gw-drop.is-compact ~ .gw-drop-guide, .gw-drop.is-compact ~ .gw-drop-trust { display: none; }
.gw-drop-trust { margin-top: var(--space-2); padding: 0; background: none; justify-content: center; font-weight: 600; color: var(--gray-450); }

@media (max-width: 768px) {
    .gw-bar { padding: var(--space-2-5) var(--space-4) calc(var(--space-2-5) + env(safe-area-inset-bottom, 0px)); }
    .gw-bar-inner { padding: 0; gap: var(--space-3); }
    .gw-bar-info strong { font-size: var(--fs-md); }
    .gw-bar-info > span { font-size: var(--fs-xs); white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .gw-bar .gp-cta { min-width: 0; padding: var(--space-3) var(--space-4); font-size: var(--fs-base); }
    .gw-soon { display: block; margin: 2px 0 0; }
    .gw-modal { padding: 0; align-items: flex-end; }
    .gw-modal-box { max-height: 92vh; border-radius: var(--radius-3xl) var(--radius-3xl) 0 0; padding: var(--space-5) var(--space-4) calc(var(--space-5) + env(safe-area-inset-bottom, 0px)); }
    .gw-books { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
    .gw-picked-cover { width: 104px; }
    .gw-drop.is-compact { padding: var(--space-3) var(--space-4); }
    .gw-drop.is-compact .gw-drop-sub { display: none; }
}
@media (prefers-reduced-motion: reduce) { .gw-skel { animation: none; } }
@media (max-width: 768px) { .gw-bar .gp-cta.is-soon { flex-direction: column; gap: 0; line-height: var(--lh-snug); } }
.gw-modal :focus-visible, .gw-bar :focus-visible { outline: 2px solid var(--pink-500); outline-offset: 2px; }


.gw-roster-note { margin: calc(var(--space-2) * -1) 0 var(--space-4); font-size: var(--fs-sm); color: var(--gray-450); }
.gw-head-note { font-style: normal; font-weight: 600; color: var(--pink-500); margin-left: var(--space-1); }
.gw-intake { margin-bottom: var(--space-5); }
.gw-xls { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-5) var(--space-6); border: 2.5px dashed var(--pink-200); border-radius: var(--radius-3xl); background: var(--white); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.gw-xls:hover, .gw-xls.is-over { border-color: var(--pink-300); background: var(--pink-50); }
.gw-xls.is-busy { opacity: 0.6; pointer-events: none; }
.gw-xls:focus-visible { outline: 2px solid var(--pink-500); outline-offset: 2px; }
.gw-xls-ic { width: 52px; height: 52px; border-radius: var(--radius-xl); background: var(--pink-50); color: var(--pink-500); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gw-xls-ic svg { width: 28px; height: 28px; }
.gw-xls-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gw-xls-text strong { font-size: var(--fs-lg); font-weight: 800; color: var(--gray-850); }
.gw-xls-text span { font-size: var(--fs-sm2); color: var(--gray-450); }

.gw-xls-help { align-self: flex-start; font-size: var(--fs-sm2); font-weight: 700; color: var(--pink-500); text-decoration: none; }
.gw-xls-help:hover { text-decoration: underline; text-underline-offset: 3px; }
.gw-xls-btn { pointer-events: none; }
.gw-intake-alt { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1-5) var(--space-2); margin-top: var(--space-3); }
.gw-intake-or { font-size: var(--fs-xs3); color: var(--gray-425); margin-right: var(--space-1); }
.gw-alt { min-height: 36px; padding: var(--space-1-5) var(--space-3); border: 1px solid var(--gray-175); border-radius: var(--radius-pill); background: var(--white); font: inherit; font-size: var(--fs-sm); font-weight: 700; color: var(--gray-600); cursor: pointer; position: relative; }
.gw-alt::after { content: ''; position: absolute; inset: -4px 0; }
.gw-alt:hover, .gw-alt.is-on { border-color: var(--pink-300); color: var(--pink-500); }
.gw-tpl { margin-left: auto; min-height: 36px; text-decoration: underline; text-underline-offset: 3px; font-size: var(--fs-xs3); }
.gw-intake .gw-paste { margin: var(--space-3) 0 0; }


.gw-book-in { position: relative; }
.gw-book-in.has-check .gp-input { padding-right: 52px; }
.gw-check { position: absolute; right: var(--space-1-5); top: 50%; transform: translateY(-50%); min-height: 28px; padding: 0 var(--space-2); border: 1px solid var(--pink-200); border-radius: var(--radius-pill); background: var(--pink-50); color: var(--pink-500); font-size: var(--fs-2xs); font-weight: 800; cursor: pointer; }
.gw-check::after { content: ''; position: absolute; inset: -8px -4px; }
.gw-check:hover { background: var(--pink-500); color: var(--white); border-color: var(--pink-500); }


.gw-import { max-width: 760px; }
.gw-import-sheet { margin-bottom: var(--space-4); }
.gw-import-label { margin: var(--space-4) 0 var(--space-2); font-size: var(--fs-sm2); font-weight: 800; color: var(--gray-750); }
.gw-map { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-2); }
.gw-map[hidden] { display: none; }   
.gw-map-item { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.gw-map-item > span { font-size: var(--fs-xs3); font-weight: 700; color: var(--gray-550); }
.gw-map-item em { font-style: normal; color: var(--pink-500); font-size: var(--fs-2xs); }
.gw-map-item .gp-select { min-height: 42px; padding: var(--space-1-5) var(--space-2); font-size: var(--fs-sm); }
.gw-import-preview { border: 1px solid var(--gray-150); border-radius: var(--radius-lg); overflow-x: auto; }
.gw-import-preview table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.gw-import-preview th { text-align: left; padding: var(--space-2) var(--space-3); background: var(--gray-50); color: var(--gray-450); font-weight: 700; font-size: var(--fs-xs3); white-space: nowrap; }
.gw-import-preview td { padding: var(--space-2) var(--space-3); border-top: 1px solid var(--gray-100); color: var(--gray-750); white-space: nowrap; }
.gw-import-preview .is-need { color: var(--pink-600); font-weight: 700; }
.gw-import-more, .gw-import-empty { margin: 0; padding: var(--space-2) var(--space-3); font-size: var(--fs-xs3); color: var(--gray-450); border-top: 1px solid var(--gray-100); }
.gw-import-empty { border-top: none; padding: var(--space-5) var(--space-3); text-align: center; }
.gw-import-dup { margin-top: var(--space-4); padding: var(--space-3) var(--space-4); background: var(--pink-50); border-radius: var(--radius-lg); font-size: var(--fs-sm); color: var(--gray-600); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
.gw-import-dup p { margin: 0; width: 100%; }
.gw-import-dup b { color: var(--pink-600); }
.gw-import-dup label { display: inline-flex; align-items: center; gap: var(--space-1-5); min-height: 32px; cursor: pointer; }
.gw-import-dup input { accent-color: var(--pink-500); }
.gw-import-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--gray-100); }
.gw-import-foot strong { font-size: var(--fs-md); font-weight: 800; color: var(--gray-850); }
.gw-import-foot .gp-cta { min-width: 160px; }

@media (max-width: 768px) {
    .gw-xls { padding: var(--space-4); gap: var(--space-3); }
    .gw-xls-ic { width: 44px; height: 44px; }
    .gw-xls-btn { display: none; }
    .gw-tpl { margin-left: 0; }
    .gw-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gw-import-foot { flex-direction: column; align-items: stretch; }
    .gw-import-foot .gp-cta { width: 100%; }
    .gw-head-note { display: none; }
}

#gwStepRoster { display: flex; flex-direction: column; }
#gwStepRoster[hidden] { display: none; }
.gw-import-dup[hidden], .gw-import-sheet[hidden] { display: none; }
@media (max-width: 768px) {
    .gw-book-in.has-check .gp-input { padding-right: var(--space-2-5); }
    .gw-check { position: relative; top: auto; right: auto; transform: none; margin-top: var(--space-1); }
}
.gw-nw { white-space: nowrap; }

.gw-xls-acts { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }
.gw-tpl-btn { display: inline-flex; align-items: center; min-height: 44px; padding: var(--space-2) var(--space-4); border: 1px solid var(--gray-275); border-radius: var(--radius-pill); background: var(--white); font-size: var(--fs-sm); font-weight: 700; color: var(--gray-600); text-decoration: none; white-space: nowrap; }
.gw-tpl-btn:hover { border-color: var(--pink-300); color: var(--pink-500); }
.gw-import-notes { list-style: none; margin: var(--space-4) 0 0; padding: var(--space-3) var(--space-4); background: var(--gray-50); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: var(--space-1-5); font-size: var(--fs-sm); color: var(--gray-600); }
.gw-import-notes[hidden] { display: none; }
.gw-import-notes li::before { content: '·'; margin-right: var(--space-1-5); color: var(--pink-500); font-weight: 800; }
.gw-inline-select { display: inline-block; width: auto; min-height: 32px; padding: 2px var(--space-2); font-size: var(--fs-sm); margin: 0 2px; }
.gw-import-preview .is-soft { color: var(--gray-425); font-size: var(--fs-2xs); }
@media (max-width: 768px) {
    .gw-xls { flex-wrap: wrap; }
    .gw-xls-acts { width: 100%; padding-left: calc(44px + var(--space-3)); }
}

.gw-cover { position: relative; display: block; overflow: hidden; }
.gw-cover > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gw-cover-ov { position: absolute; inset: 0; pointer-events: none; }
.gw-book-cover.gw-cover, .gw-picked-cover.gw-cover { display: block; }


.gw-drop-acts { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.gw-drop-acts .gp-btn-line { min-height: 44px; padding: var(--space-2) var(--space-5); font-size: var(--fs-sm3); }
.gw-drop-acts .gw-pick-files { border-color: var(--gray-275); color: var(--gray-600); }
.gw-drop-acts .gw-pick-files:hover { background: var(--white); border-color: var(--pink-300); color: var(--pink-500); }
.gw-drop-acts svg { width: 16px; height: 16px; }
.gw-drop.is-compact .gw-drop-acts { margin: 0 0 0 auto; flex-wrap: nowrap; }
.gw-drop.is-compact .gw-drop-acts .gp-btn-line { min-height: 40px; padding: var(--space-1-5) var(--space-3); }
.gw-found { margin: var(--space-2) 0 0; text-align: center; font-size: var(--fs-sm); font-weight: 700; color: var(--pink-600); }
@media (max-width: 768px) {
    .gw-drop.is-compact { flex-wrap: wrap; }
    .gw-drop.is-compact .gw-drop-acts { margin: 0; width: 100%; }
    .gw-drop.is-compact .gw-drop-acts .gp-btn-line { flex: 1; }
}


.gw-org { overflow-wrap: anywhere; }
.gw-drop-sub, .gp-card-note, .gw-roster-note { text-wrap: pretty; }
.gw-danger { color: var(--pink-600); margin-right: auto; }
.gw-danger:hover { color: var(--pink-700, var(--pink-600)); text-decoration: underline; }
.gw-edit-actions { flex-wrap: wrap; }
.gw-price-line { margin: var(--space-1) 0 0; font-size: var(--fs-sm); font-weight: 700; color: var(--gray-600); }
.gw-gap-sum { margin: var(--space-1) 0 0; font-size: var(--fs-sm); color: var(--gray-450); }
.gw-gap-sum[hidden], .gw-price-line[hidden] { display: none; }

.gw-cell .is-blank { border-style: dashed; border-color: var(--gray-325); background: var(--gray-50); }
.gw-cell select.is-blank { color: var(--gray-425); }
.gw-cell-lab { display: none; }

.gw-check { min-height: 32px; padding: 0 var(--space-2-5); font-size: var(--fs-xs3); }
.gw-check::after { inset: -6px -4px; }
.gw-choice { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1-5); margin-top: var(--space-1-5); padding: var(--space-2); background: var(--pink-50); border: 1px solid var(--pink-100); border-radius: var(--radius-lg); }
.gw-choice > span { width: 100%; font-size: var(--fs-xs); color: var(--gray-550); font-weight: 700; }
.gw-choice-btn { display: inline-flex; flex-direction: column; align-items: flex-start; min-height: 44px; padding: var(--space-1) var(--space-3); border: 1px solid var(--pink-200); border-radius: var(--radius-md); background: var(--white); font: inherit; font-size: var(--fs-base); font-weight: 800; color: var(--gray-850); cursor: pointer; }
.gw-choice-btn small { font-size: var(--fs-2xs); font-weight: 600; color: var(--gray-450); }
.gw-choice-btn:hover { border-color: var(--pink-500); }

.gw-class.is-error input { border-color: var(--pink-500); }
#gwClassError { margin-top: var(--space-2); }

.gw-kid.is-added { background: var(--pink-50); transition: background 0.6s; }

.gw-kid-chk { display: flex; align-items: center; justify-content: center; gap: 2px; min-height: 44px; cursor: pointer; }
.gw-kid-chk input { width: 18px; height: 18px; accent-color: var(--pink-500); margin: 0; }
.gw-kid-chk span { display: none; }
.gw-each-bulk { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); margin-top: var(--space-3); padding: var(--space-3) var(--space-4); background: var(--gray-50); border-radius: var(--radius-lg); font-size: var(--fs-sm); color: var(--gray-600); }
.gw-each-bulk[hidden], .gw-each-sel[hidden] { display: none; }
.gw-each-sel { position: sticky; top: var(--space-2); z-index: 5; display: flex; align-items: center; gap: var(--space-2); margin: var(--space-3) 0; padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4); background: var(--white); border: 1px solid var(--pink-200); border-radius: var(--radius-pill); box-shadow: var(--shadow-sm); font-size: var(--fs-sm); font-weight: 800; color: var(--gray-850); }
.gw-each-sel #gwEachSelText { flex: 1; }
.gw-each-sel .gp-cta { min-height: 40px; padding: var(--space-2) var(--space-4); font-size: var(--fs-sm); }
.gw-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); width: 100%; }
.gw-filter-lab { font-size: var(--fs-xs3); font-weight: 800; color: var(--gray-550); margin-right: var(--space-1); }
.gw-bulk-target { padding-bottom: var(--space-2); border-bottom: 1px solid var(--gray-100); }
.gw-book-tags { display: inline-flex; gap: var(--space-1); flex-wrap: wrap; }

.gw-pk-sub { font-size: var(--fs-xs); color: var(--gray-550); font-weight: 700; }
.gw-pk-why { margin-top: 2px; font-size: var(--fs-2xs); line-height: var(--lh-snug); color: var(--gray-550); text-align: center; }
.gw-fail-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.gw-fail-item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2); border: 1px solid var(--gray-150); border-radius: var(--radius-lg); }
.gw-fail-pic { flex-shrink: 0; width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--gray-50); color: var(--gray-375); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gw-fail-pic svg { width: 28px; height: 28px; }
.gw-fail-pic img { width: 100%; height: 100%; object-fit: cover; }
.gw-fail-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gw-fail-text b { font-size: var(--fs-sm); color: var(--gray-850); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gw-fail-text span { font-size: var(--fs-xs3); color: var(--pink-600); line-height: var(--lh-snug); }

.gw-bar-sub { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 0; border: none; background: none; font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.gw-bar-sub:disabled { cursor: default; }
.gw-bar-first { font-size: var(--fs-sm); color: var(--gray-550); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.gw-bar-sub.is-note .gw-bar-first, .gw-bar-sub.is-note { color: var(--pink-600); font-weight: 700; font-size: var(--fs-sm); }
.gw-bar-more { font-size: var(--fs-xs); font-weight: 800; color: var(--pink-500); text-decoration: underline; text-underline-offset: 3px; }
.gw-bar-list { position: fixed; left: 0; right: 0; bottom: var(--gw-bar-h, 76px); z-index: 39; background: var(--white); border-top: 1px solid var(--gray-150); box-shadow: var(--shadow-sm); padding: var(--space-3) var(--space-5); }
.gw-bar-list[hidden] { display: none; }
.gw-bar-list ul { max-width: 960px; margin: 0 auto; padding: 0 0 0 var(--space-5); display: flex; flex-direction: column; gap: var(--space-1); font-size: var(--fs-sm); color: var(--gray-750); }
.gw-bar .gw-bar-soon { flex-shrink: 0; min-height: 44px; padding: var(--space-2) var(--space-3); color: var(--gray-450); border-color: var(--gray-175); cursor: default; font-size: var(--fs-sm); }
.gw-bar .gw-bar-soon .gw-soon { display: inline; margin-left: var(--space-1); background: var(--gray-100); }

.gw-confirm .gw-modal-box { max-width: 400px; }
.gw-confirm-body { margin: var(--space-3) 0 0; font-size: var(--fs-base); color: var(--gray-600); line-height: var(--lh-normal); word-break: keep-all; overflow-wrap: anywhere; }
.gw-confirm-acts { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-5); }
.gp-cta.is-danger { background: var(--pink-600); }
body.gw-modal-open { overflow: hidden; }

@media (max-width: 768px) {
    .gw-cell-lab { display: block; margin-bottom: 2px; font-size: var(--fs-2xs); font-weight: 700; color: var(--gray-450); }
    .gw-kid-chk { grid-area: chk; justify-content: flex-start; min-height: 24px; }
    .gw-roster.has-theme .gw-kid { grid-template-areas: "chk chk chk chk" "name name book del" "gender age cls cls" "theme theme theme theme"; }
    .gw-bar-first { white-space: normal; }
    .gw-bar-list { padding: var(--space-3) var(--space-4); }
    .gw-bar-list ul { padding-left: var(--space-4); }
    .gw-tray .gw-pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gw-confirm .gw-modal-box { max-width: none; }
    .gw-each-sel { flex-wrap: wrap; border-radius: var(--radius-lg); }
}
@media (prefers-reduced-motion: reduce) { .gw-kid.is-added { transition: none; } }

.gp-row { flex-wrap: wrap; }
.gn-row-acts { display: flex; align-items: center; gap: var(--space-1); }
.gn-del { color: var(--gray-450); }
.gn-del-ask { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--space-2); padding: var(--space-2) var(--space-3); background: var(--pink-50); border-radius: var(--radius-lg); font-size: var(--fs-sm); color: var(--gray-600); }
.gn-del-ask[hidden] { display: none; }
.gn-del-ask span { margin-right: auto; }
.gn-del-yes { min-height: 40px; padding: var(--space-2) var(--space-4); background: var(--pink-600); }
.gw-book-foot { flex-wrap: wrap; }
.gw-book-foot a { white-space: nowrap; }
.gw-book-tags .gw-age { white-space: nowrap; }
.gw-fail-re { flex-shrink: 0; min-height: 40px; padding: var(--space-1-5) var(--space-3); font-size: var(--fs-xs3); }
.gw-confirm-acts .gp-btn-text { padding: 0 var(--space-4); border-radius: var(--radius-pill); }



.gp-cta { border-radius: var(--radius-pill-sm); padding: var(--space-3-5) var(--space-7); box-shadow: var(--shadow-pink); font-weight: 800; }
.gp-cta:disabled { box-shadow: none; }
.gp-cta.is-danger { background: var(--pink-600); box-shadow: none; }
.gp-card { border: none; }
.gp-title { text-align: center; font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.01em; }
.gp-lead { text-align: center; }
.gp-btn-line { min-height: 44px; }

.gw-confirm-body { white-space: pre-line; }
.gw-confirm-acts { flex-wrap: wrap; }
.gw-confirm-acts .gp-cta, .gw-confirm-acts .gp-btn-line { min-height: 44px; padding: var(--space-2) var(--space-5); font-size: var(--fs-sm2); }
.gw-confirm-acts .gp-btn-line { border-radius: var(--radius-pill-sm); }
.gw-confirm-acts [hidden] { display: none; }

.gw-toast-act { margin-left: var(--space-2); padding: 0 var(--space-1); min-height: var(--space-8); border: none; background: none; font: inherit; font-weight: 800; color: var(--pink-300); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gw-toast { position: fixed; left: 50%; bottom: calc(var(--gw-bar-h, 0px) + var(--space-4)); transform: translateX(-50%); z-index: 1100; max-width: calc(100% - var(--space-8)); padding: var(--space-3) var(--space-5); border-radius: var(--radius-pill-sm); background: var(--gray-850); color: var(--white); font-size: var(--fs-sm2); font-weight: 700; box-shadow: var(--shadow-lg); word-break: keep-all; text-align: center; }
.gw-toast[hidden] { display: none; }

.gw-retry { margin-left: var(--space-1-5); min-height: 32px; padding: 0 var(--space-3); border: 1px solid var(--pink-300); border-radius: var(--radius-pill); background: var(--white); color: var(--pink-600); font: inherit; font-size: var(--fs-xs3); font-weight: 800; cursor: pointer; position: relative; }
.gw-retry::after { content: ''; position: absolute; inset: -6px -2px; }

.gw-org { word-break: keep-all; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.gw-org.is-long { font-size: var(--fs-2xl); }
.gw-org.is-longer { font-size: var(--fs-xl); }
.gw-org.is-clamped { cursor: pointer; }
.gw-org.is-open { -webkit-line-clamp: unset; display: block; }
@media (max-width: 768px) { .gw-org.is-long { font-size: var(--fs-xl); } .gw-org.is-longer { font-size: var(--fs-lg); } }

.gw-check { min-height: 44px; min-width: 52px; }
.gw-book-in.has-check .gp-input { padding-right: 64px; }


.gw-bar-first { word-break: keep-all; text-wrap: balance; }
.gw-bar-list li button { display: block; width: 100%; min-height: 40px; padding: var(--space-1-5) 0; border: none; background: none; font: inherit; font-size: var(--fs-sm); color: var(--gray-750); text-align: left; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gray-275); }
.gw-bar-list li button:hover { color: var(--pink-500); }
.gw-bar-list ul { list-style: none; padding-left: 0; }

.gw-twin.is-need label { color: var(--pink-600); font-weight: 700; }
.gw-twin.is-need .gp-input { border-color: var(--pink-300); }

.gw-kid-chk { min-height: 44px; min-width: 44px; }
.gw-kid-chk-txt { display: none; }
.gw-kid-chk-no { display: none; }
.gw-each-sel { display: none !important; }
@media (max-width: 768px) {
    .gw-kid-chk { justify-content: flex-start; gap: var(--space-2); min-height: 44px; }
    .gw-kid-chk-txt { display: inline; font-size: var(--fs-sm); font-weight: 700; color: var(--gray-600); }
    .gw-kid-chk input { width: 20px; height: 20px; }
}
.gw-import-ask-note { margin: 0; width: 100%; font-size: var(--fs-xs3); color: var(--gray-450); }

.gn-need { margin: var(--space-2) 0 0; min-height: 1.4em; font-size: var(--fs-sm); color: var(--gray-450); text-align: center; word-break: keep-all; }
.gp-chips.is-error .gp-chip { border-color: var(--pink-300); }
.gn-row-acts { position: relative; }
.gn-more { position: relative; }
.gn-more-btn { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-pill); color: var(--gray-450); font-size: var(--fs-xl); cursor: pointer; }
.gn-more-btn::-webkit-details-marker { display: none; }
.gn-more-btn:hover, .gn-more[open] .gn-more-btn { background: var(--gray-100); color: var(--gray-750); }
.gn-more-menu { position: absolute; right: 0; top: calc(100% + var(--space-1)); z-index: 20; min-width: 160px; padding: var(--space-1); background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.gn-more-item { display: block; width: 100%; min-height: 44px; padding: var(--space-2) var(--space-3); border: none; background: none; font: inherit; font-size: var(--fs-sm2); color: var(--pink-600); text-align: left; border-radius: var(--radius-md); cursor: pointer; }
.gn-more-item:hover { background: var(--pink-50); }
.gn-del-ask .gp-btn-line, .gn-del-ask .gp-cta { min-height: 40px; padding: var(--space-1-5) var(--space-4); font-size: var(--fs-sm); }

.gw-pk.is-bad .gw-pk-pic svg { width: 36px; height: 36px; color: var(--gray-375); }
.gw-kid-chk .gw-kid-chk-txt, .gw-kid-chk .gw-kid-chk-no { display: none; }
@media (max-width: 768px) {
    .gw-kid-chk .gw-kid-chk-txt { display: inline; }
    .gw-book-in.has-check .gp-input { padding-right: var(--space-2-5); }
    .gw-check { width: 100%; }
}

.gw-org.is-tiny { font-size: var(--fs-md); }
.gw-org:focus:not(:focus-visible) { outline: none; }
.gw-fail-item { padding: var(--space-2) var(--space-3); }


.gw-role-badge { display: inline-flex; align-items: center; min-height: 28px; margin: 0 0 var(--space-2); padding: 0 var(--space-3); border-radius: var(--radius-pill); background: var(--pink-50); color: var(--pink-600); font-size: var(--fs-sm); font-weight: 800; }
.gw-role-badge[hidden] { display: none; }
.gw-role-note { margin: var(--space-2) 0 0; font-size: var(--fs-sm); color: var(--gray-450); word-break: keep-all; }
.gw-role-note[hidden] { display: none; }
.gw-class.is-static { gap: var(--space-2); min-height: 44px; padding-right: var(--space-3); color: var(--gray-750); font-size: var(--fs-sm3); }
.gw-mode-btn:disabled { cursor: default; opacity: .7; }
.gn-shared-title { margin: var(--space-6) 0 var(--space-2); }
#gnMine .gp-card-head[hidden] + #gnMineList + #gnSharedWrap .gn-shared-title { margin-top: 0; }
.gp-nw { white-space: nowrap; }
#gwEmpty:empty { display: none; }
.gw-saved { display: inline-flex; width: 20px; height: 20px; color: var(--gray-450); }
.gw-saved svg { width: 100%; height: 100%; }

.gw-mode-fig { display: flex; gap: var(--space-2); margin-top: var(--space-3); }
.gw-mode-cover { position: relative; flex: 1 1 0; min-width: 0; aspect-ratio: 1; border-radius: var(--radius-xs) var(--radius-md) var(--radius-md) var(--radius-xs); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--white); container-type: inline-size; }
.gw-mode-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gw-mode-cover.is-empty { display: flex; align-items: center; justify-content: center; background: var(--pink-50); color: var(--pink-300); }
.gw-mode-cover.is-empty svg { width: 40%; height: 40%; }
.gp-hint:empty { display: none; }


#gnShip .ds-save, #gsShip .ds-save, #gwEShip .ds-save { display: none; }

#gnShip .ds-field, #gsShip .ds-field, #gwEShip .ds-field { display: flex; flex-direction: column-reverse; gap: var(--space-1-5); }
#gnShip .ds-field input, #gsShip .ds-field input, #gwEShip .ds-field input { padding: 12px; }
#gnShip .ds-field .ds-label, #gsShip .ds-field .ds-label, #gwEShip .ds-field .ds-label { position: static; transform: none; font-size: var(--fs-sm2); font-weight: 700; color: var(--gray-750); }

#gnShip .ds-select, #gnShip #dsMemo, #gsShip .ds-select, #gsShip #dsMemo, #gwEShip .ds-select, #gwEShip #dsMemo { display: none !important; }

.is-same .ds-field:has(#dsName), .is-same .ds-field:has(#dsPhone) { display: none; }
.gs-ship-diff { display: flex; align-items: center; gap: var(--space-2); min-height: var(--space-11); font-size: var(--fs-sm2); font-weight: 700; color: var(--gray-750); cursor: pointer; }
.ds-form .gs-ship-diff input { width: 20px; height: 20px; margin: 0; accent-color: var(--pink-500); }
#gsShip.ds-wrap { max-width: none; margin: 0; }
#gnShip.ds-wrap, #gwEShip.ds-wrap { max-width: none; margin: 0; }
#gwEShipField[hidden] { display: none; }
.gs-ship-saved { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3-5) var(--space-4); background: var(--pink-50); border: 1.5px solid var(--pink-100); border-radius: var(--radius-2xl); }
.gs-ship-saved[hidden] { display: none; }
.gs-ship-text { min-width: 0; }
.gs-ship-text p { margin: 0; word-break: keep-all; }
.gs-ship-who { font-size: var(--fs-sm3); color: var(--gray-600); }
.gs-ship-who b { font-size: var(--fs-md); font-weight: 800; color: var(--gray-900); }
.gs-ship-text .gs-ship-addr { margin-top: 2px; font-size: var(--fs-sm3); color: var(--gray-550); line-height: var(--lh-relaxed); }
.gs-ship-text .gs-ship-memo { margin-top: 2px; font-size: var(--fs-sm); color: var(--gray-450); }
.gs-ship-saved .gp-btn-line { flex: none; }
.gs-ship-acts { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-3); }
.gs-ship-acts[hidden], .gs-ship-acts [hidden] { display: none; }



.gw-mode-card { display: flex; flex-direction: column; border: 2px solid var(--gray-175); border-radius: var(--radius-2xl); background: var(--white); overflow: hidden; transition: border-color 0.15s, background 0.15s; }
.gw-mode-card:has(.gw-mode-btn[aria-checked="true"]) { border-color: var(--pink-500); background: var(--pink-50); }
.gw-mode-card .gw-mode-btn { flex: 1; border: none; border-radius: 0; background: none; }
.gw-mode-card .gw-mode-btn:hover { background: none; }
.gw-mode-card:not(:has(.gw-mode-btn[aria-checked="true"])):hover { border-color: var(--pink-200); }
.gw-mode-pick { padding: 0 var(--space-4) var(--space-4); }
.gw-mode-pick[hidden] { display: none; }
.gw-mode-pick.gw-each-bulk { margin: 0; background: none; border-radius: 0; }
.gw-picked-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.gw-picked-line strong { flex: 1 1 100%; font-size: var(--fs-md); font-weight: 800; color: var(--gray-900); line-height: var(--lh-snug); }
.gw-picked-line .gw-picked-acts { margin-top: 0; }
.gw-pick-same { width: 100%; }

.gw-mode-fig.is-same, .gw-mode-fig.is-each { position: relative; height: 196px; margin-top: var(--space-3); gap: 0; align-items: center; justify-content: center; }
.gw-stack { position: relative; width: 188px; height: 188px; }   
.gw-stack-page { position: absolute; inset: 0; border-radius: var(--radius-xs) var(--radius-md) var(--radius-md) var(--radius-xs); background: var(--white); border: 1px solid var(--gray-175); box-shadow: var(--shadow-sm); }
.gw-stack-page:nth-child(1) { transform: translate(24px, -18px); }
.gw-stack-page:nth-child(2) { transform: translate(12px, -9px); }
.gw-stack .gw-mode-cover { position: absolute; inset: 0; flex: none; width: 100%; }
.gw-stack-n { position: absolute; right: calc(50% - 150px); bottom: 8px; padding: var(--space-1) var(--space-2-5); border-radius: var(--radius-pill); background: var(--pink-500); color: var(--white); font-size: var(--fs-sm2); font-weight: 800; box-shadow: var(--shadow-sm); }
.gw-mode-fig.is-each .gw-mode-cover { position: absolute; flex: none; width: 144px; top: 26px; left: calc(50% - 72px); transform-origin: 50% 120%; }
.gw-mode-fig.is-each .gw-fan-1 { transform: translateX(-84px) rotate(-12deg); }
.gw-mode-fig.is-each .gw-fan-2 { z-index: 1; transform: translateY(-9px); }
.gw-mode-fig.is-each .gw-fan-3 { transform: translateX(84px) rotate(12deg); }

.gw-xls { cursor: pointer; }
.gw-xls.is-over { border-style: solid; border-color: var(--pink-500); background: var(--pink-50); }
.gw-xls:hover .gw-xls-ic, .gw-xls.is-over .gw-xls-ic { background: var(--pink-100); }

#gwStepRoster.is-empty:not(.is-typing) #gwRoster { display: none; }

.gw-roster.no-cls { --gw-cols: 32px minmax(0, 1.3fr) minmax(0, 1fr) 96px 84px 44px; }
.gw-roster.no-cls.has-theme { --gw-cols: 32px minmax(0, 1.2fr) minmax(0, 0.9fr) 92px 80px minmax(0, 1.5fr) 44px; }
.gw-roster.no-cls [data-col="cls"], .gw-roster.no-cls .gw-roster-head [data-unit] { display: none; }
.gw-opt { font-style: normal; font-size: var(--fs-xs3); font-weight: 600; color: var(--gray-425); margin-left: var(--space-1); }

.gw-note-btn { padding: 0; border: none; background: none; font: inherit; color: var(--pink-600); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 32px; }
.gw-import-fix { margin: var(--space-2) 0 var(--space-4); padding: var(--space-3) var(--space-4); background: var(--gray-50); border-radius: var(--radius-lg); }
.gw-import-fix[hidden] { display: none; }
.gw-import-fix ul { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-2) var(--space-4); }
.gw-import-fix li, .gw-fix-all { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-sm2); }
.gw-import-fix li b { flex: 1; min-width: 0; font-weight: 700; color: var(--gray-850); }
.gw-import-fix .gp-select, .gw-import-fix .gp-input { width: 96px; min-height: 40px; }
.gw-fix-all { flex-wrap: wrap; font-weight: 700; color: var(--gray-600); }
@media (max-width: 768px) {
    
    .gw-mode-fig.is-same, .gw-mode-fig.is-each { height: 120px; }
    .gw-stack { width: 120px; height: 120px; }
    .gw-stack-page:nth-child(1) { transform: translate(16px, -12px); }
    .gw-stack-page:nth-child(2) { transform: translate(8px, -6px); }
    .gw-stack-n { right: calc(50% - 104px); bottom: 6px; }
    .gw-mode-fig.is-each .gw-mode-cover { width: 96px; top: 18px; left: calc(50% - 48px); }
    .gw-mode-fig.is-each .gw-fan-1 { transform: translateX(-56px) rotate(-12deg); }
    .gw-mode-fig.is-each .gw-fan-2 { transform: translateY(-6px); }
    .gw-mode-fig.is-each .gw-fan-3 { transform: translateX(56px) rotate(12deg); }
}


.gn-guide-link { display: inline-flex; align-items: center; min-height: var(--space-11); margin-top: var(--space-2); font-size: var(--fs-sm2); font-weight: 700; color: var(--gray-600); text-decoration: underline; text-underline-offset: 3px; }
.gn-talk-open { padding: 0; border: none; background: none; font: inherit; font-weight: 700; color: var(--pink-600); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#gnTalk .gw-modal-box { max-width: 400px; }
.gn-talk-acts { display: flex; flex-direction: column; gap: var(--space-2); margin: var(--space-4) 0; }
.gn-talk-acts a { justify-content: center; text-align: center; }


.gw-mode-card .gw-mode-btn { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; }
.gw-kid.is-new > [data-col="name"] { grid-column: 2 / span 2; }



.gw-book-mini.is-error { border-color: var(--error); }
.gw-age.is-mis { background: var(--pink-50); color: var(--pink-600); box-shadow: inset 0 0 0 1px var(--error); }

.gw-intake { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-3); }
.gw-intake[hidden] { display: none; }
.gw-intake > * { grid-column: 1 / -1; }
.gw-intake > .gw-xls { grid-column: 1; }
.gw-intake > .gw-intake-alt { grid-column: 2; margin-top: 0; align-items: stretch; }
.gw-intake-alt .gw-alt { min-height: 0; height: 100%; padding: var(--space-5) var(--space-6); border: 2.5px solid var(--gray-175); border-radius: var(--radius-3xl); font-size: var(--fs-lg); font-weight: 800; color: var(--gray-750); }
.gw-intake-alt .gw-alt::after { inset: 0; }
.gw-intake-alt .gw-alt:hover { border-color: var(--pink-300); color: var(--pink-500); }
@media (max-width: 768px) {
    .gw-intake > .gw-intake-alt { grid-column: 1 / -1; margin-top: var(--space-3); }
    .gw-intake-alt .gw-alt { width: 100%; min-height: var(--space-13); padding: var(--space-3) var(--space-4); font-size: var(--fs-md); }
}


.gw-drop-rule { display: block; margin-top: var(--space-1); font-size: var(--fs-sm); color: var(--gray-425); line-height: var(--lh-normal); text-wrap: pretty; }
.gw-drop.is-compact .gw-drop-rule { display: none; }
.gw-fail-sum { margin: 0 0 var(--space-2); font-size: var(--fs-sm); color: var(--gray-550); }
.gw-fail-sum .gp-btn-text { min-height: 0; padding: 0; position: relative; font-size: var(--fs-sm); font-weight: 700; color: var(--pink-600); text-decoration: underline; text-underline-offset: 3px; }
.gw-fail-sum .gp-btn-text::after { content: ''; position: absolute; inset: -12px -8px; }
.gw-pick-bar { scroll-margin-top: var(--space-24); }
.gw-pgrid.is-picking .gw-pk:not(.is-target) { opacity: 0.45; }
.gw-pgrid.is-picking .gw-pk.is-target .gw-pk-pic { border-color: var(--pink-500); }



.ds-form .gs-ship-diff input[type="checkbox"] { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 0; margin: 0; flex-shrink: 0; accent-color: var(--pink-500); cursor: pointer; }

.gw-edit-grid .gp-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gw-edit-grid .gp-chip { padding-left: var(--space-2); padding-right: var(--space-2); }

.gw-tpl-btn { border-color: var(--pink-200); }


.gw-kid-tog { display: none; }
@media (max-width: 768px) {
    .gw-roster .gw-kid:not(.is-new) {
        grid-template-columns: auto minmax(0, 1fr) 80px 52px 44px;
        grid-template-areas: "no name gender age tog";
        gap: var(--space-2) var(--space-1-5); padding: var(--space-2) 0;
    }
    
    .gw-roster .gw-kid.is-open { grid-template-areas: "no name gender age tog" ". book book book ." ". cls cls cls ." ". . . del del"; }
    .gw-roster.no-cls .gw-kid.is-open { grid-template-areas: "no name gender age tog" ". book book book ." ". . . del del"; }
    .gw-roster.has-theme .gw-kid.is-open { grid-template-areas: "no name gender age tog" ". book book book ." ". cls cls cls ." ". theme theme theme ." ". . . del del"; }
    .gw-roster.no-cls.has-theme .gw-kid.is-open { grid-template-areas: "no name gender age tog" ". book book book ." ". theme theme theme ." ". . . del del"; }
    .gw-roster .gw-kid .gw-cell-lab { line-height: 1.2; }   
    .gw-roster .gw-kid.is-open > [data-col="del"] { display: flex; justify-content: flex-end; }
    .gw-roster .gw-kid > [data-col="del"] .gw-x { width: auto; height: 44px; gap: var(--space-1); padding: 0 var(--space-2); border-radius: var(--radius-md); }
    .gw-roster .gw-kid > [data-col="del"] .gw-x-txt { display: inline; font-size: var(--fs-sm); font-weight: 700; }
    .gw-roster .gw-kid:not(.is-new) > .gw-kid-no, .gw-roster .gw-kid > .gw-kid-chk { grid-area: no; align-self: start; margin-top: calc(var(--fs-2xs) * 1.2 + 2px); }
    .gw-roster .gw-kid:not(.is-new) > .gw-kid-no { display: block; min-width: var(--space-5); text-align: left; }
    .gw-roster .gw-kid-chk { justify-content: flex-start; gap: var(--space-1); min-height: 44px; min-width: 44px; }
    .gw-roster .gw-kid-chk .gw-kid-chk-txt { display: none; }
    .gw-roster .gw-kid-chk .gw-kid-chk-no { display: inline; font-size: var(--fs-sm); color: var(--gray-375); }
    .gw-roster .gw-kid > .gw-kid-tog { grid-area: tog; align-self: start; margin-top: calc(var(--fs-2xs) * 1.2 + 2px); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: none; border-radius: var(--radius-full); background: none; color: var(--gray-450); cursor: pointer; }
    .gw-roster .gw-kid > .gw-kid-tog svg { width: 20px; height: 20px; transition: transform 0.15s; }
    .gw-roster .gw-kid.is-open > .gw-kid-tog svg { transform: rotate(180deg); }
    .gw-roster .gw-kid > [data-col="gender"] .gp-select { padding-left: var(--space-2); padding-right: var(--space-1); }
    .gw-roster .gw-kid > [data-col="age"] .gp-input { padding-left: var(--space-2); padding-right: var(--space-2); }
    
    .gw-roster .gw-kid > [data-col="age"] { display: flex; flex-direction: column; align-items: flex-end; }
    .gw-roster .gw-kid > [data-col="age"] > .gw-cell-lab, .gw-roster .gw-kid > [data-col="age"] > .gp-input { align-self: stretch; }
    .gw-roster .gw-kid > [data-col="age"] > .gw-cell-msg { width: max-content; text-align: right; }
    .gw-roster .gw-kid .gw-twin label { white-space: normal; }
    
    .gw-roster .gw-kid:not(.is-open):not(.is-new) > [data-col="book"],
    .gw-roster .gw-kid:not(.is-open):not(.is-new) > [data-col="cls"],
    .gw-roster .gw-kid:not(.is-open):not(.is-new) > [data-col="theme"],
    .gw-roster .gw-kid:not(.is-open):not(.is-new) > [data-col="del"],
    .gw-roster .gw-kid:not(.is-open):not(.is-new) .gw-twin { display: none; }
    
    .gw-roster .gw-kid.is-new { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name"; }
    .gw-roster .gw-kid.is-new > [data-col="name"] { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .gw-roster .gw-kid > .gw-kid-tog svg { transition: none; } }


.gw-intake-alt .gw-alt { border-color: var(--pink-200); }


@media (max-width: 768px) {
    .gw-head { flex-direction: column; align-items: stretch; gap: var(--space-2); }
    .gw-head-acts { position: relative; flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-4); }
    .gw-head-acts .gw-help-wrap { position: static; }
    .gw-head-acts .gw-help { left: 0; right: auto; max-width: 100%; }
}

@media (max-width: 768px) {
    .gw-roster .gw-kid:not(.is-new) ~ .gw-kid:not(.is-new) > :is([data-col="name"], [data-col="gender"], [data-col="age"]) > .gw-cell-lab { display: none; }
    .gw-roster .gw-kid:not(.is-new) ~ .gw-kid:not(.is-new) > :is(.gw-kid-no, .gw-kid-chk, .gw-kid-tog) { margin-top: 0; }
}


.gw-pk-acts { flex-wrap: wrap; row-gap: var(--space-4); }
.gw-pk-act { min-width: 44px; }
.gw-pk-act::after { inset: -8px 0; }
.gw-tray-x::after { content: ''; position: absolute; inset: -8px; border-radius: var(--radius-full); }   
.gw-fail-list .gw-x { height: 44px; }

@media (max-width: 768px) {
    .gw-pk-acts { flex-wrap: nowrap; gap: 0; }
    .gw-pk-act { padding: 0 var(--space-1); white-space: nowrap; }
}
.gw-filter .gp-chip { min-height: 44px; }


.gw-roster-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-left: auto; }
.gw-x-txt { display: none; }

@media (max-width: 768px) {
    #gnShip .ds-picked-re, #gwEShip .ds-picked-re { min-height: 44px; }
}



.gw-pg-open { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: var(--space-1); padding: 0 var(--space-2); border: none; background: none; font: inherit; font-size: var(--fs-sm2); font-weight: 700; color: var(--pink-500); cursor: pointer; }
.gw-pg-open:hover { text-decoration: underline; text-underline-offset: 3px; }
.gw-drop.is-compact .gw-pg-open { margin: 0; padding: 0 var(--space-1); white-space: nowrap; flex-shrink: 0; }
.gw-pg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.gw-pg-item { min-width: 0; text-align: center; }
.gw-pg-item img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; box-sizing: border-box; border: 2.5px solid var(--gray-175); border-radius: var(--radius-lg); }
.gw-pg-item.is-good img { border-color: var(--success); }
.gw-pg-item.is-bad img { border-color: var(--error); }
.gw-pg-label { margin-top: var(--space-2); font-size: var(--fs-xs); line-height: var(--lh-snug); color: var(--gray-600); word-break: keep-all; }
.gw-pg-item.is-good .gw-pg-label { color: var(--success); font-weight: 700; }
.gw-pg-item.is-bad .gw-pg-label { color: var(--error); }
.gw-pg-item.is-good .gw-pg-label::before { content: '✓ '; }
.gw-pg-item.is-bad .gw-pg-label::before { content: '✕ '; }
.gw-pg-go { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin-top: var(--space-5); }
@media (max-width: 768px) { .gw-pg-grid { gap: var(--space-3); } }


.gw-tip-text { margin: 0; font-size: var(--fs-base); color: var(--gray-600); line-height: var(--lh-normal); word-break: keep-all; }
.gw-tip-hide { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; margin-top: var(--space-3); font-size: var(--fs-sm); color: var(--gray-550); cursor: pointer; }
.gw-tip-hide input { width: 18px; height: 18px; margin: 0; accent-color: var(--pink-500); }


.gw-clear-all:hover { color: var(--pink-600); text-decoration: underline; text-underline-offset: 3px; }
body.gw-locked #gwClearAll { display: none; }
.gw-bar .gw-bar-del { flex-shrink: 0; min-height: 52px; padding: var(--space-2) var(--space-5); border-color: var(--gray-275); color: var(--pink-600); font-size: var(--fs-sm3); }
.gw-bar .gw-bar-del:hover { background: var(--pink-50); border-color: var(--pink-300); color: var(--pink-600); }
.gw-bar .gw-bar-del[hidden] { display: none; }
@media (max-width: 768px) {
    .gw-bar .gw-bar-del { min-height: 44px; padding: var(--space-2) var(--space-3); font-size: var(--fs-base); }
    
    .gw-bar.is-sel .gw-bar-inner { flex-wrap: wrap; gap: var(--space-2); }
    .gw-bar.is-sel .gw-bar-info { flex-basis: 100%; flex-direction: row; align-items: baseline; gap: var(--space-3); }
    .gw-bar.is-sel .gw-bar-del, .gw-bar.is-sel .gp-cta { flex: 1 1 0; min-height: 44px; }
}


.gw-pick-by-opts { display: grid; gap: var(--space-2); }
.gw-pick-by-opt { width: 100%; }
.gw-pick-by-opt span { display: block; margin-top: var(--space-1); font-size: var(--fs-sm); color: var(--gray-550); word-break: keep-all; }
.gw-pick-by { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); flex-wrap: wrap; font-size: var(--fs-sm); color: var(--gray-600); }
.gw-pick-by[hidden] { display: none; }
.gw-pick-by-now { font-weight: 700; color: var(--gray-750); }

.gw-book-mini.is-guardian { border-color: var(--gray-150); background: var(--gray-50); }
.gw-book-mini.is-guardian span { font-weight: 400; color: var(--gray-450); }


.gw-photo-all { margin-left: auto; }
.gw-photo-all[hidden], body.gw-locked .gw-photo-all { display: none; }


.gw-tray-drop { display: none; margin: var(--space-3) 0 0; padding: var(--space-4); border: 2px dashed var(--pink-200); border-radius: var(--radius-md); text-align: center; font-size: var(--fs-sm2); font-weight: 700; color: var(--pink-500); }
.gw-tray.is-drop .gw-tray-drop { display: block; }
.gw-tray.is-drop.is-over .gw-tray-drop { background: var(--pink-50); border-color: var(--pink-400); }
.gw-pk.is-ok .gw-pk-pic[draggable="true"] { cursor: grab; }

@media (min-width: 769px) {
    .gw-roster .gw-cell[data-col="name"] .gw-twin { flex-wrap: nowrap; width: max-content; position: relative; z-index: 1; }
    .gw-roster .gw-cell[data-col="name"] .gw-twin .gp-input { width: 150px; }
}

.gw-bulk-kids { margin-top: var(--space-1); padding: var(--space-2) 0; border-bottom: 1px solid var(--gray-150); }
.gw-bulk-msg { width: 100%; margin: 0; font-size: var(--fs-sm); font-weight: 700; color: var(--pink-600); }
.gw-bulk-msg:empty { display: none; }

.gw-mode-pick.gw-pick-by { justify-content: flex-start; gap: var(--space-2); }
.gw-mode-pick.gw-pick-by .gp-btn-line { min-height: 44px; padding: 0 var(--space-1); border: none; background: none; box-shadow: none; font-size: var(--fs-sm); font-weight: 700; color: var(--pink-600); text-decoration: underline; text-underline-offset: 3px; }
.gw-mode-pick.gw-pick-by .gw-pick-by-now::after { content: '·'; margin-left: var(--space-2); color: var(--gray-375); font-weight: 400; }
.gw-mode-pick.gw-each-bulk { display: block; margin-top: var(--space-2); }
.gw-mode-pick.gw-each-bulk #gwEachBulkBtn { width: 100%; }

.gw-book-mini.is-readonly { cursor: default; background: var(--gray-50); border-style: solid; border-color: var(--gray-150); }
.gw-book-mini.is-readonly:hover { border-color: var(--gray-150); }
.gw-book-mini.is-guardian.is-readonly span { color: var(--gray-550); font-weight: 600; }

.tf-sort-row { display: flex; justify-content: flex-end; width: 100%; }
.tf-sort-wrap { position: relative; }
.tf-sort-btn { display: flex; align-items: center; gap: var(--space-1); min-height: 44px; padding: 0 var(--space-1); border: 0; background: none;
    font-size: var(--fs-sm2); font-weight: 600; color: var(--gray-600); cursor: pointer; font-family: inherit; }
.tf-sort-btn .arrow { font-size: 0.6rem; transition: transform 0.2s; }
.tf-sort-btn.open .arrow { transform: rotate(180deg); }
.tf-sort-panel { display: none; position: absolute; top: calc(100% + 2px); right: 0; background: var(--white); border: 1.5px solid var(--gray-175);
    border-radius: var(--radius-xl); box-shadow: var(--shadow-md); z-index: 50; min-width: 130px; overflow: hidden; }
.tf-sort-panel.open { display: block; }
.tf-sort-item { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); width: 100%; padding: 10px 16px; border: 0; background: none;
    font: inherit; font-size: var(--fs-sm2); font-weight: 600; color: var(--gray-600); cursor: pointer; transition: background 0.15s; white-space: nowrap; text-align: left; }
.tf-sort-item:hover { background: var(--pink-50); }
.tf-sort-item.selected { color: var(--pink-500); }
.tf-sort-item.selected::after { content: '✓'; font-size: var(--fs-xs); }

.gw-tf-row { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; width: 100%; }
.gw-tf-row .tf-sort-row { width: auto; margin-left: auto; }
.tf-gender-group { display: flex; gap: var(--space-2); }
.tf-btn { flex-shrink: 0; padding: 8px 18px; border: 1.5px solid var(--gray-175); border-radius: var(--radius-4xl); background: var(--white); font-size: var(--fs-sm2); font-weight: 600;
    color: var(--gray-450); cursor: pointer; font-family: inherit; transition: all 0.2s; white-space: nowrap; }
.tf-btn:hover { border-color: var(--pink-200); color: var(--pink-500); }
.tf-btn.active { background: var(--pink-500); color: var(--white); border-color: var(--pink-500); }
.tf-age-wrap { position: relative; }
.tf-age-btn { display: flex; align-items: center; gap: 5px; padding: 8px 18px; border: 1.5px solid var(--gray-175); border-radius: var(--radius-4xl); background: var(--white);
    font-size: var(--fs-sm2); font-weight: 600; color: var(--gray-450); cursor: pointer; font-family: inherit; transition: all 0.2s; white-space: nowrap; }
.tf-age-btn:hover { border-color: var(--pink-200); color: var(--pink-500); }
.tf-age-btn.active { background: var(--pink-500); color: var(--white); border-color: var(--pink-500); }
.tf-age-btn .arrow { font-size: 0.6rem; transition: transform 0.2s; }
.tf-age-btn.open .arrow { transform: rotate(180deg); }
.tf-age-panel { display: none; position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--white); border: 1.5px solid var(--gray-175);
    border-radius: var(--radius-xl); box-shadow: var(--shadow-md); z-index: 50; min-width: 130px; overflow: hidden; }
.tf-age-panel.open { display: block; }
.tf-age-item { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 16px; border: 0; background: none; font: inherit;
    font-size: var(--fs-sm2); font-weight: 600; color: var(--gray-600); cursor: pointer; transition: background 0.15s; text-align: left; }
.tf-age-item:hover { background: var(--pink-50); }
.tf-age-item.selected { color: var(--pink-500); }
.tf-age-item.selected::after { content: '✓'; font-size: var(--fs-xs); }
@media (max-width: 400px) { .gw-tf-row { gap: var(--space-1-5); } .tf-gender-group { gap: var(--space-1-5); } .tf-btn, .tf-age-btn { padding: 7px 14px; font-size: var(--fs-sm0); } }
