.tuning-v3{display:grid;gap:20px;min-width:0}
.v3-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.tuning-v3 button,.v3-dialog button{border:1px solid #cee2dc;border-radius:12px;background:#fff;padding:10px 16px;color:inherit;cursor:pointer}
.tuning-v3 button:hover,.v3-dialog button:hover{background:#effaf5}
.tuning-v3 button[aria-current=page]{background:#e0f5ed;border-color:#65a991}
.tuning-v3 button:disabled,.v3-dialog button:disabled{opacity:.5;cursor:wait}
.v3-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:18px}
.v3-tile,.v3-card{display:grid;align-content:start;gap:12px;text-align:left;background:#fff;border:1px solid #dce9e5;border-radius:18px;padding:22px;overflow-wrap:anywhere;min-width:0}
.v3-tile span,.v3-tile small{color:#59746b}
.v3-card h3,.v3-card h4,.v3-card p{margin:0}
.v3-card blockquote{margin:12px 0;padding:12px;border-left:3px solid #60a18c;background:#f4faf7;white-space:pre-wrap}
.v3-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:18px}
.v3-form label,.v3-toolbar label{display:grid;gap:6px}
.v3-form input,.v3-form textarea,.v3-form select,.v3-toolbar input{width:100%;min-width:0;box-sizing:border-box;padding:10px;border:1px solid #b7cec5;border-radius:10px;background:#fff;color:inherit}
.v3-form textarea{resize:vertical}
.v3-dialog{width:min(850px,calc(var(--workspace-viewport-width,100vw) * 0.9));max-height:calc(var(--workspace-viewport-height,100vh) * 0.85);overflow:auto;padding:24px;border:1px solid #c5dcd3;border-radius:20px;color:#173e33}
.v3-dialog header,.v3-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 24px}
.v3-dialog::backdrop{background:#183e3866}
.v3-dialog [data-error],[data-status][role=alert]{color:#a33434;white-space:pre-wrap}
.v3-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}
.v3-fields dt{color:#59746b}.v3-fields dd{margin:8px 0;overflow-wrap:anywhere}
.v3-conversation{display:grid;gap:14px;margin-bottom:20px}
.v3-namecard{width:100%;max-height:260px;object-fit:contain;background:#f3f7f5;border-radius:12px}
.tuning-v3 [data-status]{margin:0;white-space:pre-wrap}
.interview-crew .crew-node{display:flex;align-items:center;flex-direction:column;flex:none;width:auto;height:auto;min-width:48px;padding:4px;gap:3px}
.interview-crew .crew-caption{white-space:nowrap}
.interview-crew{flex-wrap:wrap}
.v3-crop{display:block;width:100%;height:auto;max-height:480px;object-fit:contain;touch-action:none;grid-column:1/-1}

.v3-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;grid-column:1/-1}

.v3-form label{align-content:start}
.v3-form label:has(textarea),.v3-form>p{grid-column:1/-1}
.tuning-v3 .v3-toolbar{flex-direction:row;padding:0}
.tuning-v3 .v3-toolbar button{width:auto}
.tuning-v3>button{justify-self:start}
.v3-teach-intro{text-align:center;padding:12px 0 22px}
.v3-capture{display:grid;gap:16px;grid-column:1/-1}
.v3-capture video,.v3-capture img{width:100%;max-height:420px;object-fit:contain;border:1px solid #badad1;border-radius:16px;background:#eff7f4}
.v3-capture [hidden]{display:none}
.v3-understanding-summary{display:flex;align-items:center;gap:28px;flex-wrap:wrap;background:#f0faf6;border-radius:18px;padding:24px}
.v3-understanding-summary progress{width:100%;accent-color:#00a38c}
.v3-materials{display:flex;gap:10px;flex-wrap:wrap}
.v3-teach-nuko{width:120px;height:120px;object-fit:contain}
.v3-teach-composer{padding:24px;background:#f3faf7;border:1px solid #cee2dc;border-radius:18px}
.v3-teach-composer>button{justify-self:end;grid-column:1/-1;background:#008c7a;color:white}
.v3-form>.v3-namecard{grid-column:1/-1;max-height:180px}

@media(max-width:640px){.tuning-v3 [role=navigation]{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:8px}.tuning-v3 [role=navigation] button{flex:0 0 auto;max-width:240px}}
.tuning-v3{box-sizing:border-box;width:100%;max-width:none;padding:24px;gap:20px;container-type:inline-size;color:#193c50}
.tuning-v3.v3-embedded{padding:0}
.tuning-v3 [data-status]:empty,.v3-dialog [data-error]:empty{display:none}
.tuning-v3 button,.v3-dialog button{min-height:42px;line-height:1.5;box-sizing:border-box;transition:background .15s,border-color .15s}
.tuning-v3 button:focus-visible,.v3-dialog :is(button,input,textarea,select):focus-visible{outline:3px solid #009884;outline-offset:2px}
.tuning-v3 button.v3-primary,.v3-dialog button.v3-primary{background:#008e7e;border-color:#008e7e;color:#fff;font-weight:700}
.tuning-v3 button.v3-primary:hover,.v3-dialog button.v3-primary:hover{background:#007a6c}
.tuning-v3 button[aria-pressed=true]{background:#e1f5ed;border-color:#74b4a1;color:#007d6d}
.tuning-v3 .v3-list-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.v3-list-toolbar .v3-search{display:flex;align-items:center;position:relative;flex:1 1 290px;min-width:0;gap:0}
.v3-search svg{position:absolute;left:15px;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;pointer-events:none}
.v3-list-toolbar .v3-search input{width:100%;min-height:44px;height:auto;padding:9px 16px 9px 42px;border:1px solid #bdcfd7;border-radius:24px;background:#fff;color:#193c50}
.v3-list-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-width:0}
.v3-list-actions>.common-select{width:auto;flex:0 1 auto;min-width:120px;max-width:200px}
.knowledge-card-page .v3-list-actions :is(.common-select-trigger,[data-reload]){box-sizing:border-box;min-height:44px!important;line-height:1.4}
.knowledge-card-page .v3-list-actions .common-select-trigger{padding:9px 12px!important}
.v3-list-actions button,.v3-list-actions select{min-height:44px;width:auto;max-width:100%;border:1px solid #c4d6d6;border-radius:24px;padding:9px 14px;background:#fff;color:#193c50;white-space:nowrap}
.v3-list-actions select{max-width:200px;cursor:pointer}
.v3-list-actions .v3-camera-button{border-color:#008e7e;color:#008475}
.v3-list-summary{text-align:right;color:#61768b;margin-top:-8px}
.v3-empty{grid-column:1/-1;text-align:center;color:#61768b;padding:32px 16px;margin:0;line-height:1.8}
.v3-toolbar>h2{margin:0;flex:1;min-width:0;overflow-wrap:anywhere}
.v3-dialog{box-sizing:border-box;width:min(1060px,calc(var(--workspace-viewport-width,100vw) - 32px));max-width:none;max-height:calc(var(--workspace-viewport-height,100vh) - 40px);margin:auto;padding:24px;background:#fff;border:1px solid #c5dcd3;border-radius:20px;color:#193c50;overflow:auto}
.v3-dialog>form{min-width:0;margin:0}
.v3-dialog header{margin:0 0 24px;padding:0 0 16px;border-bottom:1px solid #e0e9ed;align-items:start}
.v3-dialog header h2{margin:5px 0;min-width:0;overflow-wrap:anywhere}
.v3-dialog header [data-close]{flex:none;padding:4px 12px}
.v3-dialog footer{justify-content:flex-end;margin:24px 0 0;padding-top:18px;border-top:1px solid #e0e9ed;flex-wrap:wrap;background:transparent}
.v3-dialog :is(input,textarea,select){box-sizing:border-box}
.v3-dialog .v3-form{min-width:0;gap:18px}
.v3-dialog:has(input[name=files]) .v3-form{grid-template-columns:repeat(2,minmax(0,1fr))}
.v3-dialog:has(input[name=files]) label:has(input[name=title]){grid-column:1/-1}
.v3-form label{min-width:0}
.v3-dialog .v3-form label{display:grid;margin:0;gap:6px}
.v3-form input[type=file]{display:block;width:100%;max-width:100%;min-width:0;padding:8px;background:#f5faf8;color:var(--text);line-height:1.6;text-overflow:ellipsis;overflow:hidden}
.v3-form input[type=file]::file-selector-button{font:inherit;line-height:1.5;border:1px solid #adcfc4;border-radius:8px;padding:7px 12px;margin:0 12px 0 0;background:#fff;color:#007d6c;cursor:pointer}
.v3-customer-form{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr);gap:22px;min-width:0}
.v3-customer-form.has-photo{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
.v3-customer-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-width:0}
.has-photo .v3-customer-inputs{grid-template-columns:minmax(0,1fr);gap:10px}
.has-photo .v3-customer-inputs label{grid-template-columns:90px minmax(0,1fr);align-items:center}
.v3-confirm-photo{margin:0;min-width:0;display:grid;gap:12px}
.v3-confirm-photo .v3-namecard{max-height:360px;aspect-ratio:91/55;border:1px solid #d6e2df;box-shadow:0 6px 18px #1d463012}
.v3-confirm-photo figcaption{line-height:1.7;color:#627770}
.v3-customer-notes{grid-column:1/-1;display:grid;gap:16px}
.v3-customer-notes textarea{height:6em;min-height:86px}
.v3-capture>p{margin:0}
.v3-capture label{min-width:0}
.v3-camera-stage{position:relative;margin:auto;max-width:100%;overflow:hidden;border-radius:14px;line-height:0}
.v3-capture .v3-camera-stage video{display:block;width:100%;height:auto;max-height:none;border:0;border-radius:0}
.v3-capture [hidden]{display:none}
.v3-dialog [data-card-editor]{grid-column:1/-1;min-width:0}
.v3-dialog [data-card-editor]>p{margin:0 0 14px;line-height:1.7}
.v3-crop-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.v3-crop-layout figure{display:grid;gap:12px;min-width:0;margin:0}
.v3-crop-layout figcaption{font-weight:700}
.v3-crop-layout .v3-crop{display:block;height:auto;max-height:none;max-width:100%;padding:0;border:0;border-radius:10px;justify-self:center}
.v3-crop-layout [data-orig]{touch-action:none;cursor:crosshair;outline-offset:4px}
.v3-crop-layout :is(p,.v3-crop-hint){margin:0;line-height:1.6;color:#61768b}
.v3-crop-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:18px 0}
.v3-crop-controls label{grid-template-columns:1fr auto}
.v3-crop-controls input{grid-column:1/-1;width:100%;accent-color:#008d76}
.v3-dialog[aria-busy=true] [data-card-editor]{pointer-events:none}
@media(max-width:640px){.v3-crop-layout,.v3-crop-controls{grid-template-columns:minmax(0,1fr)}.v3-crop-layout{gap:18px}.v3-crop-controls{gap:12px}}
.v3-capture .v3-toolbar{flex-direction:row;flex-wrap:wrap}
.v3-capture .v3-toolbar button{width:auto}
.v3-dialog .v3-capture [hidden]{display:none}
.v3-dialog :is([data-camera-start],[data-detect]){background:#edf5ff;border-color:#a8c6e9;color:#225c9b}
.v3-dialog :is([data-camera-start],[data-detect]):hover:not(:disabled){background:#dcecff;border-color:#7ea9db}
.v3-dialog [data-snap]{background:#218344;border-color:#218344;color:#fff;font-weight:700}
.v3-dialog [data-snap]:hover:not(:disabled){background:#176c35;border-color:#176c35}
.v3-dialog [data-retake]{background:#fff1f1;border-color:#e1a7ad;color:#a73140}
.v3-dialog [data-retake]:hover:not(:disabled){background:#ffe0e3;border-color:#d88792}
.v3-dialog :is([data-guide-rotate],[data-rotate]){background:#f5f0ff;border-color:#c8b5e6;color:#69439a}
.v3-dialog :is([data-guide-rotate],[data-rotate]):hover:not(:disabled){background:#ebe0fc;border-color:#b09ad6}
.v3-dialog [data-full-image]{background:#fff7e8;border-color:#dfc38e;color:#895b14}
.v3-dialog [data-full-image]:hover:not(:disabled){background:#ffedca;border-color:#cda45d}
.v3-card-stage{text-align:center;padding:20px;border-radius:18px;background:linear-gradient(120deg,#eefaf6,#f6fafc)}
.v3-card-carousel{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:16px}
.v3-card-carousel>button{width:44px;height:44px;border-radius:50%;padding:0}
.v3-card-carousel>div{min-width:0}
.v3-card-stage figure{margin:0;min-width:0}
.v3-card-stage [hidden]{display:none}
.v3-card-stage .v3-namecard{display:block;width:min(100%,550px);height:240px;max-height:none;object-fit:contain;margin:0 auto 12px;background:transparent}
.v3-card-stage figcaption{color:#61768b}
.v3-card-stage>[data-image]{margin-top:16px}
.v3-card-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:12px}
.v3-card-actions button{padding:7px 12px}
.v3-customer-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:18px;align-items:start}
.v3-contact-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.v3-contact-heading>div{display:flex;flex-wrap:wrap;gap:8px}
.v3-contact-fields{display:grid;gap:10px;margin:4px 0;min-width:0}
.v3-contact-fields>div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px}
.v3-contact-fields dt{color:#637a87}
.v3-contact-fields dd{margin:0;overflow-wrap:anywhere}
.v3-labels{display:flex;gap:6px;flex-wrap:wrap}
.v3-labels span{padding:3px 10px;border-radius:8px;background:#e7f5ee;color:#007d6c}
.v3-contact-note{padding:14px;background:#f6f9fa;border-radius:10px;white-space:pre-wrap}
.v3-contact-note p{margin-top:8px}
.v3-customer-timeline{display:grid;gap:16px;min-width:0}
.v3-customer-events{background:#f0faf5;border-color:#cde6db}
.v3-customer-events h3{color:#00846c}
.v3-customer-actions{background:#f1f7ff;border-color:#d3e3f7}
.v3-customer-actions h3{color:#256cad}
.v3-customer-timeline ul{list-style:none;padding:0;margin:0;display:grid;gap:12px}
.v3-customer-timeline li{padding:14px;border-radius:12px;background:#ffffffd9;overflow-wrap:anywhere}
.v3-customer-timeline time{color:#607887}
.v3-customer-timeline li p{margin-top:8px;white-space:pre-wrap}
.v3-customer-timeline .v3-card-actions{justify-content:flex-end}
@container(max-width:1000px){.v3-list-toolbar .v3-search{flex-basis:100%}.v3-list-actions{width:100%}.v3-list-actions [data-reload]{margin-left:auto}}
@container(max-width:760px){.v3-customer-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:640px){.tuning-v3{padding:18px 16px}.v3-list-actions{gap:8px}.v3-list-actions button,.v3-list-actions select{padding:8px 12px}.v3-list-actions [data-reload]{margin-left:0}.v3-dialog{padding:18px;width:calc(var(--workspace-viewport-width,100vw) - 24px);max-height:calc(var(--workspace-viewport-height,100vh) - 24px)}.v3-dialog .v3-form{grid-template-columns:minmax(0,1fr)}.v3-customer-form.has-photo,.v3-customer-inputs{grid-template-columns:minmax(0,1fr)}.has-photo .v3-customer-inputs label{grid-template-columns:minmax(0,1fr)}.v3-confirm-photo .v3-namecard{max-height:220px}.v3-card-stage{padding:16px 10px}.v3-card-carousel{grid-template-columns:32px minmax(0,1fr) 32px;gap:6px}.v3-card-carousel>button{width:32px;min-height:36px;height:36px}.v3-card-stage .v3-namecard{height:180px}.v3-card-actions{gap:6px}.v3-card-actions button{padding:6px 8px}.v3-contact-fields>div{grid-template-columns:70px minmax(0,1fr)}.v3-card{padding:18px}}
@media(max-width:640px){.v3-dialog:has(input[name=files]) .v3-form{grid-template-columns:minmax(0,1fr)}}

.v3-teach-composer>label:has([name=title]),.v3-teach-composer>fieldset{grid-column:1/-1}
.v3-teach-composer>fieldset{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px;min-inline-size:0;margin:0;padding:16px;border:1px solid #b7cec5;border-radius:12px}
.v3-teach-composer>fieldset>p{grid-column:1/-1;margin:0}

.v3-back-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;min-width:0}
.v3-teach-composer>.v3-reference{grid-column:1/-1;display:grid;gap:8px;min-width:0}
.v3-teach-composer .v3-reference input[hidden]{display:none}
.v3-file-picker{display:flex;align-items:center;flex-wrap:wrap;gap:12px;width:100%;min-width:0;box-sizing:border-box;padding:10px;border:1px solid #b7cec5;border-radius:10px;background:#f5faf8}
.v3-file-picker button{flex:none;color:#007d6c}
.v3-file-picker [data-material-names]{flex:1 1 240px;min-width:0;white-space:pre-wrap;overflow-wrap:anywhere}

.v3-customer-primary-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.v3-customer-registration-actions{display:flex;align-items:center;gap:12px;margin-left:auto}
.tuning-v3 .v3-customer-registration-actions .v3-camera-button{background:#7544b3;border-color:#7544b3;color:#fff}
.tuning-v3 .v3-customer-registration-actions .v3-camera-button:hover{background:#613598;border-color:#613598}
.tuning-v3 .v3-customer-filters{align-items:end}
.v3-customer-filters .v3-search{display:grid;flex:1 1 260px;gap:6px}
.v3-customer-filters .v3-search input{padding-left:16px}
.v3-customer-search{display:flex;align-items:flex-end;flex:1 1 420px;min-width:0;gap:8px}
.v3-customer-search>.v3-list-actions{width:auto;flex-shrink:0}
.v3-customer-filters label:has([data-sort]){min-width:220px}
.v3-customer-filters select{padding:9px 14px;border:1px solid #bdcfd7;border-radius:12px;background:#fff;color:inherit;min-height:44px}
.v3-customer-list{min-width:0;max-width:100%}
.v3-customer-sheet{max-width:100%;overflow-x:auto;border:1px solid #cdded9;border-radius:14px;background:#fff}
.v3-customer-sheet table{border-collapse:separate;border-spacing:0;width:100%;min-width:900px;text-align:left}
.v3-customer-sheet th,.v3-customer-sheet td{padding:14px 16px;vertical-align:top;border-bottom:1px solid #dfe9e5;border-right:1px solid #e8eeeb;overflow-wrap:anywhere}
.v3-customer-sheet thead th{background:#edf6f1;color:#284c40;white-space:nowrap}
.v3-customer-sheet tbody th{width:50px;background:#f6faf8}
.v3-customer-sheet td{min-width:100px;max-width:300px}
.v3-customer-sheet td:nth-child(2){min-width:190px}
.v3-customer-sheet td:nth-child(5){min-width:210px}
.v3-customer-sheet .v3-customer-group th{background:#e7f4ef;width:auto;text-align:left;padding:10px 16px;border-right:0}
.v3-customer-sheet .v3-customer-index{min-width:50px;width:50px;background:#f6faf8}
.v3-kana-count{font-weight:400;color:#607887;white-space:nowrap}
.v3-customer-sheet tbody tr:last-child>*{border-bottom:0}
.v3-customer-sheet tbody tr:hover td{background:#f6fbf8}
.tuning-v3 .v3-company-link{display:block;border:0;border-radius:6px;padding:0;min-height:0;text-align:left;color:#007d6d;background:transparent;white-space:normal}
.v3-customer-sheet small{display:block;color:#607887;margin-top:8px}
.v3-kana{display:inline-block;padding:4px 8px;border-radius:8px;background:#e4f3ec;color:#28654d;white-space:nowrap}
.v3-capture-queue:empty{display:none}
.v3-capture-queue ol{display:flex;gap:12px;overflow-x:auto;list-style:none;margin:0;padding:4px}
.v3-capture-queue li{flex:0 0 160px;display:grid;gap:8px}
.v3-capture-queue img{height:90px}
.v3-batch-progress{grid-column:1/-1;padding:12px;border-radius:10px;background:#edf7f2}
@media(max-width:640px){.v3-customer-primary-actions{gap:8px}.v3-customer-registration-actions{gap:8px}.v3-customer-primary-actions button{padding:8px 10px;min-width:0}.v3-customer-filters label:has([data-sort]){min-width:0;flex:1 1 100%}.v3-customer-sheet th,.v3-customer-sheet td{padding:12px}}

.v3-duplicate-notice{grid-column:1/-1;padding:16px;border:1px solid #d9b66b;border-radius:12px;background:#fff8e9}
.v3-duplicate-notice[hidden]{display:none}
.v3-duplicate-notice ul{padding-left:24px}
.v3-dialog .v3-duplicate-confirm{display:flex;align-items:start;gap:10px}
.v3-duplicate-confirm input[type=checkbox]{width:auto;flex:none;margin-top:5px}
.v3-visibility-status{color:#607887;overflow-wrap:anywhere}

.v3-customer-primary-actions [data-tools-home]{margin-left:0}

.v3-customer-coverflow{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:12px}
.tuning-v3 .v3-customer-coverflow>[data-customer-step]{width:44px;height:44px;border-radius:50%;padding:0}
.v3-customer-deck{position:relative;height:240px;isolation:isolate;overflow:hidden}
.v3-customer-deck-card{position:absolute;top:0;left:50%;width:clamp(150px,56%,420px);height:100%;box-sizing:border-box;transform:translateX(calc(-50% + var(--card-offset)*60%)) scale(calc(1 - var(--card-depth)*.12));opacity:calc(1 - var(--card-depth)*.3);z-index:calc(3 - var(--card-depth));border-radius:14px}
.tuning-v3 .v3-customer-preview{padding:0;border:1px solid #dbe6e1;background:#fff;overflow:hidden}
.v3-customer-preview img,.v3-customer-current .v3-namecard{display:block;width:100%;height:100%;max-height:none;object-fit:contain;background:transparent;margin:0}
.v3-customer-current figure{height:100%;display:grid;align-items:center}
.v3-customer-card-placeholder{display:flex;flex-direction:column;justify-content:center;gap:14px;box-sizing:border-box;height:100%;padding:20px;background:#fff;border:1px solid #dbe6e1;border-radius:14px;overflow-wrap:anywhere}
.v3-customer-deck-summary{margin:12px 0 4px;color:#193c50}
.v3-customer-deck-help{margin:4px 0 12px;color:#61768b}
.v3-card-face-navigation{display:flex;align-items:center;justify-content:center;gap:12px;color:#61768b}
@container(max-width:700px){
 .v3-customer-browser{padding:12px}
 .v3-customer-coverflow{grid-template-columns:32px minmax(0,1fr) 32px;gap:4px}
 .tuning-v3 .v3-customer-coverflow>[data-customer-step]{width:32px;height:32px}
 .v3-customer-deck{height:180px}
 .v3-customer-deck-card{width:84%}
}

.v3-customer-card-controls{display:flex;align-items:center;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:8px}
.v3-card-stage .v3-customer-card-controls [data-card-tools]:not([hidden]){display:contents}
.v3-customer-card-controls .v3-card-face-navigation{width:100%;margin-bottom:4px}

.v3-admin-only{display:inline-block;padding:3px 9px;border-radius:12px;background:#edf1f7;color:#52647d;font-weight:700}
.v3-teach-overview{display:grid;grid-template-columns:repeat(2,minmax(115px,.75fr)) repeat(3,minmax(170px,1fr));gap:10px;margin:20px 0}
.v3-teach-stat{display:flex;flex-direction:column;justify-content:center;gap:8px;border:1px solid #bddce6;border-radius:10px;padding:16px;background:#f5fbfe;color:#41657e}
.v3-teach-stat strong{color:#183f55}
.v3-teach-overview .v3-tile{display:grid;grid-template-columns:40px minmax(0,1fr) 18px;align-items:center;gap:10px;padding:14px;border:1px solid #a7ddd2;background:#f5fcf9;text-align:left}
.v3-teach-overview .v3-tile img{width:40px;height:40px;object-fit:contain}
.v3-teach-overview .v3-tile strong{display:inline;color:#183f55}
.v3-teach-overview .v3-tile p{margin:7px 0 0;color:#567878}
.v3-teach-overview .v3-admin-only{margin-left:6px}
@media(max-width:1100px){.v3-teach-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.v3-teach-overview .v3-tile:last-child{grid-column:1 / -1}}
@media(max-width:520px){.v3-teach-overview .v3-tile{grid-column:1 / -1}}
.v3-teach-card-level{margin-bottom:20px;min-width:0}
.v3-teach-card-level>h3{display:flex;align-items:baseline;gap:12px;color:#36566c}
.v3-teach-card-level>h3>span{color:#7b8fa3;font-weight:400}
.v3-teach .kc-card-open{display:flex;flex:1;flex-direction:column;align-items:stretch;text-align:left;width:100%;min-width:0;border:0;border-radius:0;padding:0;background:transparent;color:#223b50}
.v3-teach .kc-card-open:hover{background:transparent}
.v3-teach .kc-card-band{box-sizing:border-box;align-items:center;gap:10px;min-height:48px}
.v3-card-level-label{margin-left:auto;color:#36566c;font-weight:700}
.v3-teach .kc-card-copy{padding:16px 18px;flex:1}
.v3-teach .v3-card-foot{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:10px 18px;color:#6b8298;background:var(--kc-pale)}
.v3-teach-card-reader .v3-card{border:0;padding:0;box-shadow:none}
.v3-teach-card-reader .v3-card>h3{display:none}
.v3-teach-card-heading{display:flex;align-items:center;gap:20px;flex-wrap:wrap;min-width:0}
.v3-teach-cards .kc-intro{margin-top:0;margin-bottom:16px}
.v3-teach-stage-counts{display:flex;gap:12px;flex-wrap:wrap}
.v3-teach-stage-counts .v3-card-level-label{margin-left:0;padding:8px 16px;border-radius:999px}
.v3-teach .kc-card-band .v3-card-level-label{padding:4px 10px;border-radius:999px}
.v3-card-level-label[data-level="1"]{background:#fff0cf;color:#80591f}.v3-card-level-label[data-level="2"]{background:#e7f0ff;color:#2563a1}.v3-card-level-label[data-level="3"]{background:#ddf7f0;color:#157971}
.v3-teach .kc-card-open{height:100%}.v3-teach .kc-card-copy{flex:1}.v3-teach .v3-card-foot{margin-top:auto;flex:none}
.v3-customer-card-controls .v3-card-actions{margin-top:0}

.v3-back-actions>[data-teach-create]{margin-left:auto}
.v3-teach-history{min-width:0}
.v3-teach-history>header{margin-bottom:14px;border-bottom:1px solid #dfebf0;padding-bottom:8px}
.v3-teach-history h2{margin:0;color:#173752}
.v3-teach-history .interview-log-cards{padding:4px 0;border:0;border-radius:0;background:transparent;color:#00958b}
.v3-teach-history .consultation-history-menu button{padding:7px 9px;border:0;border-radius:8px;background:transparent}
.v3-teach-history .consultation-history-menu button:hover{background:#f2f7f8}
.v3-teach-history .consultation-history-menu button.danger{color:#b42318}
.v3-teach-history .status-failed{background:#fff0ed;color:#ad4a4a}

/* Camera capture owns its viewport; saved-card correction keeps the existing editor. */
.v3-dialog.v3-capture-dialog{position:fixed;inset:0;margin:0;width:100%;height:var(--workspace-viewport-height,100dvh);max-width:none;max-height:none;padding:0;border:0;border-radius:0;background:#10221f;color:#fff;overflow:hidden}
.v3-capture-dialog>form{height:100%;min-height:0;display:flex;flex-direction:column}
.v3-capture-dialog header{position:relative;z-index:2;flex:none;display:flex;gap:12px;margin:0;padding:16px;align-items:center;background:linear-gradient(#10221fe6,#10221f80)}
.v3-capture-dialog h2{margin:0;flex:1;min-width:0;line-height:1.4}
.v3-capture-dialog [data-capture-finish]{flex:none;background:#fff;color:#173e33;white-space:nowrap}
.v3-capture-dialog .v3-form{flex:1;min-height:0;display:block;overflow:hidden}
.v3-capture-dialog .v3-capture{height:100%;min-height:0;gap:0;position:static;display:flex;flex-direction:column;justify-content:flex-end}
.v3-capture-dialog .v3-camera-stage{position:absolute;inset:0;margin:0;width:100%;height:100%;max-width:none;border-radius:0;background:#10221f}
/* Mirror only the live preview. Canvas capture still reads the original video pixels. */
.v3-capture-dialog .v3-camera-stage video{width:100%;height:100%;object-fit:contain;background:#10221f;transform:scaleX(-1)}
.v3-capture-bottom{position:relative;z-index:1;display:grid;gap:10px;padding:16px max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));background:linear-gradient(transparent,#10221fe6 30%)}
.v3-capture-bottom p{margin:0;color:#fff;line-height:1.5}
.v3-capture-dialog .v3-capture-queue li{position:relative;flex:0 0 100px;gap:4px}
.v3-capture-dialog .v3-capture-queue img{height:64px;border-radius:8px;background:#fff}
.v3-capture-dialog .v3-capture-queue span{position:absolute;top:4px;left:4px;padding:0 4px;background:#10221fcc;border-radius:4px}
.v3-capture-dialog .v3-capture-queue button{padding:4px 8px}
.v3-capture-dialog .v3-toolbar{align-items:center;gap:10px}
.v3-capture-dialog .v3-toolbar label{margin:0;color:#fff;display:flex;flex-direction:row;align-items:center;gap:8px}
.v3-capture-dialog [name=captureFile]{width:min(280px,100%)}
.v3-capture-dialog [name=side]{width:auto}
.v3-capture-dialog [data-error]{position:relative;z-index:1;flex:none;margin:0;padding:0 16px 12px;color:#ffd1d1;background:#10221f}
.v3-capture-dialog [data-error]:empty{display:none}
.v3-capture-dialog[data-capture-mode=file] .v3-capture{justify-content:start;overflow-y:auto;background:#fff;color:#173e33}
.v3-capture-dialog[data-capture-mode=file] [data-card-editor]{padding:16px}
.v3-capture-dialog[data-capture-mode=reading] .v3-toolbar{display:none}
@media(max-width:640px){
  .v3-capture-dialog header{padding:12px;gap:8px;flex-wrap:wrap}
  .v3-capture-dialog h2{flex-basis:100%}
  .v3-capture-dialog h2{padding-right:44px}
  .v3-capture-dialog header [data-close]{position:absolute;top:12px;right:12px}
  .v3-capture-dialog [data-capture-finish]{margin-left:auto}
  .v3-capture-bottom{padding:12px;gap:8px}
  .v3-capture-dialog .v3-toolbar{gap:8px}
  .v3-capture-dialog [data-file-choice]{flex-wrap:wrap}
}

.v3-capture-dialog [data-close]{color:#173e33}

/* Pending state is shared by capture and customer confirmation; the dialog keeps its draft. */
.v3-dialog-loading[hidden]{display:none}
.v3-dialog-loading{position:sticky;bottom:0;z-index:3;grid-column:1/-1;background:#fff;border-radius:16px}
.v3-dialog-loading .usage-loading{min-height:0;padding:16px;gap:10px}
.v3-dialog[data-loading-placement=center] .v3-dialog-loading{position:absolute;inset:0;display:grid;place-items:center;padding:24px;background:#10221fdb;border-radius:0;cursor:wait}
.v3-dialog[data-loading-placement=center] .v3-dialog-loading .usage-loading{width:min(440px,100%);box-sizing:border-box;padding:28px;box-shadow:0 16px 50px #0003}

.v3-dialog .v3-dialog-loading[hidden]{display:none}

/* Positioning guide and one-shot successful capture feedback. Originals are unchanged. */
.v3-capture-guide{position:absolute;left:50%;top:46%;width:min(86%,76vh);aspect-ratio:1;box-sizing:border-box;transform:translate(-50%,-50%);border:3px solid #fff;border-radius:12px;box-shadow:0 0 0 1px #10221f80;pointer-events:none}
.v3-capture-flash{position:absolute;inset:0;background:#fff;opacity:0;pointer-events:none}
