[hidden]{display:none!important}:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif;color:#0f172a;background:#fff;font-synthesis:none;--muted:#64748b;--border:#e2e8f0;--accent:#f1f5f9;line-height:1.6}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input{touch-action:manipulation}button,a{transition:background-color .15s,color .15s}a{color:inherit;text-underline-offset:3px}button{cursor:pointer;border:1px solid var(--border);border-radius:6px;padding:9px 16px;background:white;color:inherit;font-weight:600;font-size:14px}button:hover:not(:disabled){background:var(--accent)}button.primary{background:#0f172a;border-color:#0f172a;color:#fff}button.primary:hover:not(:disabled){background:#26364d}button.danger{color:#b42318}button:disabled{opacity:.5;cursor:default}:focus-visible{outline:3px solid #20aee5;outline-offset:3px}h1,h2,p{margin:0}h1{font-size:24px;letter-spacing:-.025em;font-weight:600;line-height:1.4}h2{font-size:17px;font-weight:600}small,.muted{color:var(--muted);font-size:14px}.loading{padding:24px;color:var(--muted)}.brand{width:202px;height:auto;display:block}.public-header{height:82px;border-bottom:1px solid var(--border);display:flex;align-items:center;padding:0 32px;gap:24px;justify-content:space-between}.public-header a{text-decoration:none;font-size:14px}form{display:grid;gap:18px;margin-top:28px}label{font-size:14px;font-weight:600;display:grid;gap:7px}input{min-width:0;width:100%;padding:10px 12px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#0f172a;font-size:16px}label small{font-weight:400}.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.row.between{justify-content:space-between}.auth-links{margin-top:24px;display:flex;justify-content:space-between;gap:14px;font-size:14px}.notice{border-left:3px solid #cbd5e1;padding:12px 16px;background:#f8fafc;font-size:14px;margin:20px 0;overflow-wrap:anywhere}.notice.error{border-color:#b42318;color:#912018;background:#fff5f5}.notice.success{border-color:#18845a;color:#186649;background:#f4fbf7}.notice:empty{display:none}.shell{display:grid;grid-template-columns:256px minmax(0,1fr);min-height:100vh}.sidebar{border-right:1px solid var(--border);padding:26px 16px;display:flex;flex-direction:column;gap:32px;background:#fff}.sidebar .brand{width:208px;margin:4px 8px}nav{display:grid;gap:4px}nav a{padding:9px 12px;border-radius:6px;text-decoration:none;color:#475569;font-size:14px;border-left:2px solid transparent}nav a:hover{background:#f8fafc}nav a[aria-current=page]{color:#0f172a;font-weight:600;background:var(--accent);border-left-color:#0f172a}.sidebar-footer{margin-top:auto;border-top:1px solid var(--border);padding-top:18px}.workspace{min-width:0}.topbar{min-height:74px;border-bottom:1px solid var(--border);padding:16px 24px;display:flex;justify-content:space-between;align-items:center;gap:12px}.topbar span{font-size:14px;color:var(--muted);overflow-wrap:anywhere}.topbar button{padding:6px 12px}main.content{padding:32px 24px 64px;max-width:1200px}.intro{margin-top:10px;color:var(--muted);font-size:14px}.section{margin-top:36px;padding-top:24px;border-top:1px solid var(--border)}.steps{padding:0;list-style:none;counter-reset:step;margin:32px 0}.steps li{counter-increment:step;display:grid;grid-template-columns:32px 1fr;gap:16px;margin-bottom:28px;align-items:start}.steps li:before{content:counter(step);height:28px;width:28px;display:grid;place-items:center;background:var(--accent);border-radius:50%;font-size:13px;font-weight:600}.steps p{font-size:14px;color:var(--muted);margin-top:6px}.table-wrap{margin-top:28px;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:14px;text-align:left}th{font-weight:500;color:var(--muted);background:#f8fafc;white-space:nowrap}th,td{padding:14px 12px;border-bottom:1px solid var(--border);vertical-align:top}td .origin{font-weight:500;overflow-wrap:anywhere;min-width:180px}td small{font-size:12px;display:block;margin-top:4px}.state{font-size:12px;display:inline-block;background:var(--accent);color:#475569;padding:2px 8px;border-radius:4px;white-space:nowrap}.state.active{color:#16613f;background:#edf8f1}.empty{padding:44px 0;border-bottom:1px solid var(--border);font-size:14px;color:var(--muted)}.more{margin-top:20px}dialog{border:1px solid var(--border);border-radius:10px;padding:28px;max-width:480px;width:calc(100% - 32px);color:inherit;box-shadow:0 20px 60px #0f172a26}dialog::backdrop{background:#0f172a66}dialog p{font-size:14px;margin-top:14px;overflow-wrap:anywhere}dialog .row{justify-content:flex-end;margin-top:28px}.connect{max-width:620px;margin:40px auto;padding:0 24px 48px}.connect .scope{display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px 16px;margin:24px 0;padding:20px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);font-size:14px}.scope dt{color:var(--muted)}.scope dd{margin:0;overflow-wrap:anywhere}.connect ul{padding-left:20px;font-size:14px}.connect .row{margin-top:24px}.narrow-form{max-width:440px}.help-list{display:grid;gap:24px;margin-top:24px}.help-list p{font-size:14px;color:var(--muted);margin-top:8px}.skip{position:absolute;left:8px;top:-100px;z-index:10;background:#fff;padding:10px}.skip:focus{top:8px}.spinner{animation:fade .25s ease-out}@keyframes fade{from{opacity:.3}to{opacity:1}}@media(max-width:800px){.shell{display:block}.sidebar{padding:16px;border-right:0;border-bottom:1px solid var(--border);gap:16px}.sidebar .brand{width:188px;margin:0}.sidebar nav{display:flex;overflow-x:auto;gap:4px}.sidebar nav a{white-space:nowrap;padding:8px}.sidebar-footer{display:none}.topbar{padding:12px 20px;min-height:58px}main.content{padding:24px 20px 48px}.public-header{height:72px;padding:0 20px}.public-header .brand{width:188px}.connect{margin-top:28px}.connect .scope{grid-template-columns:80px minmax(0,1fr)}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

.mfa-secret{display:block;overflow-wrap:anywhere;font-family:ui-monospace,monospace;padding:12px 0}.recovery-codes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 24px;padding-left:24px;margin:20px 0;font-size:18px}dialog canvas{display:block;max-width:100%;height:auto;margin:16px auto}

.contact-form{max-width:640px}.contact-form select,.contact-form textarea{display:block;width:100%;padding:10px 12px;margin-top:8px;border:1px solid var(--border);border-radius:6px;color:inherit;background:#fff;font:inherit}.contact-form textarea{resize:vertical;min-height:200px}.contact-form :disabled{opacity:.65}
.withdrawal-consent{display:flex;align-items:flex-start;gap:10px;font-weight:400}.withdrawal-consent input{width:auto;margin-top:5px;padding:0;flex:none}
.download-link,.primary-link{display:inline-block;margin-top:18px;padding:10px 16px;border-radius:6px;background:#0f172a;color:#fff;font-size:14px;font-weight:600;text-decoration:none}.download-link:hover,.primary-link:hover{background:#26364d}
.account-summary{margin:28px 0 0}.account-row{display:grid;grid-template-columns:140px minmax(0,1fr) auto;gap:20px;align-items:center;padding:22px 0;border-bottom:1px solid var(--border);font-size:14px}.account-row dt{color:var(--muted)}.account-row dd{margin:0;overflow-wrap:anywhere;min-width:0}.account-control .row{justify-content:flex-end}.account-mfa-actions,.account-ai-actions{display:grid;width:max-content;max-width:100%;margin-left:auto;justify-items:stretch;gap:8px}.account-ai{margin-top:32px}.account-ai h3{font-size:14px;margin:18px 0 6px}.account-ai ul{margin:0;padding-left:20px;font-size:14px}.account-ending{margin-top:40px;padding-top:24px;border-top:1px solid var(--border)}.account-ending p{margin:8px 0 16px}dialog{max-height:calc(100dvh - 32px);overflow-y:auto}dialog h2{padding-right:8px}dialog form{margin-top:24px}@media(max-width:680px){.account-row{grid-template-columns:1fr;gap:10px;padding:20px 0}.account-control .row{justify-content:flex-start}.account-control button{max-width:100%}dialog{padding:22px}dialog .row{margin-top:20px}}
.place{display:inline-block;margin-bottom:6px;padding:1px 8px;border-radius:999px;font-size:12px;font-weight:600;line-height:1.6}.place.console{background:#e0f2fe;color:#075985}.place.kintone{background:#fef3c7;color:#92400e}.place-legend{margin-top:12px}.home-status{margin-top:28px}.home-status h2{margin-top:4px}.home-status .download-link{margin-top:16px}.home-links{margin-top:16px;font-size:14px}.state-hint{display:block;margin-top:6px;max-width:260px}details summary{cursor:pointer;font-weight:600;font-size:15px}details[open] summary{margin-bottom:8px}
.app-link{font-size:13px;margin-left:8px}.file-details{margin-top:18px;font-size:14px}.file-details summary{font-size:14px;color:var(--muted);font-weight:500}.file-details p{margin-top:6px;overflow-wrap:anywhere}
/* 公開・認証画面: 製品サイトと同じ淡い水色の背景に白いカードを置く */
:root{--brand:#006784;--brand-hover:#004f66;--brand-soft:#edf5f8}
body:has(main.auth){background:var(--brand-soft)}#app:has(>main.auth){min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
#app:has(>main.auth) .public-header{background:#fff}
main.auth{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px}
.auth-card{width:100%;max-width:440px;padding:36px 36px 32px;background:#fff;border:1px solid #d7e6ec;border-radius:12px;box-shadow:0 12px 32px #00405514}
.auth-card>p{margin-top:10px;color:var(--muted);font-size:14px}.auth-card form{margin-top:24px}
.auth-card button.primary,.auth-card .primary-link{width:100%;padding:12px 16px;font-size:15px;background:var(--brand);border-color:var(--brand)}
.auth-card button.primary:hover:not(:disabled),.auth-card .primary-link:hover{background:var(--brand-hover)}
.auth-card .notice{margin:0}.auth-card form .notice:empty{display:none}
.auth-card a,.auth-alternate a{color:var(--brand)}.auth-card a:hover,.auth-alternate a:hover{color:var(--brand-hover)}
.resend{display:grid;gap:8px;justify-items:start;margin-top:-6px}
button.text-button{padding:0;border:0;background:none;color:var(--brand);font-weight:600;text-decoration:underline;text-underline-offset:3px}button.text-button:hover:not(:disabled){background:none;color:var(--brand-hover)}
.auth-alternate{margin-top:20px;font-size:15px;text-align:center}.auth-alternate a{font-weight:700}.auth-alternate.secondary{margin-top:10px;font-size:14px}.auth-alternate.secondary a{font-weight:400}
.public-header a{white-space:nowrap}.public-header>a:first-child{margin-right:auto}
.public-footer{border-top:1px solid #d7e6ec;background:#fff;padding:20px 32px;font-size:13px}.public-footer nav{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 24px}.public-footer a{color:#475569;text-decoration:none;padding:4px 0}.public-footer a:hover{color:var(--brand);text-decoration:underline}
@media(max-width:480px){.public-header{gap:14px;padding:0 16px}.public-header .brand{width:150px}.public-header>a:not(:first-child){font-size:13px}main.auth{justify-content:flex-start;padding:24px 16px 40px}.auth-card{padding:28px 20px 24px}.public-footer{padding:16px}}
/* ホーム: 0件は導入案内、1件以上はサブドメインごとの利用中アプリ */
.onboarding-steps{list-style:none;counter-reset:step;padding:0;margin:24px 0 8px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.onboarding-steps li{counter-increment:step;display:grid;gap:4px;padding:16px;border:1px solid var(--border);border-radius:8px;font-size:14px}.onboarding-steps li:before{content:counter(step);display:grid;place-items:center;width:26px;height:26px;margin-bottom:6px;border-radius:50%;background:var(--accent);font-size:13px;font-weight:600}.onboarding-steps span{color:var(--muted)}
.app-group{margin-top:24px}.app-group h3{margin:0 0 4px;font-size:15px;font-weight:600;overflow-wrap:anywhere}.app-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--border)}.app-list li{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid var(--border);font-size:14px}.app-list .app-id{min-width:96px;font-weight:500}.app-list .app-link{margin-left:auto}.home-links{gap:8px 24px}
@media(max-width:680px){.onboarding-steps{grid-template-columns:1fr}}
.template-editor{margin-top:32px;padding-top:24px;border-top:1px solid var(--border)}.template-editor:empty{display:none}.template-form{max-width:680px}.template-form label{display:block;margin:20px 0;font-weight:600}.template-form input,.template-form select{display:block;width:100%;margin-top:8px;padding:10px 12px;border:1px solid var(--border);border-radius:6px;background:#fff;color:inherit;font:inherit;font-weight:400}.template-form input[type=file]{padding:10px}.template-form label[hidden]{display:none}.template-form .row{margin-top:24px}.template-publication{margin:20px 0;padding:16px;border-left:3px solid #d49b14;background:#fffbeb}.template-publication p{margin:0 0 10px}.template-editor :disabled{opacity:.65}
.template-toolbar select{min-width:240px;max-width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:6px;background:#fff;font:inherit}@media(max-width:680px){.template-toolbar select{width:100%}}

/* 文書出力設定: 元文書と出力先を読める一覧、まとまりのある入力欄 */
.template-file-info{display:block;margin-top:6px;color:var(--muted);font-size:12px;font-weight:400}.template-form{max-width:800px}.template-form-group{border:1px solid var(--border);border-radius:8px;margin:18px 0;padding:16px 20px;min-width:0;display:grid;gap:14px}.template-form-group legend{font-weight:600;padding:0 6px}.template-form .template-form-group label{margin:0;display:grid;gap:6px}.template-form .template-form-group input,.template-form .template-form-group select{margin-top:0}.template-form-group .muted{margin:0;font-size:13px}.template-form .row{margin-top:18px}.template-editor{margin-top:22px;padding-top:20px}.template-editor h2{margin-bottom:16px}
.template-app{margin-top:18px;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#fff}
.template-app-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px}
.template-app-title{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin:0;font-size:1.05rem;overflow-wrap:anywhere}
.template-app-notice{margin:0;padding:8px 16px;background:#fff7e6;color:#8a4b06}
.template-app .table-wrap{margin-top:0;border-top:1px solid var(--border)}
.template-list-actions{justify-content:flex-end;margin-top:24px}
iframe[title="EXTONE Office 文書生成"][aria-hidden="true"]{position:fixed;left:-10000px;top:0;width:1px;height:1px;border:0;pointer-events:none}
.template-toolbar{align-items:flex-end}.template-toolbar label{flex:1 1 180px;min-width:0;max-width:270px}.template-toolbar select,.template-toolbar input{min-width:0;width:100%;height:44px;font-size:16px}.template-toolbar button{min-height:44px}
.template-table{container:template-list / inline-size}
.template-table table{table-layout:fixed}
@container template-list (width < 740px){
  .template-table table,.template-table tbody{display:block}
  .template-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .template-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr);padding:10px 12px;border-bottom:1px solid var(--border)}
  .template-table tbody td{display:block;padding:6px 0;border:0}
  .template-table td.template-action-cell{padding-top:10px}
}
.template-table th:first-child{width:25%}
.template-table th:last-child{width:218px}
.template-table td{overflow-wrap:anywhere;vertical-align:top}
.template-app-info{margin-top:4px}
.template-app-info .template-file-info{margin-top:1px}
.template-settings-flow{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;min-height:24px}
.template-settings-step{display:inline-flex;align-items:center;gap:5px;max-width:100%}
.template-settings-step svg{max-width:18px;max-height:22px}
.template-list-icon{display:inline-flex;flex:none}
.template-list-thumbnail{display:grid;align-items:center;width:88px;height:64px;padding:0;overflow:hidden;margin-bottom:6px;background:#fff}
.template-list-thumbnail img{display:block;width:100%;height:100%;object-fit:contain}
.template-list-preview{width:min(960px,calc(100% - 32px));max-width:none}
.template-list-preview>.row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;margin:0 0 12px}
.template-list-preview h2{margin:0;padding:0;font-size:clamp(1rem,4vw,1.15rem);text-wrap:balance}
.template-list-preview img{display:block;width:100%;max-height:70dvh;object-fit:contain}
.template-preview-sheet{display:block;min-width:0}
.template-preview-sheet.is-cropped{overflow:hidden}
/* Crop against the captured image width so both views show the same worksheet area. */
.template-preview-sheet.is-cropped img{height:auto;max-height:none;margin-block:-12.9% -5%}
.template-preview-render{position:fixed;inset:0 auto auto 0;width:1050px;opacity:0;pointer-events:none}
.template-preview-render iframe{display:block;width:100%;height:650px;border:0}
.template-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.template-actions button{margin:0;padding:6px;white-space:nowrap}
.template-table .template-row-disabled{background:#f1f5f9;color:#374151}
.template-row-disabled a,.template-row-disabled .template-file-info,.template-row-disabled button{color:inherit}
.template-row-disabled svg{filter:grayscale(1)}
.template-file-area,.template-file-picker{display:grid;gap:6px}
.template-registered-file{display:flex;align-items:center;gap:8px;min-width:0;font-size:14px}
.template-registered-file a{overflow-wrap:anywhere}
.template-source-versions{display:grid;gap:8px;margin-top:8px;justify-items:start}
.template-source-versions .notice{margin:0;justify-self:stretch}
.template-source-version-list{list-style:none;margin:0;padding:0;display:grid;gap:6px;justify-self:stretch}
.template-source-version-list li{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:8px 0;border-bottom:1px solid var(--border);font-size:14px}
.template-source-version-list a{overflow-wrap:anywhere}
.template-source-version-list .template-file-info{margin-top:0;flex:1;min-width:12rem}
.template-source-version-list button{padding:6px 12px}
.template-source-version-warnings{margin:0;padding-left:20px;font-size:14px;color:#912018}
.template-source-version-warnings:empty{display:none}
.template-clear-file{flex:none;min-width:32px;min-height:32px;padding:2px 7px;font-size:18px;line-height:1}
.template-field{display:grid;gap:6px;min-width:0}
.template-field-caption{position:relative;display:flex;align-items:center;gap:6px;min-width:0}
.template-field-help{display:inline-flex}
.template-help-icon{display:grid;place-items:center;width:24px;height:24px;padding:0;border-radius:50%;color:#475569;font-size:13px}
.template-help-tip{display:none;position:absolute;z-index:2;inset-block-start:100%;inset-inline-start:0;width:max-content;max-width:100%;padding:8px 10px;border-radius:6px;background:#1e293b;color:#fff;font-size:13px;line-height:1.5}
.template-field-help:not([data-dismissed=true]):is(:hover,:focus-within) .template-help-tip{display:block}
.template-form .template-switch{display:flex;align-items:center;gap:10px;position:relative}
.template-switch .template-field-caption{position:static}
.template-switch label{cursor:pointer}
.template-form .template-switch input{
  appearance:none;width:42px;height:24px;padding:2px;margin:0;display:flex;align-items:center;
  border:1px solid #64748b;border-radius:12px;background:#64748b;cursor:pointer
}
.template-switch input::before{content:"";width:18px;height:18px;border-radius:50%;background:white}
.template-form .template-switch input:checked{justify-content:flex-end;background:#1d4ed8;border-color:#1d4ed8}
.template-switch input:disabled{cursor:default}
.template-filename-row{display:flex;align-items:stretch}
.template-filename-row input{flex:1;min-width:0;border-radius:6px 0 0 6px}
.template-filename-extension{display:flex;align-items:center;padding:0 8px;border-block:1px solid var(--border);font-size:12px;white-space:nowrap;background:#f8fafc}
.template-tag-button{display:flex;align-items:center;gap:4px;flex:none;padding:0 9px;border-radius:0 6px 6px 0;font-size:12px;white-space:nowrap}
.template-page-range{display:grid;gap:6px}
.template-field-error{font-size:13px;font-weight:400;color:#912018}
.template-form input[aria-invalid=true]{border-color:#b42318}
.template-tag-panel{padding:10px 12px;border:1px solid var(--border);border-radius:6px}
.template-form .template-tag-panel .row{margin:5px 0 10px;gap:5px}
.template-tag-panel button{padding:4px 8px}

.template-rules-link{margin-inline-start:6px}
dialog.template-merge-rules{max-width:560px}
.template-rules-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-top:16px}
.template-rules-tabs [aria-selected=true]{background:var(--brand);color:white;border-color:var(--brand)}
.template-merge-rules code{background:var(--accent);padding:2px 4px;overflow-wrap:anywhere}

/* ログイン後・認可画面も、公開画面・製品サイトと同じブランド色に揃える */
button.primary,.download-link,.primary-link{background:var(--brand);border-color:var(--brand);color:#fff}
button.primary:hover:not(:disabled),.download-link:hover,.primary-link:hover{background:var(--brand-hover)}
nav a[aria-current=page]{color:var(--brand);background:var(--brand-soft);border-left-color:var(--brand)}
main.content a:not(.download-link):not(.primary-link),.connect a:not(.primary-link):not(.secondary-link){color:var(--brand)}
main.content a:not(.download-link):not(.primary-link):hover,.connect a:not(.primary-link):not(.secondary-link):hover{color:var(--brand-hover)}
.steps li:before,.onboarding-steps li:before{background:var(--brand-soft);color:var(--brand)}
/* 認可popup: kintoneから来た新規利用者のアカウント作成導線 */
.connect-signup{margin-top:28px;padding:20px;border:1px solid #d7e6ec;border-radius:8px;background:var(--brand-soft)}.connect-signup p{margin-top:6px}
.secondary-link{display:inline-block;margin-top:14px;padding:9px 16px;border:1px solid var(--brand);border-radius:6px;background:#fff;color:var(--brand);font-size:14px;font-weight:600;text-decoration:none}.secondary-link:hover{background:#fff;color:var(--brand-hover);border-color:var(--brand-hover)}
.connect .back{margin-top:24px}
/* 文書出力設定: 絞り込み・初回案内・状態表示をコンソール共通の部品とブランド色に揃える */
.template-filters{margin-top:20px}.template-filters>summary{display:none}.template-filters .template-toolbar{margin:0}
@media(max-width:680px){.template-filters{border:1px solid var(--border);border-radius:8px;padding:10px 14px}.template-filters>summary{display:list-item;font-weight:600;font-size:14px}.template-filters[open]>summary{margin-bottom:10px}}
.template-form .template-switch input:checked{background:var(--brand);border-color:var(--brand)}
.template-onboarding{margin-top:28px}.template-onboarding .onboarding-steps a{margin-top:6px;font-size:14px}
.template-app-info .state{margin-top:6px}.template-app-info .state-hint{margin-top:4px}
.template-merge-rules .muted{margin-top:14px;font-size:13px}

.template-ai-prompt{display:grid;gap:1rem;margin-top:1.5rem;padding-top:1.25rem;border-top:1px solid #d8dde5}
.template-ai-prompt label{display:grid;gap:.5rem}
.template-ai-prompt textarea{box-sizing:border-box;width:100%;min-height:7rem;padding:.75rem;font:inherit;resize:vertical}
.template-ai-label{display:grid;gap:.5rem}
.template-ai-editor{box-sizing:border-box;width:100%;min-height:6.5rem;max-height:18rem;overflow:auto;padding:.75rem;border:1px solid #bfc8d4;border-radius:.5rem;background:#fff;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;outline:none}
.template-ai-editor:focus{border-color:#176393;box-shadow:0 0 0 3px #17639326}
.template-ai-editor.is-readonly{background:#f2f4f7}
.template-ai-chip{display:inline-flex;align-items:center;gap:.25rem;margin:0 .1rem;padding:0 .55rem;border:1px solid #9cc3e0;border-radius:999px;background:#e8f2fa;color:#124d73;font-size:.9em;line-height:1.6;white-space:nowrap;user-select:all;cursor:default}
.template-ai-chip::before{content:"＃";font-size:.8em;opacity:.7}
.template-ai-fields{display:grid;gap:.5rem;position:relative}
.template-ai-tools{display:flex;gap:.5rem}
.template-ai-insert{border:1px dashed #9cc3e0;background:#fff;color:#124d73;border-radius:999px;padding:.3rem .8rem}
.template-ai-picker{display:grid;gap:.5rem;max-width:30rem;padding:.75rem;border:1px solid #d8dde5;border-radius:.5rem;background:#fff;box-shadow:0 8px 24px #0f172a1f}
.template-ai-picker[hidden],.template-ai-picker-group[hidden],.template-ai-picker-item[hidden]{display:none}
.template-ai-picker input{box-sizing:border-box;width:100%;padding:.45rem .6rem;font:inherit}
.template-ai-picker-list{display:grid;gap:.5rem;max-height:16rem;overflow:auto}
.template-ai-picker-group{display:flex;flex-wrap:wrap;gap:.35rem}
.template-ai-picker-group p{flex-basis:100%;margin:.25rem 0 0;font-size:.85em;color:#475467}
.template-ai-picker-item{border:1px solid #d8dde5;border-radius:999px;background:#f8fafc;padding:.2rem .7rem;font-size:.9em}
.template-ai-picker p:last-child{margin:0;color:#475467}
.template-ai-prompt label.template-ai-skip{display:flex;align-items:center;gap:.5rem}
.template-ai-authored,.template-ai-ask{display:grid;gap:.5rem;justify-items:start;padding:.75rem 1rem;border:1px solid #d8dde5;border-radius:.5rem}
.template-ai-authored p,.template-ai-ask p,.template-ai-authored ul,.template-ai-ask ul{margin:0}
.template-ai-authored li,.template-ai-ask li{overflow-wrap:anywhere}
.template-ai-ask{border-color:#f79009;background:#fffaeb}
.template-ai-review{display:grid;gap:.75rem;padding:1rem;border:1px solid #d8dde5;border-radius:.5rem}
.template-ai-review h3,.template-ai-review h4,.template-ai-review p{margin:0}
.template-ai-review-warning{padding:.5rem .75rem;border-left:4px solid #b42318;background:#fef3f2}
.template-ai-review-table{width:100%;border-collapse:collapse;table-layout:fixed}
.template-ai-review-table th,.template-ai-review-table td{padding:.4rem .5rem;border:1px solid #d8dde5;text-align:left;vertical-align:top;overflow-wrap:anywhere}
.template-ai-review-table th:nth-child(1){width:24%}.template-ai-review-table th:nth-child(2){width:7.5rem}.template-ai-review-table th:nth-child(3){width:8rem}
.template-ai-review-table select{max-width:100%;font:inherit}
.template-ai-review-table small{display:block;margin-top:.25rem;color:#475467}
.template-ai-review-table td.template-ai-review-child{padding-left:1.5rem}
.template-ai-review-table tr[data-state="review"]{background:#fff4d6}
.template-ai-review-table tr[data-state="blocked"]{background:#fde8e6}
.template-ai-review-table tr[data-state="none"],.template-ai-review-table tr[data-state="position-required"],
.template-ai-review-table tr[data-state="outer"],.template-ai-review-table tr[data-state="unknown"]{background:#f2f4f7}
.template-ai-review-table tr[data-class="forbidden"]{background:#fff;color:#667085}
.template-ai-review-legend{color:#475467}
.template-ai-review-show{margin:.25rem .25rem 0 0;padding:.15rem .5rem;font-size:.85em}
.template-ai-review-table td>span+.template-ai-review-show{display:block}
/* テンプレートの用意（2026-11-17）: 状態の印、3つのカード、作業画面の欄、出力を試す、テンプレートのカード */
.template-badge{display:inline-block;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap;border:1px solid transparent;background:var(--accent);color:#475569}
.template-badge-ok{background:#edf8f1;color:#16613f}.template-badge-warn{background:#fff6e5;color:#8a4b00;border-color:#f3c77a}.template-badge-none{background:#f1f5f9;color:#475569}.template-badge-record{background:#edf5f8;color:#004f66}
button.template-badge{padding:3px 10px;cursor:pointer}button.template-badge-warn:hover:not(:disabled){background:#ffedc8}
.template-state-cell .template-badge{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.template-crumbs{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:13px;color:var(--muted);margin-bottom:10px}.template-crumbs .text-button{padding:0;border:0;background:none;color:var(--brand);font-weight:500;text-decoration:underline;text-underline-offset:3px}
.template-prepare-flow{display:flex;flex-wrap:wrap;gap:6px 18px;list-style:none;margin:6px 0 16px;padding:0;font-size:13px;color:var(--muted);counter-reset:prepare}.template-prepare-flow li{counter-increment:prepare}.template-prepare-flow li::before{content:counter(prepare) ". "}.template-prepare-flow li[aria-current]{color:inherit;font-weight:700}.template-prepare-fixed{margin:10px 0;font-size:14px}.template-prepare-fixed .text-button{margin-left:8px}
.template-prepare-app{max-width:420px;margin:12px 0}.template-prepare-app select{display:block;width:100%;margin-top:6px;padding:10px 12px;border:1px solid var(--border);border-radius:6px;background:#fff;font:inherit;font-weight:400}
.template-entry-cards,.template-entry-samples{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}
.template-entry-card{display:grid;align-content:start;gap:6px;text-align:left;padding:18px;border:1px solid var(--border);border-radius:10px;background:#fff;font-weight:400;min-height:150px}
.template-entry-card strong{font-size:16px}.template-entry-card:hover:not(:disabled){border-color:var(--brand);background:var(--brand-soft)}
.template-entry-kind{font-size:12px;color:var(--muted)}.template-entry-go{margin-top:auto;color:var(--brand);font-weight:600;font-size:13px}
.template-entry-advanced{font-size:13px;color:var(--muted)}.template-entry-advanced .text-button{padding:0;border:0;background:none;color:var(--brand);text-decoration:underline;font-size:13px}
.template-prepare-step input[type=file]{display:block;margin-top:8px;padding:10px;border:1px dashed #94a3b8;border-radius:8px;width:100%}
.template-entry-result{margin:18px 0;padding:16px 18px;border:1px solid var(--border);border-radius:10px;display:grid;gap:10px;max-width:760px}
.template-entry-file{display:flex;gap:10px;align-items:center;overflow-wrap:anywhere}.template-entry-ext{font-size:11px;font-weight:700;padding:3px 6px;border-radius:4px;background:var(--brand-soft);color:var(--brand)}
.template-entry-title{font-weight:600}.template-entry-facts{margin:0;padding:10px 14px 10px 30px;background:#fff6e5;border-radius:8px;font-size:14px}
.template-entry-more summary{cursor:pointer;font-size:14px;color:var(--brand)}.template-entry-more textarea,.template-card-ask input{width:100%;margin-top:8px;padding:10px;border:1px solid var(--border);border-radius:6px;font:inherit}
.template-card{border:1px solid var(--border);border-radius:10px;padding:14px 16px;display:grid;gap:8px;background:#f8fafc}
.template-card-warning{font-size:14px;color:#8a4b00}.template-card-ask{display:flex;gap:8px;align-items:center}.template-card-ask input{margin-top:0;flex:1;min-width:0}
.template-work{margin:8px 0 18px;display:grid;gap:12px}
.template-work-bar{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;position:sticky;top:0;z-index:2;background:#fff;padding:8px 0;border-bottom:1px solid var(--border)}
.template-work-save-state{align-self:center;font-size:12px;color:#8a5a00;white-space:nowrap}.template-work-save-state[data-saved=true]{color:var(--muted,#667)}.template-work-save-state:empty{display:none}.template-work-step-title{margin:0 0 8px;font-size:15px}.template-work-bar button[data-issues]:not([data-issues="0"]){border-color:#be123c;color:#be123c;font-weight:600}
.template-work-bar h2{margin:0}.template-work-bar .text-button{border:0;background:none;color:var(--brand);padding:6px 4px}
.template-work-next{margin:0 0 10px;padding:10px 12px;border-radius:8px;background:#edf5f8;border:1px solid #b9d7e2;display:grid;gap:2px;font-size:14px}.template-work-next strong{font-size:12px;color:#006784}
.template-work-note{font-size:13px}.template-work .notice{margin:0}
.template-work-panel{padding:6px 0}.template-work-panel .template-form{margin-top:0}
.template-work-issue{border:1px solid #f3c77a;background:#fff6e5;border-radius:8px;padding:12px 14px;margin-bottom:10px;display:grid;gap:6px}.template-work-issue p{margin:0}
.template-work-ok{font-weight:600}
.template-try{border:1px solid var(--border);border-radius:10px;padding:16px;margin:10px 0;display:grid;gap:10px;background:#fff;max-width:620px}.template-try h3{margin:0;font-size:15px}
.template-try-choice{display:flex!important;gap:10px;align-items:flex-start;font-weight:400}.template-try-choice input[type=radio]{width:auto;margin-top:5px}
.template-try-choice>span{display:grid;gap:2px}.template-try-record{margin-top:6px;max-width:260px}
.template-ai-edits{display:grid;gap:.5rem;padding:.75rem 1rem;border:1px solid #d8dde5;border-radius:.5rem}.template-ai-edits h4,.template-ai-edits p{margin:0}
.template-ai-edit-list{list-style:none;margin:0;padding:0;display:grid;gap:.4rem}.template-ai-edit-list li{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;overflow-wrap:anywhere}
.template-ai-edit-list label{display:flex;gap:.5rem;align-items:flex-start;font-weight:400}.template-ai-edit-list input{width:auto;margin-top:.3rem}
.template-ai-edit-list li[data-state=unsure]{color:#8a4b00}
@media(max-width:800px){.template-entry-cards,.template-entry-samples{grid-template-columns:minmax(0,1fr)}.template-entry-card{min-height:0}}
@media(max-width:680px){.template-work-bar{position:static}.template-work-bar .row{width:100%}.template-work-bar .row button{flex:1 1 auto}.template-card-ask{flex-wrap:wrap}.template-card-ask button{width:100%}.template-state-cell{white-space:normal}}

.template-entry-cards-two{grid-template-columns:repeat(2,minmax(0,1fr));max-width:720px}
.template-entry-blank{border-style:dashed}
.template-ai-review-fold{border-top:1px solid #d8dde5;padding-top:.5rem}
.template-ai-review-fold summary{cursor:pointer;color:#475467}
.template-ai-review-fold table{margin-top:.5rem}

/* 自由に作る（白紙から）の手順。コンソールのCSP（style-src 'self'）では、画面が差し込む<style>は効かないため、ここに置く。 */

.template-blank{display:grid;gap:12px;max-width:820px}
.template-blank h4{margin:8px 0 0}
.template-blank-formats{display:inline-flex;border:1px solid var(--border);border-radius:8px;overflow:hidden;width:max-content}
.template-blank-formats button{border:0;border-radius:0;background:#fff;padding:6px 16px}
.template-blank-formats button[aria-pressed=true]{background:var(--brand-soft,#edf5f8);color:var(--brand,#006784);font-weight:700}
.template-blank-fields{display:grid;gap:10px}
.template-blank-group{border:1px solid var(--border);border-radius:10px;padding:10px 14px}
.template-blank-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:4px 14px}
.template-blank-list label,.template-blank-all{display:flex;align-items:center;gap:8px;font-weight:400}
.template-blank-all{margin-bottom:6px;font-weight:700}
.template-blank input[type=checkbox]{width:auto}

.template-app-notice.state-hint{display:block;max-width:none}
.template-ai-prompt label.template-ai-skip input{width:auto;flex:none}

/* 作業画面の案内: 上から順の3つの手順。開いているのは1つ（docs/work-screen-single-guide-20261118.md）。 */
.template-work-step{border:1px solid var(--border);border-radius:10px;background:#fff;overflow:hidden}
.template-work-step[data-open=true]{border:2px solid var(--brand)}
.template-work-step-head{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:10px 14px;border:0;border-radius:0;background:none;text-align:left}
.template-work-step-name{display:grid;min-width:0}.template-work-step-name strong{font-size:15px}.template-work-step-name .muted{font-size:13px;font-weight:400}
.template-work-step-mark{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;border:2px solid #94a3b8;background:#fff;color:#475569;font-size:13px;font-weight:700}
.template-work-step[data-state=now] .template-work-step-mark{background:var(--brand);border-color:var(--brand);color:#fff}
.template-work-step[data-state=done] .template-work-step-mark{background:#166534;border-color:#166534;color:#fff}
.template-work-step-body{display:grid;gap:12px;padding:2px 14px 14px;min-width:0}
.template-work-step-body>p{margin:0;font-size:14px}.template-work-step-body>button.primary{min-height:44px}
.template-work-step-body .template-work-next{margin:0}
.template-work-forward{justify-self:start}
.template-work-ai{border:1px solid var(--border);border-radius:8px;padding:4px 10px}.template-work-ai>summary{padding:6px 0;font-weight:600;font-size:14px;cursor:pointer}
.template-work-panel:empty{display:none}
/* 確認の段の出来上がり: 閲覧画面を枠の1.25倍で描いて縮め、用紙の幅が枠に収まるようにする（1.7倍では文字が小さすぎた。2026-11-18の検証）（SDKに表示倍率の指定がないため）。 */
.pc-picture{position:relative}.pc-picture>iframe{position:absolute;inset:0 auto auto 0;width:125%!important;height:125%!important;min-height:0!important;transform:scale(.8);transform-origin:0 0}
.template-placeholder-names{display:flex;flex-wrap:wrap;gap:6px}.template-placeholder-names button{padding:2px 10px;font-size:13px;font-weight:500;border-radius:999px;background:#fff}
.template-match{display:grid;gap:8px;border:1px solid var(--border);border-radius:8px;padding:10px 12px}
.template-match-rows{display:grid;gap:6px}.template-match-rows>p{margin:0;font-size:13px}
.template-match-row{display:grid;grid-template-columns:minmax(0,6.5em) auto minmax(0,1fr);align-items:center;gap:6px}
.template-match-row>small{grid-column:3;font-size:12px}
.template-match-name{padding:4px 6px;border:0;background:none;text-align:left;font-weight:600;overflow-wrap:anywhere}
.template-match-row select{min-width:0;width:100%;min-height:36px;padding:4px 8px;border:1px solid #94a3b8;border-radius:6px;background:#fff;color:inherit;font:inherit}
.template-match-note{margin:0;padding:8px 10px;border-radius:6px;font-size:13px;background:#f0f9f4;color:#14532d}.template-match-note[data-kind=error]{background:#fff5f5;color:#912018}
.template-work-doc-wrap{position:relative;min-width:0}
.template-work-result{position:absolute;inset:0;display:flex;flex-direction:column;border:1px solid var(--border);border-radius:10px;overflow:hidden;background:#f8fafc}
.template-work-result-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;padding:8px 12px;background:#0f172a;color:#fff;font-size:14px}
.template-work-result-bar button{padding:6px 12px;color:#0f172a;background:#fff}
.template-work-result-view{flex:1;min-height:0;position:relative}.template-work-result-view iframe{display:block;width:100%;height:100%;border:0}
/* 作業の間はコンソールのメニューをしまい、文書に幅を使う。「メニューを表示」で戻す。 */
.template-work-body{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:14px;align-items:start}
.template-work-doc{border:1px solid var(--border);border-radius:10px;overflow:hidden;background:#f8fafc;min-height:560px}
.template-work-doc iframe{display:block;width:100%;height:calc(100vh - 150px);min-height:560px;border:0}
.template-work-side{display:grid;gap:10px;min-width:0;max-height:calc(100vh - 150px);overflow:auto;padding-right:4px;align-content:start}
main.content:has(.template-work[data-embedded]){max-width:none}

.template-work-bar > .notice{flex:0 0 100%;margin:0}
.template-work-bar > .notice:empty,.template-work-shortcuts{display:none}
.template-work-panel,.template-work-doc,.template-try h3{scroll-margin-top:10rem}
@media(max-width:1100px){.template-work-bar .template-work-shortcuts{display:flex;margin-top:8px}}
@media(max-width:680px){.template-work-panel,.template-work-doc,.template-try h3{scroll-margin-top:1rem}}

/* 見本から選ぶ: 帳票の型の一覧と確認の段（template-catalog.mjs） */
.pc{display:grid;gap:16px;max-width:1120px}.pc h4{margin:0;font-size:16px}
.pc-search{display:flex;gap:8px;max-width:760px}.pc-line{flex:1;min-width:0;padding:9px 12px;border:1px solid #cbd5e1;border-radius:6px;font-size:15px}
.pc-filters{display:grid;gap:8px}.pc-filter{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}.pc-filter-name{min-width:5em;color:var(--muted);font-size:13px}
.pc-chips{display:flex;gap:6px;flex-wrap:wrap}.pc-chip{border-radius:999px;padding:4px 12px;font-size:13px;font-weight:400}
.pc-chip[aria-pressed=true]{background:var(--brand-soft);border-color:var(--brand);color:var(--brand);font-weight:600}
.pc-palette{display:inline-flex;align-items:center;gap:6px}.pc-swatch{width:14px;height:14px;border-radius:50%;flex:none;box-shadow:0 0 0 1px rgba(0,0,0,.25)}.pc-chip small{color:var(--muted);margin-left:4px;font-size:12px}
.pc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(232px,1fr));gap:16px}
.pc-card{display:grid;grid-template-rows:auto 1fr;padding:0;text-align:left;font-weight:400;border-radius:10px;overflow:hidden;min-width:0}
.pc-card:hover:not(:disabled){border-color:var(--brand);background:#fff}
.pc-shot{display:block;position:relative;background:#f8fafc;padding:12px 12px 0;border-bottom:1px solid var(--border)}
.pc-shot img{display:block;width:100%;height:auto;aspect-ratio:560/570;object-fit:cover;object-position:top;background:#fff;border:1px solid #cbd5e1;border-bottom:0}
.pc-noshot{display:grid;place-items:center;min-height:140px;color:var(--muted);font-size:13px}
.pc-badges{position:absolute;left:8px;top:8px;display:flex;gap:4px;flex-wrap:wrap}
.pc-badge{font-size:11px;font-weight:700;border-radius:4px;padding:1px 7px;background:var(--brand);color:#fff}.pc-badge-ai{background:#5b3fb3}
.pc-body{display:grid;gap:4px;align-content:start;padding:12px 14px 14px}.pc-body strong{font-size:15px}
.pc-kind,.pc-why{font-size:12px;color:var(--muted)}.pc-fit{font-size:13px;font-variant-numeric:tabular-nums}
.pc-warn{justify-self:start;color:#7a5200;background:#fff8e6;border-radius:4px;padding:1px 6px}
.pc-other{display:grid;gap:10px;border-top:1px solid var(--border);padding-top:16px}.pc-other .template-entry-card{max-width:360px;min-height:0}
.pc-confirm{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px;align-items:start}
.pc-sheet{display:grid;gap:8px;padding:14px;border:1px solid var(--border);border-radius:10px;background:#f8fafc}
.pc-picture{min-height:420px;height:min(70vh,640px);background:#fff;border:1px solid #cbd5e1;overflow:hidden;display:grid}
.pc-picture img{width:100%;height:100%;object-fit:contain;object-position:top}.pc-picture iframe{width:100%;height:100%;border:0}
.pc-facts{display:grid;gap:14px}.pc-fact{display:grid;gap:6px;padding:12px 14px;border:1px solid var(--border);border-radius:10px}
.pc-note{border-left:3px solid var(--brand);background:var(--brand-soft);padding:8px 12px;font-size:13px}
.pc-tags{display:flex;gap:4px;flex-wrap:wrap}.pc-tags span{border:1px solid var(--border);border-radius:4px;padding:0 6px;font-size:12px}
.pc-items{display:grid;gap:2px;max-height:420px;overflow:auto;border:1px solid var(--border);border-radius:8px;padding:6px}
.pc-group{font-size:12px;font-weight:700;color:var(--muted);padding:8px 6px 2px}
.pc-item{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(120px,200px);gap:10px;align-items:center;padding:4px 6px;font-weight:400;border-radius:6px}
.pc-item.pc-low{background:#fff8e6}.pc-item input{width:auto}.pc-item select{padding:6px 8px;border:1px solid #cbd5e1;border-radius:6px;font:inherit;background:#fff;min-width:0}
.pc-error{border-left:3px solid #b42318;background:#fff5f5;color:#912018;padding:8px 12px;font-size:14px}.pc-error:empty{display:none}
@media(max-width:800px){.pc-confirm{grid-template-columns:minmax(0,1fr)}.pc-picture{min-height:320px}}
.pc-card{display:grid;grid-template-rows:auto 1fr;border:1px solid var(--border);background:#fff}.pc-card:hover{border-color:var(--brand)}
button.pc-shot{border:0;border-bottom:1px solid var(--border);border-radius:0;width:100%;font-weight:400}button.pc-shot:hover:not(:disabled){background:#f1f5f9}
.pc-kinds{display:flex;gap:4px;flex-wrap:wrap;margin:2px 0}.pc-kind-chip{padding:2px 9px;font-size:12px}
.pc-go{justify-self:start;margin-top:6px;padding:6px 12px;font-size:13px}.pc-wait{padding:28px 0;color:var(--muted)}
.pc-facts .pc-items{max-height:min(52vh,520px)}
/* 狭い幅: 「作業画面で開く」は絵と表の下になるので、画面の下端に留める。 */
@media(max-width:800px){.pc-actions{position:fixed;left:0;right:0;bottom:0;background:#fff;padding:10px 16px;border-top:1px solid var(--border);z-index:5}.pc-facts{padding-bottom:72px}}
.pc-scope{display:grid;gap:2px;margin:0;padding:8px 10px;border:1px solid var(--border);border-radius:8px;min-width:0}.pc-scope legend{font-size:13px;font-weight:600;padding:0 4px}
.pc-scope-choice{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;gap:8px;align-items:baseline;padding:3px 2px;font-weight:400;font-size:13px}.pc-scope-choice input{width:auto}.pc-scope-choice strong{font-size:14px}.pc-scope-count{font-variant-numeric:tabular-nums;white-space:nowrap}
.pc-level{display:inline-block;margin-left:8px;padding:0 7px;border-radius:999px;border:1px solid var(--border);font-size:11px;line-height:18px;color:var(--muted);white-space:nowrap}.pc-level-required{border-color:var(--brand);color:var(--brand);background:var(--brand-soft)}.pc-level-exclude{border-style:dashed}
.pc-title{display:grid;gap:4px;font-size:13px}.pc-title input{padding:8px 10px;font-size:15px}
.pc-marks{border-color:#f0d9a4;background:#fffdf5}.pc-mark-list{display:flex;gap:6px 14px;flex-wrap:wrap}.pc-mark{display:flex;gap:6px;align-items:center;font-weight:400;font-size:13px}.pc-mark input{width:auto}
.pc-excluded{display:grid;gap:2px;font-size:13px}.pc-excluded-line{font-size:13px}.pc-item-wait{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(120px,200px);gap:10px;align-items:center;padding:4px 6px}.pc-place-wait{font-size:13px}
.pc-offer{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:10px 14px;border:1px solid var(--brand);border-radius:8px;background:var(--brand-soft);font-size:14px}.pc-offer button{padding:6px 12px;font-size:13px}

main.content:has(.template-work[data-embedded]){padding:12px clamp(10px,1.6vw,24px)}
main.content:has(.template-work[data-embedded])>h1,main.content:has(.template-work[data-embedded])>.intro,.template-editor:has(.template-work[data-embedded])>h2,.template-editor:has(.template-work[data-embedded])>p.muted{display:none}
.template-editor:has(.template-work[data-embedded]){border:0;padding:0;margin:0}
.template-work-bar{align-items:center}.template-work-bar h2{font-size:clamp(17px,2vw,22px);overflow-wrap:anywhere}
.template-work-body{grid-template-columns:minmax(0,1fr) clamp(290px,31vw,380px)}
.template-work-body:has(.template-work-side[hidden]){grid-template-columns:minmax(0,1fr)}
@media(max-width:740px){
 .template-work-body{grid-template-columns:minmax(0,1fr)}
 .template-work-doc,.template-work-doc iframe{min-height:260px}.template-work-doc iframe{height:48dvh}
 .template-work-body:has(.template-work-side[hidden]) iframe{height:76dvh}
 .template-work-side{max-height:none;padding:0}
 .template-work-bar .row{width:auto}
}

/* 出力設定の編集: 必要なものだけ先に見せ、残りは「詳しい設定」にたたむ（docs/console-ux-audit-20261119.md）。 */
.template-form>.template-card{margin:18px 0}
.template-advanced{margin:18px 0;border:1px solid var(--border);border-radius:8px;padding:4px 16px}
.template-advanced>summary{padding:10px 0;font-weight:600;cursor:pointer}
.template-advanced>p{margin:0 0 6px;font-size:13px}
.template-advanced[open]{padding-bottom:8px}
.template-advanced-body>.template-form-group:first-child{margin-top:8px}

/* 取り消しにくい操作は、ふだんの操作から離す（docs/console-ux-audit-20261119.md）。 */
.app-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 32px;min-width:260px}
.app-actions>a{display:inline-flex;align-items:center;min-height:36px}
.app-actions>.app-revoke{margin-left:auto;padding:6px 12px;font-size:13px;font-weight:500}
.template-actions>.danger{margin-left:16px}
.template-replace-file{justify-self:start;margin-top:8px}

/* ── EXTONEシリーズ共通の枠組み（EXTONE Driveのコンソールと同じ配置・色・部品。docs/console-series-design-20261120.md） ── */
:root{color:#020817;--primary:#0f172a;--brand:#0f172a;--brand-hover:#1e293b;--brand-soft:#f1f5f9;--radius:8px;--side:256px;--rail:64px}
.icon{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
button{font-weight:500;box-shadow:0 1px 2px #0000000d}button.text-button,.segmented button{box-shadow:none}
button.danger:hover:not(:disabled){background:#fef2f2;border-color:#fca5a5}
select{max-width:100%;height:40px;padding:0 10px;border:1px solid var(--border);border-radius:6px;background:#fff;color:inherit;font:inherit;font-size:14px}
.shell{display:flex;min-height:100vh;min-height:100dvh}
.console-sidebar{position:sticky;top:0;align-self:flex-start;z-index:20;display:flex;flex-direction:column;flex:none;width:var(--side);height:100vh;height:100dvh;border-right:1px solid var(--border);background:#fff}
.sidebar-brand{display:flex;align-items:center;flex:none;height:56px;padding:0 20px;border-bottom:1px solid var(--border);overflow:hidden}
.sidebar-brand .brand{width:190px;max-width:none}
.sidebar-org{display:grid;gap:4px;padding:12px 12px 0}.sidebar-caption{padding:0 4px;font-size:12px;color:var(--muted)}
.sidebar-org select{width:100%;font-weight:500}
.console-nav{display:grid;align-content:start;gap:4px;padding:12px 8px}
.console-nav:not(.support){flex:1;min-height:0;overflow-y:auto}.console-nav.support{flex:none;padding:8px;border-top:1px solid var(--border)}
.console-nav a{display:flex;align-items:center;gap:12px;padding:8px 12px;border-left:2px solid transparent;border-radius:6px;color:var(--muted);font-size:14px;font-weight:500;text-decoration:none;white-space:nowrap}
.console-nav a:hover{background:var(--accent);color:var(--primary)}
.console-nav a[aria-current=page]{border-left-color:var(--primary);background:var(--accent);color:var(--primary);font-weight:500}
.workspace{flex:1;min-width:0;display:flex;flex-direction:column}
.console-topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:flex-start;gap:8px;min-width:0;min-height:56px;padding:8px 16px;border-bottom:1px solid var(--border);background:#fffffff2;backdrop-filter:blur(8px)}
.console-user{display:grid;min-width:0;margin-right:4px;text-align:right;line-height:1.3}
.console-user-name{font-size:14px;font-weight:500}.console-user-email{font-size:12px;color:var(--muted)}
.console-user span{max-width:224px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-link{display:inline-flex;align-items:center;gap:6px;padding:8px 10px;border-radius:6px;font-size:14px;font-weight:500;text-decoration:none}
.account-link:hover,.account-link[aria-current=page]{background:var(--accent)}
.console-topbar button{padding:7px 12px}
main.content{flex:1;width:100%;max-width:none;margin:0;padding:24px 24px 64px}
.intro{max-width:48rem;margin-top:8px;line-height:1.7}
/* 幅が中くらいの画面と、帳票の作業画面では、メニューを印だけの幅に畳む（重ねると開く。文書の幅を優先する）。 */
@media(min-width:701px) and (max-width:1279px){
 .console-sidebar{position:fixed;left:0;width:var(--rail);transition:width .15s}.workspace{margin-left:var(--rail)}
 .console-sidebar:is(:hover,:focus-within){width:var(--side);box-shadow:0 10px 30px #0f172a26}
 .console-sidebar:not(:hover,:focus-within) :is(.nav-label,.sidebar-org){display:none}
 .console-sidebar:not(:hover,:focus-within) .brand{clip-path:inset(0 calc(100% - 21px) 0 0)}
}
@media(min-width:701px){
 .shell:has(.template-work[data-embedded]) .console-sidebar{position:fixed;left:0;width:var(--rail);transition:width .15s}
 .shell:has(.template-work[data-embedded]) .workspace{margin-left:var(--rail)}
 .shell:has(.template-work[data-embedded]) .console-sidebar:is(:hover,:focus-within){width:var(--side);box-shadow:0 10px 30px #0f172a26}
 .shell:has(.template-work[data-embedded]) .console-sidebar:not(:hover,:focus-within) :is(.nav-label,.sidebar-org){display:none}
 .shell:has(.template-work[data-embedded]) .console-sidebar:not(:hover,:focus-within) .brand{clip-path:inset(0 calc(100% - 21px) 0 0)}
}
@media(max-width:700px){
 .shell{display:block}
 .console-sidebar{position:static;flex-direction:row;flex-wrap:wrap;align-items:center;width:auto;height:auto;border-right:0;border-bottom:1px solid var(--border)}
 .sidebar-brand{height:48px;padding:0 16px;border-bottom:0}.sidebar-brand .brand{width:148px}
 .sidebar-org{order:1;grid-auto-flow:column;align-items:center;margin-left:auto;padding:4px 8px}.sidebar-org select{height:36px;max-width:44vw}
 .console-nav.support{order:2;display:flex;padding:4px 8px;border-top:0}.sidebar-brand+.console-nav~.console-nav.support,.sidebar-brand~.console-nav.support{margin-left:0}
 .console-sidebar:not(:has(.sidebar-org)) .console-nav.support{margin-left:auto}
 .console-nav:not(.support){order:3;display:flex;flex:1 1 100%;overflow-x:auto;padding:4px 8px 8px;border-top:1px solid var(--border)}
 .console-nav a{padding:7px 10px;border-left:0;gap:8px}.console-nav.support .icon{display:none}
 .console-topbar{position:static;min-height:48px}
 main.content{padding:20px 16px 48px}
}
/* 部品: カード・状態の札・案内の帯・使用量・プラン */
.card{margin-top:24px;padding:24px;border:1px solid var(--border);border-radius:var(--radius);background:#fff;box-shadow:0 1px 2px #0000000d}
.card>h2{margin-bottom:12px;font-size:18px}.card>form{margin-top:12px}.card-foot{margin-top:16px;font-size:14px}
.facts{display:grid;grid-template-columns:minmax(112px,max-content) minmax(0,1fr);gap:8px 24px;margin:0;font-size:14px}.facts dt{color:var(--muted)}.facts dd{margin:0;overflow-wrap:anywhere}
.state{display:inline-flex;align-items:center;gap:4px;padding:2px 10px;border-radius:999px;background:#f3f4f6;color:#4b5563;font-size:12px;font-weight:500}
.state .icon{width:14px;height:14px}.state.active{background:#dcfce7;color:#166534}.state.pending{background:#fef9c3;color:#854d0e}
.console-notices{margin:16px 24px 0;border:1px solid var(--border);border-radius:8px;overflow:hidden}
:is(.plan-banner,.terms-banner,.plugin-update-banner){display:flex;flex-wrap:wrap;align-items:flex-start;gap:6px 10px;padding:8px 12px;font-size:14px;color:#334155;background:#f8fafc}
.console-notices>div+div{border-top:1px solid var(--border)}
.console-notices .attention,.connect .terms-banner.attention{background:#fffbeb;color:#713f12}
.console-notices .stopped,.connect .terms-banner.stopped{background:#fef2f2;color:#991b1b}
.notice-row-text{flex:1 1 16rem;min-width:0;overflow-wrap:anywhere}
.notice-row-text p,.notice-row-more{margin:2px 0 0}
.notice-row-more ul{margin:4px 0;padding-inline-start:20px}
.notice-row-more summary{font:inherit;text-decoration:underline;text-underline-offset:2px}
.notice-row-icon{flex:none;display:grid;place-items:center;width:18px;height:18px;margin-top:2px;border:1px solid;border-radius:50%;font-size:12px;font-weight:700}
.banner-action{flex:none;max-width:100%;padding:4px 8px;border:0;border-radius:4px;background:transparent;font:inherit;font-weight:600;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.banner-action:hover{background:#ffffffcc}
@media(max-width:700px){.console-notices{margin:12px 16px 0}.notice-row-text{flex-basis:calc(100% - 28px)}.banner-action{margin-inline-start:28px}}
.usage-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.usage-meter{padding:16px;border:1px solid var(--border);border-radius:var(--radius)}.usage-meter h3{margin:0;color:var(--muted);font-size:14px;font-weight:500}
.usage-value{margin-top:4px;font-size:14px}.usage-value strong{margin-right:2px;font-size:28px;font-weight:600;letter-spacing:-.02em}
.usage-bar{height:8px;margin:10px 0 8px;border-radius:999px;background:var(--accent);overflow:hidden}.usage-fill{display:block;height:100%;border-radius:999px;background:var(--primary)}
.usage-meter:is(.full,.over) .usage-fill{background:#d97706}.usage-meter.over{border-color:#fcd34d;background:#fffbeb}.usage-reset{margin-top:12px}
.segmented{display:inline-flex;flex-wrap:wrap;gap:8px;margin:12px 0}.segmented button{padding:6px 12px;font-weight:400}.segmented button[aria-pressed=true]{border-color:var(--primary);background:#0f172a1a;font-weight:500}
.plan-heading{margin:24px 0 0;font-size:16px}
.plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-top:4px}
.plan-card{display:flex;flex-direction:column;gap:8px;padding:16px;border:1px solid var(--border);border-radius:var(--radius);font-size:14px}
.plan-card.current{border-color:var(--primary);box-shadow:0 0 0 1px var(--primary)}
.plan-card h3{margin:0;font-size:16px}.plan-price strong{font-size:22px;font-weight:600}.plan-card ul{flex:1;margin:0;padding-left:18px}.plan-card .muted{font-size:13px}
.plan-current{align-self:flex-start;padding:2px 8px;border-radius:4px;background:#0f172a1a;font-size:12px;font-weight:500}
.card.contract{margin:0 0 8px;background:#f8fafc;box-shadow:none}.card.contract .row{margin-top:16px}.card.contract .notice{margin:16px 0 0}
.billing-feedback{scroll-margin-top:72px}.billing-feedback .notice{margin:0 0 10px}.billing-feedback-actions{flex-wrap:wrap;margin-bottom:16px}.billing-feedback-actions:empty{display:none}
dialog.ask .facts{margin-top:16px}dialog h3{margin:18px 0 0;font-size:14px}dialog.ask .withdrawal-consent{margin-top:14px}dialog.ask .notice{margin:12px 0 0}
/* 組織とメンバー */
.inline-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;max-width:760px;margin-top:0}.inline-form>label{flex:1 1 220px}.inline-form>label:has(select){flex:0 0 auto}.inline-form>.notice{flex-basis:100%;margin:0}
.inline-form>button{height:42px}
.role-guide{margin:16px 0 0;padding-left:18px;color:var(--muted);font-size:14px}.role-guide strong{color:#0f172a}
.member-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px 24px;padding:16px 0;border-top:1px solid var(--border)}
.member-row:first-child{padding-top:0;border-top:0}.member-row:last-child{padding-bottom:0}
.member-who{display:grid;min-width:0}.member-who strong{overflow-wrap:anywhere}.member-who small{font-size:13px}
.member-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px}.member-controls button{padding:7px 12px;font-size:13px}.member-controls select{height:36px}
.member-scope{grid-column:1/-1;padding:14px 16px;border-radius:var(--radius);background:#f8fafc}.member-scope h3{margin:0 0 6px;font-size:14px}.member-scope .row{margin-top:4px}
.scope-list{list-style:none;margin:0 0 10px;padding:0;font-size:14px}.scope-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 0}
@media(max-width:680px){.member-row{grid-template-columns:minmax(0,1fr)}.member-controls{justify-content:flex-start}}
/* 各画面の体裁をカードにそろえる */
.account-summary{margin-top:24px;padding:0 24px;border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 1px 2px #0000000d}.account-row:last-child{border-bottom:0}
.account-ai,.account-ending{margin-top:24px;padding:24px;border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 1px 2px #0000000d}
.secondary-link{display:inline-flex;align-items:center;padding:8px 14px;border:1px solid var(--border);border-radius:6px;background:#fff;font-size:14px;font-weight:500;text-decoration:none;box-shadow:0 1px 2px #0000000d}.secondary-link:hover{background:var(--accent)}
.help-list>section{padding:20px 24px;border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 1px 2px #0000000d}.help-list{gap:16px}
.home-status.onboarding,.app-group{padding:24px;border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 1px 2px #0000000d}.app-list{border-top:0}.app-list li:last-child{border-bottom:0;padding-bottom:0}
.table-wrap{border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 1px 2px #0000000d}.table-wrap tr:last-child td{border-bottom:0}
.template-plan-notice{margin:8px 0 0}
/* 公開・認証画面もDriveと同じ（淡い灰色の地に白いカード） */
body:has(main.auth){background:#f8fafc}.public-header{height:56px;padding:0 16px}.public-header .brand{width:190px}
.auth-card{max-width:512px;padding:24px;border-color:var(--border);border-radius:var(--radius);box-shadow:0 1px 2px #0000000d}
.public-footer{border-top-color:var(--border)}
.account-control .secondary-link{margin-top:0}
.usage-kind{margin-left:8px;padding:1px 8px;border-radius:999px;background:var(--accent);color:var(--muted);font-size:12px;font-weight:500;vertical-align:middle}
.plan-for{margin:-4px 0 0;color:var(--muted);font-size:13px}.plan-price{font-size:13px}.plan-common{margin-top:12px;font-size:13px}
.plan-card.suggested{border-color:#0284c7;box-shadow:0 0 0 1px #0284c7}.plan-suggested{align-self:flex-start;padding:2px 8px;border-radius:4px;background:#e0f2fe;color:#075985;font-size:12px;font-weight:500}
.terms-page { max-width: 56rem; margin: 0 auto; padding: 1.5rem; line-height: 1.75; }
.terms-page article { margin-top: 2rem; }
.terms-page h2 { margin-top: 2.5rem; }
.terms-page h3 { margin-top: 1.5rem; }
.terms-page li + li { margin-top: .35rem; }
.terms-table { overflow-x: auto; }
.terms-table th, .terms-table td { padding: .5rem; border: 1px solid currentColor; text-align: left; }
.plugin-download-form { display: grid; justify-items: start; gap: .7rem; }

/* プラグインのダウンロード画面: 製品サイトと同じ作り（角を丸めない、黄色の主ボタン、黄色の印）にそろえる。 */
.download-page{max-width:760px;--dl-accent:#fabe00;--dl-ink:#231200}
.download-page h1{font-size:28px;letter-spacing:.02em}
.download-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:28px 0 8px}
.download-tabs button{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 10px;min-height:56px;padding:10px 14px;border:1px solid var(--border);border-bottom:4px solid #aab4ba;border-radius:0;background:#fff;color:#3f494f;font-size:16px;font-weight:700}
.download-tabs button[aria-selected=true]{border-bottom-color:var(--dl-accent);background:#fffaf0;color:#101418}
.download-tabs small{padding:1px 8px;background:#e5006e;color:#fff;font-size:11.5px;font-weight:800;letter-spacing:.08em}
.download-page .steps li:before{background:var(--dl-accent);color:var(--dl-ink)}
.download-page .steps h2{font-size:17px}
.download-page .download-who{margin-top:4px;color:var(--muted);font-size:13px}
.download-page .plugin-download-form{margin-top:12px;gap:.6rem}
.download-page .plugin-download-form p{font-size:13px}
.download-page .plugin-download-form label{display:flex;align-items:center;gap:8px;margin:0;font-size:15px;font-weight:400}
.download-page .plugin-download-form label input{width:18px;height:18px;margin:0;padding:0;flex:none}
.download-page .download-link{margin-top:0;padding:13px 24px;border:0;border-radius:0;background:var(--dl-accent);color:var(--dl-ink);font-size:16px;font-weight:700}
.download-page .download-link:hover:not(:disabled){background:#ffd040}
.download-page .download-link:disabled{background:#eceff1;color:#7b868c;cursor:not-allowed}
.download-done{margin-top:20px;padding:18px 22px;border:1px solid var(--border);border-left:4px solid var(--dl-accent);background:#fff}
.download-done h2{margin:0;font-size:19px}.download-done p{margin-top:6px}
.download-more{margin-top:16px;padding:14px 22px;border:1px solid var(--border);background:#f3f6f7}
.download-more summary{font-size:15px}.download-more p{margin-top:8px;font-size:14px}.download-more button{margin-top:12px;border-radius:0}
.download-help{margin-top:40px;padding-top:20px;border-top:1px solid var(--border);font-size:14px}
.download-help summary{color:var(--muted);font-weight:500;font-size:14px}
.download-help h2{margin:18px 0 4px;font-size:15px}.download-help p{overflow-wrap:anywhere}
@media(max-width:560px){.download-tabs button{font-size:14.5px;padding:8px}}
.download-page>.steps{margin-bottom:0}.download-tail .steps{counter-reset:step 3;margin-top:0}
.download-page .secondary-link{margin-top:10px;border-radius:0}
.page-actions{margin-top:20px}.inline-form>.notice{order:1}
.home-title{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}.plan-chip{padding:2px 10px;border:1px solid var(--border);border-radius:999px;background:var(--accent);color:#475569;font-size:12px;font-weight:500;letter-spacing:0}
.home-board{margin-top:20px}.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px}
.stat{display:flex;flex-direction:column;gap:6px;min-width:0;padding:16px 20px;border:1px solid var(--border);border-radius:var(--radius);background:#fff;box-shadow:0 1px 2px #0000000d}
.stat-label{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:13px;font-weight:500}.stat-label .icon{width:16px;height:16px}
.stat-value{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px;color:var(--muted);font-size:14px}.stat-value strong{color:var(--primary);font-size:30px;font-weight:600;line-height:1.2;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.stat .usage-bar{height:6px;margin:2px 0}.stat-foot{color:var(--muted);font-size:13px}.stat.warn{border-color:#fcd34d}.stat.warn .usage-fill{background:#d97706}
.stat-offer{margin-top:auto;padding-top:8px;border-top:1px solid var(--border);font-size:13px;font-weight:500}
.todo-list{list-style:none;margin:0;padding:0}.todo-list li{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:start;gap:12px;padding:12px 0;border-top:1px solid var(--border);font-size:14px}
.todo-list li:first-child{padding-top:0;border-top:0}.todo-list li:last-child{padding-bottom:0}.todo-list .icon{width:20px;height:20px;margin-top:2px;color:#d97706}.todo-list a{white-space:nowrap;font-weight:500}
.todo-none{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:14px}.todo-none .icon{width:18px;height:18px;color:#16613f}
.home-columns{display:grid;grid-template-columns:minmax(0,3fr) minmax(280px,2fr);gap:0 24px;align-items:start}.home-side{min-width:0}
.home-apps .app-group{margin-top:20px;padding:0;border:0;box-shadow:none}.home-apps .app-group h3{color:var(--muted);font-size:13px;font-weight:500}
.plan-now{font-size:20px;font-weight:600}.plan-points{margin:8px 0 0;padding-left:18px;color:#475569;font-size:14px}
.plan-offer{display:grid;gap:2px;margin-top:14px;padding:12px 14px;border:1px solid #bae6fd;border-radius:6px;background:#f0f9ff;color:#082f49;font-size:13px}.plan-offer strong{font-size:14px}
.card-link{display:inline-block;margin-top:14px;font-size:14px;font-weight:500}.plan-offer+.primary-link{margin-top:14px}
.home-actions{display:grid;gap:0}.home-actions a{display:grid;grid-template-columns:20px minmax(0,1fr) 16px;align-items:center;gap:12px;padding:12px 8px;margin:0 -8px;border:0;border-radius:6px;color:inherit;text-decoration:none}
.home-actions a:hover{background:var(--accent)}.home-actions a>span{display:grid}.home-actions strong{font-size:14px;font-weight:500}.home-actions small{font-size:12px}.home-actions .icon{width:20px;height:20px;color:#475569}.home-actions .icon:last-child{width:16px;height:16px;color:#94a3b8}
@media(max-width:900px){.home-columns{grid-template-columns:minmax(0,1fr)}}@media(max-width:680px){.todo-list li{grid-template-columns:20px minmax(0,1fr)}.todo-list a{grid-column:2}}
.icon-button{display:inline-flex;align-items:center;gap:6px}.icon-button .icon{width:16px;height:16px}
.plan-emphasis{color:var(--primary);font-weight:600}

/* The console around the apps (2026-11-23): the top bar's context and use of the plan, the apps in the sidebar, an app's page. */
.console-context{display:flex;flex:0 1 auto;align-items:center;gap:10px;min-width:0;margin-right:auto;font-size:14px}.console-context strong{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.context-domain{color:var(--muted);font-size:13px}select.context-domain{padding:5px 8px;border:1px solid var(--border);border-radius:6px;background:#fff;color:inherit}
/* Keep each usage link intact and wrap the group when its links do not fit on one line. */
.console-usage{display:flex;flex:0 1 auto;flex-wrap:wrap;align-items:center;gap:6px;min-width:min-content;max-width:100%}
.usage-chip{padding:4px 10px;border:1px solid var(--border);border-radius:999px;font-size:12px;color:var(--muted);text-decoration:none;white-space:nowrap}
.usage-chip:hover{background:var(--accent);color:var(--primary)}.usage-chip.near{border-color:#f0c36d;background:#fffbeb;color:#713f12}.usage-chip.full{border-color:#f3a6a0;background:#fef2f2;color:#991b1b}
.usage-cta{padding:5px 12px;border-radius:6px;font-size:13px;font-weight:500;color:var(--brand,#176393);text-decoration:none;white-space:nowrap}.usage-cta:hover{background:var(--accent)}
.usage-cta.strong{background:var(--primary,#0f172a);color:#fff}.usage-cta.strong:hover{background:#1e293b}
.console-nav .sidebar-caption{padding:10px 12px 2px}.nav-apps{display:grid;gap:2px}
.console-nav a.nav-app .nav-label:first-of-type{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.console-nav a[aria-current=page].nav-app{color:var(--primary);font-weight:600}
.nav-flag{flex:none;padding:1px 6px;border-radius:999px;background:#fffbeb;color:#713f12;font-size:11px;font-weight:500}
.console-nav a.app-list-attention{position:relative}
@media (min-width:701px) and (max-width:1279px){
 .console-sidebar:not(:hover,:focus-within) .app-list-attention::after{content:"";position:absolute;top:5px;left:27px;width:8px;height:8px;border:1px solid #fff;border-radius:50%;background:#ad6500}
}
@media (min-width:1280px){
 .shell:has(.template-work[data-embedded]) .console-sidebar:not(:hover,:focus-within) .app-list-attention::after{content:"";position:absolute;top:5px;left:27px;width:8px;height:8px;border:1px solid #fff;border-radius:50%;background:#ad6500}
}
.console-nav a.nav-add{font-weight:400}
.app-head{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}.app-head h1{margin:0}.app-head .app-link{margin-left:auto}
.app-sub{margin:4px 0 14px}
.app-attention{margin:0 0 16px;padding:12px 16px;border-inline-start:4px solid #ad6500;background:#fffbeb;color:#713f12}.app-attention p{margin:4px 0 0}
.app-tabs{display:flex;gap:4px;margin:8px 0 18px;border-bottom:1px solid var(--border)}
.app-tabs button{padding:8px 14px;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;color:var(--muted);font-weight:500;box-shadow:none}
.app-tabs button[aria-selected=true]{border-bottom-color:var(--primary,#0f172a);color:var(--primary,#0f172a)}
.app-access-actions{margin-top:16px;gap:10px}
.template-scope-bar{margin:0 0 14px}
@media(max-width:900px){.console-usage .usage-chip,.console-context .context-domain:not(select),.console-user{display:none}}
.console-usage .plan-chip{padding:4px 10px;border-radius:999px;background:var(--accent);font-size:12px;color:inherit;text-decoration:none;white-space:nowrap}
.console-topbar :is(button,.account-link,.usage-cta){white-space:nowrap}
@media(max-width:1100px){.console-user-email{display:none}}
.context-domain{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.console-user{flex:0 1 auto}
@media(max-width:1279px){.console-usage .plan-chip,.cta-price{display:none}}
@media(max-width:1100px){.console-usage .usage-chip{display:none}}
/* A folded sidebar keeps every row where it is when open: the captions and the organization keep their room, unseen. */
.console-nav a{min-height:38px}
@media(min-width:701px) and (max-width:1279px){.console-sidebar:not(:hover,:focus-within) :is(.sidebar-org,.console-nav .sidebar-caption){display:grid;visibility:hidden}}
@media(min-width:701px){.shell:has(.template-work[data-embedded]) .console-sidebar:not(:hover,:focus-within) :is(.sidebar-org,.console-nav .sidebar-caption){display:grid;visibility:hidden}}
.console-sidebar .sidebar-caption{white-space:nowrap;overflow:hidden}.sidebar-org{overflow:hidden}
.console-nav a{box-sizing:border-box;height:40px;min-height:0}.console-nav .sidebar-caption{box-sizing:border-box;height:30px;line-height:18px}
/* The organization and the kintone in the top bar (the sidebar has no organization block any more). */
select.context-pick{height:36px;max-width:340px;padding:0 8px;border:1px solid var(--border);border-radius:6px;background:#fff;font-size:14px;font-weight:500}
.console-context select{min-width:0}
/* A narrow screen (2026-11-23): the sidebar is folded away and opens over the page from the menu button; the top bar
   (the organization and the kintone first) stays, and the page takes the whole width. */
.menu-toggle,.menu-backdrop{display:none}
@media(max-width:700px){
 .shell{display:block}
 .console-sidebar{position:fixed;top:0;left:0;z-index:40;flex-direction:column;flex-wrap:nowrap;align-items:stretch;width:min(var(--side),86vw);height:100vh;height:100dvh;border-right:1px solid var(--border);border-bottom:0;background:#fff;transform:translateX(-100%);transition:transform .18s;visibility:hidden}
 .shell.menu-open .console-sidebar{transform:none;visibility:visible;box-shadow:0 10px 30px #0f172a33}
 .shell.menu-open .menu-backdrop{display:block;position:fixed;inset:0;z-index:30;background:#0f172a55}
 .sidebar-brand{height:56px;padding:0 20px;border-bottom:1px solid var(--border)}.sidebar-brand .brand{width:190px}
 .console-nav:not(.support){order:0;display:grid;flex:1;overflow-y:auto;overflow-x:hidden;padding:12px 8px;border-top:0}
 .console-sidebar>nav.console-nav:not(.support){grid-template-rows:max-content minmax(0,1fr);grid-auto-rows:max-content;overflow:hidden}
 .console-sidebar .nav-apps{min-height:0;align-content:start;overflow-y:auto;overscroll-behavior-y:contain}
 .console-nav.support{order:0;display:grid;margin-left:0;padding:8px;border-top:1px solid var(--border)}.console-nav.support .icon{display:inline}
 .console-nav a{height:40px;padding:8px 12px;border-left:2px solid transparent;gap:12px}
 .menu-toggle{display:inline-flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;padding:0;border:1px solid var(--border);border-radius:6px;background:#fff}
 .console-topbar{position:sticky;top:0;min-height:56px}
}
@media(max-width:700px){
 .console-topbar{display:grid;grid-template-columns:44px minmax(0,1fr)}
 .console-topbar .menu-toggle{width:44px;height:44px}
 .console-context{grid-column:2;flex-wrap:wrap;margin-right:0}
 .console-context .context-domain:not(select){display:inline}
 .console-context select{width:100%;max-width:100%;height:44px;font-size:16px}
 .console-usage{grid-column:1/-1;min-width:0}
 .console-usage:empty{display:none}
 .console-usage :is(.plan-chip,.usage-cta){display:inline-flex;align-items:center;min-height:36px}
}
.sidebar-account{display:none}
@media(max-width:700px){.console-topbar .account-link,.console-topbar>button:not(.menu-toggle){display:none}
 .console-nav.sidebar-account{display:grid;flex:none;padding:8px;border-top:1px solid var(--border)}.sidebar-account button{justify-self:start;margin:4px 12px}}
@media(max-width:700px){.console-sidebar:not(:has(.sidebar-org)) .console-nav.support,.console-sidebar .console-nav.support{margin-left:0}}
/* The form of an output document (2026-11-23): what each field is for is written under its name; what saving does is said above the buttons. */
.template-field-text{display:grid;gap:2px;align-items:start}.template-field-hint{margin:0;color:var(--muted);font-size:13px;line-height:1.5}
.template-group-lead{margin:0 0 12px;color:var(--muted);font-size:14px}
.template-save-summary{margin:20px 0 10px;padding:12px 14px;border-radius:8px;background:var(--accent);font-size:14px}
.template-scope-hidden{display:none}
.template-card-caption{margin:0 0 6px;font-size:13px;font-weight:600;color:var(--muted)}
/* Choices to press for the few ways of an output (format, destination). */
.template-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin:6px 0 4px}
.template-choice{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;align-items:center;padding:12px 14px;border:1px solid var(--border);border-radius:8px;background:#fff;cursor:pointer}
.template-choice input{grid-row:1/3;width:18px;height:18px;margin:0}.template-choice strong{font-size:14px}.template-choice span{grid-column:2;color:var(--muted);font-size:13px}
.template-choice:has(input:checked){border-color:var(--primary,#0f172a);box-shadow:0 0 0 1px var(--primary,#0f172a)}
.template-choice:has(input:disabled){opacity:.55;cursor:default}
select.template-choice-source{display:none}
.plan-request{margin-top:24px;padding:20px;border:1px solid var(--border);border-radius:8px;background:var(--accent)}.plan-request h3{margin:0 0 6px}.plan-request-text{margin:12px 0 0;padding:12px;border-radius:6px;background:#fff;font:inherit;font-size:13px;white-space:pre-wrap}
.template-prepare-caption{margin:14px 0 0;font-size:14px;font-weight:600}
.template-entry-manual{display:block;margin-top:6px;padding:6px 8px;border-radius:6px;background:#fffbeb;color:#713f12;font-size:13px}
.template-entry-ready{margin-top:18px;padding-top:14px;border-top:1px solid var(--border)}.template-entry-ready-title{margin:0 0 8px;font-size:14px;font-weight:600}.template-entry-ready .row{flex-wrap:wrap;gap:8px}
.template-badge-off{background:#f1f5f9;color:#475569;text-decoration:none}.template-state-note{display:block;margin-top:2px;color:var(--muted);font-size:12px}
.template-entry-box{display:flex;flex-direction:column;gap:6px;padding:20px;border:1px solid var(--border);border-radius:12px;background:#fff;text-align:left}
.template-entry-box strong{font-size:16px}.template-entry-box-actions{display:grid;gap:8px;margin-top:10px}.template-entry-box-actions button{width:100%;min-height:44px;white-space:normal;line-height:1.4}
/* The steps of adding an output document: three equal parts, the current one marked. */
.template-prepare-flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:10px 0 18px;padding:0;list-style:none;counter-reset:none;font-size:13px;color:var(--muted)}
.template-prepare-flow li{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:8px;background:var(--accent);counter-increment:none;font-weight:500}
.template-prepare-flow li::before{content:none}
.template-prepare-flow-number{display:grid;place-items:center;flex:none;width:22px;height:22px;border-radius:50%;background:#fff;border:1px solid var(--border);font-size:12px}
.template-prepare-flow li.current{background:var(--primary,#0f172a);color:#fff;font-weight:700}.template-prepare-flow li.current .template-prepare-flow-number{border-color:#fff;color:var(--primary,#0f172a)}
.template-prepare-flow li.done{color:inherit}.template-prepare-flow li.done .template-prepare-flow-number{background:#dcfce7;border-color:#86efac;color:#166534}
.template-prepare-setup .template-prepare-caption+.template-entry-cards{margin-top:6px}
@media(max-width:700px){.template-prepare-flow{font-size:12px}.template-prepare-flow li{padding:8px}}
.pc-order{margin:10px 0 8px;font-size:13px}
.template-fixed-value{margin:0 0 10px;font-size:14px}.template-choice:not(:has(span)) strong{grid-row:1/3;align-self:center}.template-batch-off{margin-top:4px;color:#713f12}
.pc-features{display:flex;flex-wrap:wrap;gap:4px 6px;margin:2px 0 0;padding:0;list-style:none;font-size:12px;color:var(--muted)}.pc-features li{padding:2px 8px;border-radius:999px;background:var(--accent)}
.onboarding-steps li.done{opacity:.7}.onboarding-steps li.done strong{color:#166534}.onboarding-steps li.current{border-color:var(--primary,#0f172a);box-shadow:0 0 0 1px var(--primary,#0f172a)}
.nav-search{width:calc(100% - 8px);margin:2px 4px 6px;padding:6px 10px;border:1px solid var(--border);border-radius:6px;font-size:13px}.console-nav a[hidden]{display:none}
.terms-gate-links{display:flex;flex-wrap:wrap;gap:8px 18px;margin:16px 0}.terms-gate-check{display:flex;align-items:flex-start;gap:10px;margin:16px 0;text-align:left}.terms-gate-check input{width:auto;flex:none;margin:3px 0 0;padding:0}
.connect .terms-banner{margin-top:16px;border-radius:8px}
.terms-page nav{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:14px;color:var(--muted)}.terms-page nav a{padding:0;border:0;border-radius:0}.terms-page nav strong{color:#0f172a}
.download-page .download-gate-actions{align-items:stretch;gap:12px}.download-page .download-gate-actions .secondary-link{margin-top:0;padding:13px 24px;font-size:16px;font-weight:700}

.pc-compact-image{display:block;max-width:min(100%,280px);max-height:240px;object-fit:contain;margin-block:12px}
.pc-size-buttons{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));gap:8px}
.pc-size-buttons button{display:grid;gap:4px;text-align:left;align-content:start}
.pc-size-buttons button small{color:inherit;font-size:13px;font-weight:400}
.template-work[data-compact=true] .template-work-step{border:0;background:transparent}
.template-work[data-compact=true] .template-work-step-head[hidden],
.template-work[data-compact=true] [hidden]{display:none}

.pc-search-label{font-weight:650}
.pc-more{text-align:center}
@media(max-width:650px){.pc-filter{flex-direction:column;align-items:flex-start;gap:4px}.pc-filter-name{min-width:0}}
.pc-preview{width:min(92vw,860px);max-width:none;max-height:90dvh;overflow:auto}
.pc-preview::backdrop{background:#0f172a70}
.pc-preview-image{overflow:auto;background:#f8fafc;margin-block:12px}
.pc-preview-image img{display:block;margin:auto;max-width:100%;width:auto;height:auto}
.pc-preview-image[data-original-size] img{max-width:none}
.pc-shot:not(:disabled)::after{content:'⌕';position:absolute;right:12px;bottom:12px;padding:2px 9px;border-radius:6px;background:white;color:#17233d;font-size:22px}

.template-work[data-compact=true] .template-work-body{grid-template-columns:minmax(0,1fr)}
.template-work-dialog{width:min(640px,calc(100vw - 32px));max-width:none;max-height:85dvh;overflow:auto}
.template-work-dialog::backdrop{background:#0f172a60}
.template-work-dialog .template-work-side{max-height:none;overflow:visible}
.template-entry-recommended{align-self:start;padding:2px 8px;border-radius:12px;background:#e6f0ff;color:#214b8b}
.template-unit-choice{position:relative}
.template-unit-choice input{position:absolute;opacity:0}
.template-unit-choice :is(i,svg){grid-row:1/3;font:24px system-ui;color:#254e87}
.template-unit-choice:has(input:focus-visible){outline:2px solid #2563eb;outline-offset:2px}

.template-work[data-compact=true] .template-work-bar{flex-wrap:nowrap;align-items:center;gap:8px}
.template-work[data-compact=true] .template-work-bar>div:first-child{min-width:0;flex:1}
.template-work[data-compact=true] .template-work-bar h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.template-work[data-compact=true] .template-work-bar>.row{width:auto;flex-wrap:nowrap;gap:4px}
.template-work[data-compact=true] .template-work-bar>button,
.template-work[data-compact=true] .template-work-bar>.row>button{white-space:nowrap;padding:6px 8px;font-size:12px}
.template-work[data-compact=true] .template-work-bar button[data-work-icon]{position:relative;min-width:34px;min-height:34px;font-size:0}
.template-work-bar button[data-work-icon]::before{content:attr(data-work-icon);font-size:19px;line-height:1}
.template-work-bar button[data-tooltip]::after{content:attr(data-tooltip);display:none;position:absolute;z-index:4;inset:calc(100% + 5px) 0 auto auto;background:#17233d;color:white;border-radius:4px;padding:5px 7px;font-size:12px;white-space:nowrap;pointer-events:none}
.template-work-bar button[data-work-icon]:not([data-tip-dismissed]):is(:hover,:focus-visible)::after{display:block}
.template-work[data-compact=true] .template-work-bar:has(>.notice:not(:empty)){flex-wrap:wrap}
.template-work-dialog>.notice:empty{display:none}
.template-work-dialog>.notice{position:sticky;bottom:0}
@media(max-width:650px){.template-work[data-compact=true] .template-work-bar{flex-wrap:wrap}.template-work[data-compact=true] .template-work-bar>.row{flex-wrap:wrap}}
.pc-chip:has(svg){display:inline-flex;align-items:center;gap:5px}
.pc-chip svg{max-height:18px}

.template-work-tools{position:relative}
.template-work-tools summary{cursor:pointer;font-size:21px;line-height:32px;min-width:34px;text-align:center;list-style:none;border:1px solid var(--border);border-radius:6px}
.template-work-tools>div{position:absolute;right:0;top:100%;z-index:3;display:grid;gap:4px;padding:6px;background:#fff;border:1px solid var(--border);border-radius:6px;white-space:nowrap}
.template-work-tools:not([open])>div{display:none}
.template-work-output-menu{display:none}
@media(max-width:650px){
 .template-work-bar:has(.template-work-tools:not([hidden])) .template-work-output-direct{display:none}
 .template-work-tools .template-work-output-menu{display:block}
}
