.ked{--ked-blue:#225e9c;--ked-border:#dbe4ee;--ked-bg:#f5f8fc;color:#203047;font-family:system-ui,-apple-system,'Yu Gothic',Meiryo,sans-serif;line-height:1.6;max-width:1600px;margin:0 auto;font-size:14px}.ked *{box-sizing:border-box}.ked button,.ked input,.ked textarea,.ked select{font:inherit}.ked button{cursor:pointer}.ked button:focus-visible,.ked input:focus-visible,.ked select:focus-visible,.ked textarea:focus-visible{outline:3px solid #8abafe;outline-offset:2px}.ked-hero{background:linear-gradient(115deg,#184c86,#377eba);padding:28px 25px;color:#fff;border-radius:16px;margin-bottom:15px}.ked-hero h2{font-size:clamp(21px,3vw,29px);line-height:1.35;margin:7px 0 8px;color:#fff}.ked-hero p{margin:0}.ked-hero-tag{font-size:12px;font-weight:700;letter-spacing:.04em}.ked-notice{padding:16px 18px;background:#fff9ed;border:1px solid #e7c97c;border-left:5px solid #bc8831;border-radius:10px;margin-bottom:15px}.ked-notice strong{font-size:17px;color:#7a4e14}.ked-notice p{font-size:13px;margin:5px 0 0}.ked-types{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-bottom:16px}.ked-types button{padding:11px 6px;background:#fff;border:1px solid var(--ked-border);border-radius:9px;font-weight:700;color:#294f79;white-space:normal}.ked-types button.active{background:#225e9c;color:#fff;border-color:#225e9c}.ked-progress{display:flex;align-items:center;gap:13px;margin:0 0 16px;font-size:12px;color:#48617e}.ked-progress-track{height:9px;background:#dde6f2;border-radius:50px;flex:1;overflow:hidden}.ked-progress-track>div{height:100%;width:0%;background:#24a477;transition:width .2s}.ked-layout{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(340px,.92fr);gap:17px;align-items:start}.ked-editor,.ked-aside{min-width:0}.ked-panel{padding:20px;border:1px solid var(--ked-border);border-radius:13px;margin-bottom:15px;background:#fff;box-shadow:0 3px 14px #1e46780b}.ked-panel h3,.ked-preview-heading h3{font-size:17px;margin:0 0 14px;color:#1d416d}.ked-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ked label{display:flex;flex-direction:column;gap:5px;min-width:0;font-weight:600;font-size:12px;color:#395371}.ked input:not([type=file]):not([type=range]),.ked select,.ked textarea{border:1px solid #c8d5e5;border-radius:8px;background:#fff;color:#202a38;width:100%;min-width:0;padding:10px 11px;font-size:14px;line-height:1.4}.ked textarea{resize:vertical}.ked input[type=range]{width:100%;accent-color:#225e9c}.ked input[type=file]{max-width:100%;font-size:12px}.ked .ked-wide{grid-column:1/-1}.ked-inline{display:flex;gap:5px;min-width:0}.ked-inline>input{flex:1}.ked-mini,.ked-controls button,.ked-templates button,.ked-modal button{border:1px solid #b9cce1;background:#f0f6fd;color:#1c4f86;border-radius:7px;font-weight:700;padding:8px 10px;white-space:normal}.ked-inline .ked-mini{font-size:11px;flex:none}.ked-images{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:13px}.ked-images>div{border:1px dashed #bfd0e3;border-radius:10px;padding:12px;min-width:0}.ked-images p,.ked-help{font-size:12px;color:#5f7085;margin:5px 0 10px}.ked-images button{display:block;margin:8px 0}.ked-row-title{display:flex;gap:10px;align-items:center;justify-content:space-between}.ked-row-title h3{margin-bottom:7px}.ked-item{padding:13px;border:1px solid #d9e4f1;background:#f8fbff;border-radius:10px;margin:12px 0}.ked-item-heading{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-bottom:10px}.ked-item-buttons{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}.ked-item-buttons button{border:1px solid #b9cee5;background:white;color:#275483;padding:5px 7px;border-radius:6px;font-size:11px}.ked-item>label{margin-bottom:9px}.ked-item-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.ked-item-sub{text-align:right;font-size:12px;font-weight:700;color:#275483;margin-top:9px}.ked-templates{display:flex;flex-wrap:wrap;gap:5px;margin-top:14px}.ked-templates button{font-size:12px;padding:7px}.ked-controls{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.ked-controls button{flex:1;min-width:95px}.ked-controls .ked-primary,.ked-primary{background:#2064ab;color:white;border-color:#2064ab}.ked-controls .ked-danger{background:#fff0f0;color:#a82935;border-color:#e9c0c5}.ked-check:not(:empty){padding:12px 15px;background:#f2f7ff;border:1px solid #cfdfef;border-radius:9px;margin:12px 0}.ked-check ul{padding-left:20px;margin:7px 0}.ked-aside-inner{position:sticky;top:16px;border:1px solid var(--ked-border);background:#fff;border-radius:13px;padding:16px;box-shadow:0 3px 14px #1e46780b}.ked-preview-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.ked-preview-heading h3{margin:0 0 9px}.ked-preview-heading span{font-size:11px;color:#64758a}.ked-preview-scroller{overflow:auto;max-height:750px;background:#e3eaf2;padding:14px;border-radius:8px}.ked-paper{width:100%;min-width:285px;min-height:390px;background:#fff;box-shadow:0 2px 13px #10213722;padding:19px}.ked-total{display:flex;justify-content:space-between;align-items:center;padding:10px 3px;font-weight:700}.ked-total strong{font-size:23px;color:#185a99}.ked-filename{font-size:11px;word-break:break-all;color:#5e7187}.ked-aside .ked-controls{margin-bottom:0}.ked-footer{padding:18px;margin:14px 0;background:#f0f4fa;border-radius:8px;font-size:12px;color:#60718b}.ked-modal{border:1px solid #cfdae8;border-radius:12px;padding:0;max-width:min(1000px,96vw);max-height:92vh;width:96vw;box-shadow:0 16px 60px #15263d5c;color:#21354b;background:white}.ked-modal::backdrop{background:#12233bb8}.ked-modal-head{display:flex;justify-content:space-between;align-items:center;gap:20px;position:sticky;top:0;background:white;border-bottom:1px solid #e0e7ef;padding:11px 17px;z-index:2}.ked-zoom-area{overflow:auto;padding:14px;background:#e1e9f2;max-height:calc(92vh - 58px)}.ked-zoom-area .ked-sheet{max-width:794px;min-height:1123px;margin:auto;padding:38px;box-shadow:0 3px 25px #0002}.ked-calc{max-width:370px}.ked-calc output{display:block;font-size:28px;text-align:right;margin:15px;padding:10px;background:#eaf1fa;border-radius:8px;overflow-wrap:anywhere}.ked-calc-keys{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:10px 16px}.ked-calc-keys button{min-height:45px}.ked-calc-keys button:last-child{grid-column:span 3}.ked-calc p{margin:8px 16px 20px}.ked-sheet{--ink:#153962;--tint:#eaf2fa;--table:#174875;background:#fff;color:#17253b;font-family:'Yu Gothic',Meiryo,Arial,sans-serif;font-size:11px;line-height:1.6;overflow-wrap:anywhere}.ked-sheet[data-theme=modern]{--ink:#116354;--tint:#e8f5ee;--table:#176b58}.ked-sheet[data-theme=mono]{--ink:#202124;--tint:#f0f0f0;--table:#333}.ked-sheet[data-theme=warm]{--ink:#8b522f;--tint:#fcf0e2;--table:#8b522f}.ked-sheet[data-font=small]{font-size:9.5px}.ked-sheet[data-font=large]{font-size:12px}.ked-doc-head{display:flex;justify-content:space-between;gap:13px;align-items:flex-start;padding-bottom:10px;border-bottom:3px solid var(--ink)}.ked-doc-title{font-size:24px;letter-spacing:.09em;font-weight:800}.ked-doc-logo{display:block;max-width:130px;max-height:62px;object-fit:contain;margin:0 0 6px auto}.ked-doc-meta{text-align:right;min-width:105px;font-size:.93em}.ked-doc-parties{display:flex;justify-content:space-between;gap:12px;margin:15px 0}.ked-doc-to{flex:1;min-width:0}.ked-doc-from{flex:1;min-width:0;text-align:right;position:relative;min-height:85px}.ked-doc-to-name{font-weight:800;font-size:15px;border-bottom:1px solid #95a7b3;padding-bottom:5px;margin-bottom:6px}.ked-doc-from-name{font-size:13px;font-weight:800}.ked-doc-stamp{display:block;position:relative;height:0;pointer-events:none}.ked-doc-stamp img{position:absolute;top:-46px;left:var(--stamp-x);width:var(--stamp-size);height:var(--stamp-size);object-fit:contain;opacity:.83;transform:translateX(-50%)}.ked-doc-subject{font-weight:700;padding:7px 0}.ked-doc-total{background:var(--tint);display:flex;justify-content:space-between;gap:10px;align-items:center;padding:10px;margin:10px 0 15px}.ked-doc-total strong{font-size:19px;color:var(--ink);white-space:nowrap}.ked-doc-total span{font-weight:700}.ked-doc-table{border-collapse:collapse;width:100%;table-layout:fixed;font-size:9px}.ked-doc-table th{background:var(--table);color:#fff;border:1px solid var(--table);padding:6px 2px}.ked-doc-table td{padding:7px 2px;border:1px solid #d8dee8;vertical-align:top;overflow-wrap:anywhere}.ked-doc-table .right{text-align:right}.ked-doc-table .center{text-align:center}.ked-doc-table td.amount{white-space:nowrap}.ked-doc-summary{margin:13px 0 0 auto;max-width:310px;width:65%;font-size:10px}.ked-doc-summary>div{display:flex;justify-content:space-between;gap:10px;padding:4px;border-bottom:1px solid #dee4eb}.ked-doc-summary>div:last-child{background:var(--tint);color:var(--ink);font-size:14px;font-weight:800;padding:8px}.ked-doc-extra{margin:17px 0 0;break-inside:avoid}.ked-doc-extra h4{margin:0 0 5px;color:var(--ink);border-bottom:1px solid #cdd7e1;padding-bottom:4px;font-size:11px}.ked-doc-extra p{margin:0}.ked-doc-foot{margin-top:23px;border-top:1px solid #e2e8ef;padding-top:8px;color:#607083;font-size:9px}.ked-doc-table thead{display:table-header-group}.ked-doc-table tr,.ked-doc-head,.ked-doc-parties,.ked-doc-total,.ked-doc-summary{break-inside:avoid;page-break-inside:avoid}.ked [hidden]{display:none!important}@media(max-width:960px){.ked-layout{grid-template-columns:1fr}.ked-aside-inner{position:static}.ked-preview-scroller{max-height:500px}}@media(max-width:600px){.ked{font-size:13px}.ked-hero{padding:21px 16px}.ked-types{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.ked-types button{padding:9px 3px;font-size:12px}.ked-panel{padding:14px;margin-bottom:12px}.ked-grid{grid-template-columns:1fr}.ked-images{grid-template-columns:1fr}.ked-item-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ked-item-heading{align-items:flex-start;flex-direction:column}.ked-item-buttons{justify-content:flex-start}.ked-controls button{min-width:calc(50% - 8px)}.ked-preview-scroller{padding:8px}.ked-paper{padding:11px;min-width:295px}.ked-doc-title{font-size:19px}.ked-doc-to-name{font-size:13px}.ked-doc-from-name{font-size:11px}.ked-doc-total strong{font-size:16px}.ked-doc-table{font-size:8px}.ked-doc-table td,.ked-doc-table th{padding:5px 1px}.ked-doc-summary{width:75%;font-size:9px}}@media(prefers-reduced-motion:reduce){.ked-progress-track>div{transition:none}}

/* Optional feature-interest poll (not part of the printable document) */
.ked-request{margin:28px 0 17px;padding:23px 20px;border-radius:15px;border:1px solid #c4d9f1;background:linear-gradient(145deg,#f1f7ff,#ffffff);text-align:center;box-shadow:0 4px 15px #1e467810}
.ked-request-icon{font-size:30px;margin-bottom:5px}.ked-request h3{margin:0 0 10px;color:#1c4474;font-size:clamp(17px,2.7vw,21px);line-height:1.5}.ked-request p{max-width:680px;margin:8px auto;font-size:13px;line-height:1.8;color:#425e7a}.ked-request .ked-request-sub{font-weight:700;color:#1e4979}.ked-request-actions{display:flex;justify-content:center;align-items:center;gap:18px;flex-wrap:wrap;margin:18px auto 8px}.ked .ked-request-btn{border:0;border-radius:999px;background:#1665ad;color:#fff;font-weight:800;padding:15px 23px;min-height:52px;box-shadow:0 5px 12px #11549c26;font-size:15px;cursor:pointer;white-space:normal}.ked .ked-request-btn:hover:not(:disabled){background:#104d89}.ked .ked-request-btn:disabled{background:#5c7897;cursor:default;box-shadow:none}.ked-request-count{display:flex;flex-direction:column;text-align:center;min-width:116px;color:#264d78}.ked-request-count strong{font-size:32px;line-height:1.1;font-variant-numeric:tabular-nums}.ked-request-count span{font-size:11px}.ked-request .ked-request-status{font-weight:700;color:#265d85}.ked-request .ked-request-privacy{font-size:11px;color:#677a90;max-width:720px;margin-top:16px}@media(max-width:600px){.ked-request{padding:19px 12px}.ked-request-actions{gap:12px}.ked .ked-request-btn{width:100%}.ked-request-count strong{font-size:30px}}

/* Ver.2.2.0: Print options */
.ked-option-panel .ked-checks{display:flex;gap:14px;flex-wrap:wrap;margin:10px 0 16px}
.ked-option-panel .ked-checks label,.ked .ked-checkline{display:flex;align-items:center;flex-direction:row;gap:7px;font-size:13px;font-weight:700;color:#234767}
.ked-option-panel input[type=checkbox]{width:18px;height:18px;flex:none;accent-color:#2064ab}
.ked input[type=color][data-f=accent]{width:68px;min-width:68px;height:41px;padding:4px;cursor:pointer}
.ked-option-panel .ked-inline{align-items:center}
.ked .ked-sheet{background:var(--paper-bg,#fff)}
.ked .ked-sheet{position:relative;isolation:isolate}
.ked .ked-sheet>.ked-doc-head,.ked .ked-sheet>.ked-doc-parties,.ked .ked-sheet>.ked-doc-subject,.ked .ked-sheet>.ked-doc-total,.ked .ked-sheet>.ked-doc-table,.ked .ked-sheet>.ked-doc-summary,.ked .ked-sheet>.ked-doc-extra,.ked .ked-sheet>.ked-doc-foot,.ked .ked-sheet>.ked-doc-qr{position:relative;z-index:1}
.ked .ked-doc-watermark{position:absolute;z-index:0;top:32%;left:50%;transform:translate(-50%,-50%) rotate(-29deg);font-size:clamp(25px,6vw,64px);font-weight:900;white-space:nowrap;pointer-events:none;opacity:var(--wm-opacity,.09);color:#44556a}
.ked .ked-doc-qr{display:flex;align-items:center;gap:8px;margin:12px 0;break-inside:avoid}
.ked .ked-doc-qr img{width:94px;height:94px;background:white;padding:4px;object-fit:contain}
.ked .ked-doc-qr-label{font-size:9px;overflow-wrap:anywhere;max-width:180px}
.ked .ked-doc-qr-head{justify-content:flex-end}

/* v2.3 — responsive editing workspace. Scoped to prevent theme interference. */
.ked{--ked-ink:#183352;--ked-blue:#1768b2;--ked-border:#dbe5f0;--ked-card:#fff;--ked-muted:#63758c;max-width:1520px!important;width:100%;padding:0 0 16px;line-height:1.55;isolation:isolate}
.ked :where(button,input,select,textarea){font-family:inherit}
.ked .ked-hero{background:linear-gradient(120deg,#103b70 5%,#1768ad 75%,#39a5d5);border-radius:18px;padding:23px 28px;margin-bottom:10px;box-shadow:0 12px 30px #173c6b22}
.ked .ked-hero h2{font-size:clamp(20px,2.2vw,30px);margin:3px 0 4px}.ked .ked-hero p{font-size:13px;opacity:.92}
.ked .ked-notice{background:#fffaf1;border-color:#f0ddad;border-left-color:#eab34f;padding:11px 15px;margin:0 0 15px;border-radius:10px}.ked .ked-notice strong{font-size:14px}.ked .ked-notice p{font-size:11.5px;line-height:1.5;margin:2px 0}
.ked .ked-types{display:flex;gap:8px;padding:5px;background:#e9f0f8;border-radius:13px;margin:0 0 16px}
.ked .ked-types button{min-width:0;flex:1;border:0;background:transparent;border-radius:10px;white-space:nowrap;color:#345776;padding:11px 8px;font-size:13px;transition:background .15s,color .15s,box-shadow .15s}
.ked .ked-types button:hover{background:#d9e8f7}.ked .ked-types button.active{background:#fff;color:#125b9c;box-shadow:0 2px 8px #143c6020}
.ked .ked-workspace-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 13px}.ked .ked-workspace-head>div:first-child{display:flex;flex-direction:column;gap:1px}.ked .ked-workspace-head strong{font-size:21px;color:var(--ked-ink);line-height:1.3}.ked .ked-workspace-head small{font-size:12px;color:var(--ked-muted)}.ked .ked-eyebrow{font-size:9px;font-weight:800;letter-spacing:.16em;color:#3b7ca9}.ked .ked-workspace-actions{display:flex;gap:6px}.ked .ked-workspace-actions button{padding:8px 12px;background:white;border:1px solid var(--ked-border);border-radius:9px;font-size:12px;font-weight:750;color:#346087}
.ked .ked-progress{background:white;border:1px solid var(--ked-border);padding:9px 13px;border-radius:11px;margin:0 0 9px;gap:14px}.ked .ked-progress-track{height:7px}.ked .ked-progress span{white-space:nowrap;font-size:11px;font-weight:700}
.ked .ked-stepbar{display:flex;gap:6px;overflow-x:auto;scrollbar-width:thin;overscroll-behavior-x:contain;padding:3px 1px 11px;margin-bottom:4px}.ked .ked-stepbar button{flex:1;min-width:64px;border:1px solid var(--ked-border);background:#fff;color:#456481;border-radius:100px;padding:7px 10px;font-size:11px;font-weight:700;white-space:nowrap;line-height:1.2}.ked .ked-stepbar button.active{color:white;background:#1768ad;border-color:#1768ad}.ked .ked-stepbar button:focus-visible{outline-offset:1px}
.ked .ked-layout{grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);gap:16px}.ked .ked-panel{padding:0!important;border:1px solid var(--ked-border);border-radius:13px;box-shadow:0 3px 12px #183c5c09;margin-bottom:10px;overflow:hidden;scroll-margin-top:90px}.ked .ked-panel.ked-open{border-color:#b3cfeb;box-shadow:0 5px 20px #12477115}.ked .ked-section-toggle{display:flex!important;width:100%;align-items:center;gap:11px;border:0;border-radius:0;background:#fff;padding:14px 16px;text-align:left;color:#244765;min-height:60px}.ked .ked-section-toggle:hover{background:#f6faff}.ked .ked-panel.ked-open>.ked-section-toggle{border-bottom:1px solid #e6edf5;background:#f7fbff}.ked .ked-section-num{font-size:12px;flex:none;color:#2471b0;background:#e9f4fe;border-radius:8px;padding:6px 7px;font-weight:900}.ked .ked-section-title{font-size:14px;font-weight:800;flex:1}.ked .ked-section-status{font-size:10px;font-weight:700;color:#8192a6}.ked .ked-section-arrow{font-size:23px;line-height:1;transition:transform .15s;color:#657f9c}.ked .ked-open .ked-section-arrow{transform:rotate(180deg)}.ked .ked-panel-body{padding:15px 17px 17px}.ked .ked-panel-body[hidden]{display:none!important}.ked .ked-panel-body>h3,.ked .ked-row-title h3{display:none}.ked .ked-row-title{justify-content:flex-end;margin:0 0 9px}.ked .ked-panel-body .ked-help{font-size:11px;line-height:1.55}.ked .ked-next-btn{display:block;margin:15px 0 0 auto;background:#1768ad;border:1px solid #1768ad;color:white;font-size:12px;font-weight:800;border-radius:9px;padding:10px 16px;min-width:115px}
.ked .ked-grid{gap:10px 12px}.ked label{font-size:11px;color:#3b5877;gap:4px}.ked input:not([type=file]):not([type=range]),.ked textarea,.ked select{min-height:39px;font-size:13px;padding:9px 10px;background:#fff;border-radius:8px}.ked textarea{min-height:65px}.ked .ked-inline>.ked-mini{min-width:76px;padding:6px 7px}.ked .ked-images{gap:10px}.ked .ked-images>div{background:#f8fbfe}.ked .ked-option-panel .ked-checks{gap:10px}.ked .ked-checks label{font-size:12px}
.ked .ked-item{border-radius:11px;background:#f8fbff;padding:11px 12px;margin:8px 0;border-color:#d8e8f5}.ked .ked-item-heading{margin-bottom:8px}.ked .ked-item-heading b{font-size:12px}.ked .ked-item-buttons button{border-radius:7px;padding:5px 8px;min-height:29px}.ked .ked-item>label{margin-bottom:7px}.ked .ked-item-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ked .ked-item-sub{font-size:11px}.ked .ked-mini{font-size:11px;min-height:32px}.ked .ked-templates{gap:6px}.ked .ked-templates button{border-radius:20px}
.ked .ked-controls{gap:7px}.ked .ked-controls button{border-radius:9px;min-height:41px;font-size:12px}.ked .ked-editor>.ked-controls{padding:10px;background:#fff;border:1px solid var(--ked-border);border-radius:12px}.ked .ked-editor>.ked-controls button{min-width:calc(33.33% - 9px)}.ked .ked-editor>.ked-controls .ked-primary{flex:2}
.ked .ked-aside-inner{top:12px;padding:12px;border-radius:14px;box-shadow:0 8px 26px #1b3c5d12;max-height:calc(100vh - 30px);display:flex;flex-direction:column}.ked .ked-preview-heading h3{font-size:15px;margin:0}.ked .ked-preview-heading{padding:4px 2px 10px}.ked .ked-preview-scroller{min-height:0;flex:1;max-height:none;overflow:auto;padding:12px;background:linear-gradient(130deg,#eef3f8,#dfe9f2)}.ked .ked-paper{min-height:490px;max-width:100%;min-width:0;width:100%;padding:clamp(12px,1.7vw,24px)}.ked .ked-total{padding:9px 4px 3px}.ked .ked-total strong{font-size:clamp(18px,2vw,24px)}.ked .ked-filename{font-size:10px;margin-bottom:3px}.ked .ked-aside .ked-controls{margin-top:8px}
.ked .ked-sheet .ked-doc-head{gap:7px}.ked .ked-sheet .ked-doc-title{font-size:clamp(17px,2.1vw,26px)}.ked .ked-sheet .ked-doc-meta{min-width:0;flex:1}.ked .ked-sheet .ked-doc-to-name{font-size:clamp(11px,1.2vw,15px)}.ked .ked-sheet .ked-doc-total strong{font-size:clamp(14px,1.6vw,19px)}.ked .ked-sheet .ked-doc-table{font-size:clamp(7px,.71vw,10px)}
.ked .ked-mobile-dock{display:none}.ked .ked-request{margin-top:18px;padding:20px}.ked .ked-footer{margin:10px 0}
@media (min-width:1150px){.ked .ked-layout{grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr)}.ked .ked-aside-inner{top:16px}}
@media (max-width:1020px){.ked .ked-layout{grid-template-columns:minmax(0,1fr)}.ked .ked-aside{display:none}.ked .ked-editor{max-width:820px;margin:0 auto;width:100%}.ked .ked-mobile-dock{display:flex;align-items:center;gap:8px;position:sticky;bottom:0;z-index:50;background:#fff;border:1px solid #cbdce9;border-radius:13px;padding:9px 11px;margin:13px 0;box-shadow:0 -5px 25px #133c6025}.ked .ked-dock-sum{min-width:0;flex:1;display:flex;flex-direction:column;gap:0}.ked .ked-dock-sum small{font-size:10px;color:#6c8195}.ked .ked-dock-sum strong{color:#155c9d;font-size:18px;font-variant-numeric:tabular-nums;white-space:nowrap}.ked .ked-mobile-dock button{border-radius:9px;font-size:12px;font-weight:800;border:1px solid #a9c6dd;background:#f0f7ff;color:#15528a;min-height:43px;padding:6px 12px;white-space:nowrap}.ked .ked-mobile-dock .ked-dock-print{background:#1768ad;color:white;border-color:#1768ad}.ked .ked-modal[data-modal=zoom]{width:min(850px,96vw)}.ked .ked-zoom-area .ked-sheet{width:100%;min-height:0;max-width:100%;padding:16px}.ked .ked-zoom-area{padding:10px}}
@media (max-width:600px){.ked{width:100%!important;max-width:100%!important;font-size:13px;overflow:visible}.ked .ked-hero{padding:18px 15px;border-radius:12px}.ked .ked-hero h2{font-size:21px}.ked .ked-hero p{font-size:11.5px}.ked .ked-notice{padding:10px 12px}.ked .ked-notice strong{font-size:13px}.ked .ked-notice p{font-size:11px}.ked .ked-types{gap:4px;overflow-x:auto;border-radius:10px;scrollbar-width:thin;padding:4px}.ked .ked-types button{font-size:11px;padding:9px 8px;min-width:66px;flex:1 0 auto}.ked .ked-workspace-head{align-items:flex-end;gap:6px}.ked .ked-workspace-head strong{font-size:17px}.ked .ked-workspace-head small{font-size:10px}.ked .ked-workspace-actions{gap:4px}.ked .ked-workspace-actions button{font-size:10px;padding:8px 7px}.ked .ked-progress{padding:7px 10px}.ked .ked-stepbar button{min-width:62px}.ked .ked-panel-body{padding:12px}.ked .ked-section-toggle{min-height:54px;padding:12px}.ked .ked-section-title{font-size:13px}.ked .ked-section-status{font-size:9px}.ked .ked-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 8px}.ked .ked-grid>label{grid-column:span 1}.ked .ked-grid>label.ked-wide{grid-column:1/-1}.ked .ked-grid>label:has(textarea){grid-column:1/-1}.ked .ked-grid input,.ked .ked-grid select{min-width:0}.ked .ked-grid .ked-inline{flex-wrap:wrap}.ked .ked-inline .ked-mini{min-height:35px}.ked .ked-item-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ked .ked-item-heading{align-items:center;flex-direction:row;gap:5px}.ked .ked-item-buttons{gap:3px}.ked .ked-item-buttons button{padding:4px 6px;font-size:10px;min-height:28px}.ked .ked-images{grid-template-columns:1fr}.ked .ked-editor>.ked-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:8px}.ked .ked-editor>.ked-controls button{min-width:0}.ked .ked-editor>.ked-controls .ked-primary{grid-column:1/-1}.ked .ked-mobile-dock{margin:8px -4px 12px;border-radius:12px;padding:7px;gap:5px}.ked .ked-dock-sum strong{font-size:16px}.ked .ked-mobile-dock button{padding:7px 9px;font-size:11px;min-height:41px}.ked .ked-modal[data-modal=zoom]{width:98vw;max-height:94dvh}.ked .ked-zoom-area .ked-sheet{padding:10px;font-size:9px}.ked .ked-zoom-area .ked-doc-title{font-size:19px}.ked .ked-zoom-area .ked-doc-table{font-size:8px}.ked .ked-zoom-area .ked-doc-total strong{font-size:15px}.ked .ked-request{padding:16px 12px;margin-top:20px}.ked .ked-request p{font-size:12px}}
@media(max-width:350px){.ked .ked-grid{grid-template-columns:1fr}.ked .ked-mobile-dock .ked-dock-sum strong{font-size:13px}.ked .ked-mobile-dock button{padding:6px 7px;font-size:10px}.ked .ked-section-status{display:none}}
@media (prefers-reduced-motion:reduce){.ked .ked-section-arrow{transition:none}}
/* Keep the actions available while editing on phones/tablets. */
@media(max-width:1020px){.ked{padding-bottom:94px}.ked .ked-mobile-dock{position:fixed;bottom:max(6px,env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);width:min(760px,calc(100vw - 18px));margin:0;z-index:9990;border-radius:14px;box-shadow:0 7px 34px #17395744}}
@media(max-width:600px){.ked .ked-mobile-dock{width:calc(100vw - 12px);bottom:max(4px,env(safe-area-inset-bottom,0px));padding:8px 9px}}
/* 2.5.0 — Desktop canvas breakthrough, 12 printable templates */
@media (min-width:1100px) {
  .ked {
    position:relative;
    left:50%;
    transform:translateX(-50%);
    margin-left:0!important;
    margin-right:0!important;
    width:min(1660px, calc(100vw - 56px))!important;
    max-width:none!important;
    padding:0 8px 24px;
  }
  .ked .ked-layout {grid-template-columns:minmax(0,1.12fr) minmax(395px,.88fr);gap:22px;}
  .ked .ked-panel-body {padding:20px 22px 22px;}
  .ked .ked-grid {gap:12px 16px;}
  .ked .ked-editor>.ked-controls {gap:8px;}
  .ked .ked-aside-inner {top:15px;max-height:calc(100vh - 28px);}
  .ked .ked-preview-scroller {min-height:260px;}
}
@media(min-width:1450px){.ked .ked-layout{grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr)}}
.ked .ked-saves {border:1px solid #caddec;border-radius:16px;background:linear-gradient(125deg,#f2f8ff,#fff);padding:15px 18px;margin:12px 0 16px;box-shadow:0 5px 20px #12519209;}
.ked .ked-saves-intro {display:flex;align-items:center;gap:10px;margin-bottom:11px;min-width:0;}
.ked .ked-saves-icon{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:11px;background:#e2eefc;color:#135a9f;font-size:24px;}
.ked .ked-saves-intro>div{flex:1;min-width:0;}
.ked .ked-saves-intro strong{color:#174776;font-size:15px;}
.ked .ked-saves-intro p{margin:1px 0 0;color:#657a8f;font-size:11px;}
.ked .ked-save-state{font-size:11px;font-weight:800;white-space:nowrap;color:#375d7d;background:#e2ecf7;border:1px solid #cbdce9;padding:6px 10px;border-radius:40px;}
.ked .ked-save-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;}
.ked .ked-save-actions button{border:1px solid #b9cce1;background:#fff;color:#1c5387;border-radius:9px;font-size:12px;font-weight:800;min-height:41px;padding:8px 14px;line-height:1.25;}
.ked .ked-save-actions .ked-save-primary,.ked .ked-save-primary{background:#1169ae!important;color:#fff!important;border-color:#1169ae!important;}
.ked .ked-save-actions button:hover{filter:brightness(.975);border-color:#6a9ac9;}
.ked .ked-save-message{font-size:12px;color:#316d48;min-height:0;}
.ked .ked-save-message:not(:empty){margin-top:8px;padding:7px 10px;border-radius:8px;background:#eaf8ef;}
.ked .ked-save-message[data-status="error"]{background:#fff1ef;color:#a42727;}
.ked .ked-template-picker{padding:12px;border:1px solid #e1eaf3;border-radius:12px;background:#f8fbfe;}
.ked .ked-template-picker>strong{font-size:12px;color:#20496f;display:block;}
.ked .ked-template-picker>p{font-size:11px;color:#647a8e;margin:2px 0 10px;}
.ked .ked-theme-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;}
.ked .ked-theme-tile{border:2px solid #e1e8f1;border-radius:10px;min-width:0;background:#fff;padding:7px 6px 8px;display:flex;align-items:center;gap:5px;flex-direction:column;color:#385b78;box-shadow:0 3px 9px #18355206;font-size:10px;font-weight:800;line-height:1.25;}
.ked .ked-theme-tile:hover{border-color:#8bb6db;transform:translateY(-1px);}
.ked .ked-theme-tile.active{border-color:#1675b9;background:#eaf6ff;color:#14598d;box-shadow:0 0 0 2px #1675b915;}
.ked .ked-theme-thumb{position:relative;width:min(100%,95px);height:74px;border-radius:4px;border:1px solid #dce4ec;background:#fff;box-shadow:0 2px 6px #182b4112;display:block;padding:8px;overflow:hidden;}
.ked .ked-theme-thumb::before{content:"";display:block;height:9px;background:var(--swatch);border-radius:2px;margin-bottom:8px;}
.ked .ked-theme-thumb i{display:block;background:color-mix(in srgb,var(--swatch) 18%, white);height:5px;margin:4px 0;border-radius:2px;}
.ked .ked-theme-thumb i:nth-child(2){width:70%;}.ked .ked-theme-thumb i:nth-child(3){width:86%;background:var(--swatch);height:10px;opacity:.76;}.ked .ked-theme-thumb i:nth-child(4){width:95%;}.ked .ked-theme-thumb i:nth-child(5){width:80%;}
.ked .ked-storage-modal{width:min(850px,96vw);}
.ked .ked-storage-lead{font-size:12px;color:#536d84;padding:0 17px;line-height:1.6;}
.ked .ked-stored-list{padding:4px 17px 18px;max-height:55vh;overflow:auto;}
.ked .ked-stored-entry{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:13px 6px;border-bottom:1px solid #e3eaf2;}
.ked .ked-stored-info{display:flex;flex-direction:column;gap:4px;min-width:0;}
.ked .ked-stored-info strong{font-size:13px;overflow-wrap:anywhere;}
.ked .ked-stored-info span{font-size:11px;color:#627890;}
.ked .ked-stored-actions{display:flex;gap:6px;flex:none;flex-wrap:wrap;}
.ked .ked-stored-actions button{min-height:35px;padding:7px 11px;font-size:11px;}
.ked .ked-stored-actions button[data-saved-action="load"]{background:#1469ac;color:#fff;border-color:#1469ac;}
.ked .ked-stored-actions button[data-saved-action="delete"]{color:#ad3345;background:#fff6f5;border-color:#efc9cd;}
.ked .ked-no-drafts{padding:24px 12px;text-align:center;background:#f3f7fb;border-radius:10px;font-size:13px;color:#66798b;}
.ked .ked-storage-foot{padding:12px 17px;border-top:1px solid #e1e8f1;display:flex;gap:10px;flex-wrap:wrap;}
/* Layout varieties are used both in preview and in the print document */
.ked .ked-sheet[data-theme="corporate"] .ked-doc-head{background:var(--ink);color:white;padding:14px;border-bottom:0;border-radius:4px;}
.ked .ked-sheet[data-theme="corporate"] .ked-doc-title{color:#fff;letter-spacing:.06em;}
.ked .ked-sheet[data-theme="corporate"] .ked-doc-total{border-left:5px solid var(--ink);}
.ked .ked-sheet[data-theme="premium"] .ked-doc-head{border-bottom:5px double var(--ink);}
.ked .ked-sheet[data-theme="premium"] .ked-doc-title{font-family:Georgia,'Yu Mincho',serif;font-weight:700;letter-spacing:.16em;}
.ked .ked-sheet[data-theme="premium"] .ked-doc-total{border:1px solid var(--ink);background:transparent;}
.ked .ked-sheet[data-theme="minimal"] .ked-doc-head{border-bottom:1px solid var(--ink);}
.ked .ked-sheet[data-theme="minimal"] .ked-doc-table th{background:#f7f7f7;color:var(--ink);border-color:#c7cdd4;}
.ked .ked-sheet[data-theme="minimal"] .ked-doc-total{background:transparent;border-top:1px solid var(--ink);border-bottom:1px solid var(--ink);}
.ked .ked-sheet[data-theme="sakura"] .ked-doc-head{border-bottom:3px solid var(--ink);}
.ked .ked-sheet[data-theme="sakura"] .ked-doc-total{border-radius:9px;}
.ked .ked-sheet[data-theme="sakura"] .ked-doc-table th{border-color:#e3c6d1;}
.ked .ked-sheet[data-theme="ocean"] .ked-doc-head{background:linear-gradient(110deg,var(--ink),#10b4d1);color:#fff;padding:13px;border:0;border-radius:6px;}
.ked .ked-sheet[data-theme="ocean"] .ked-doc-title{color:#fff;}
.ked .ked-sheet[data-theme="emerald"] .ked-doc-head{border-bottom:4px solid var(--ink);}
.ked .ked-sheet[data-theme="emerald"] .ked-doc-total{border-left:6px solid var(--ink);background:#f0faf5;}
.ked .ked-sheet[data-theme="slate"] .ked-doc-head{border-bottom:1px solid var(--ink);}
.ked .ked-sheet[data-theme="slate"] .ked-doc-title{text-transform:uppercase;letter-spacing:.2em;}
.ked .ked-sheet[data-theme="slate"] .ked-doc-table th{background:#e4e9f0;color:#253449;border-color:#ccd5df;}
.ked .ked-sheet[data-theme="creative"] .ked-doc-head{border-bottom:0;border-left:8px solid var(--ink);padding:12px 14px;background:#fff4ed;}
.ked .ked-sheet[data-theme="creative"] .ked-doc-total{background:linear-gradient(90deg,#ffefe3,#fff);border-left:5px solid var(--ink);}
.ked .ked-sheet[data-theme="modern"] .ked-doc-total{border-radius:8px;}
.ked .ked-sheet[data-theme="mono"] .ked-doc-table th{background:#333;}
.ked .ked-sheet[data-theme="warm"] .ked-doc-head{border-bottom-style:double;border-bottom-width:5px;}
@media(max-width:1099px){.ked .ked-theme-gallery{grid-template-columns:repeat(4,minmax(0,1fr));}}
@media(max-width:600px){
  .ked .ked-saves{padding:12px 11px;}
  .ked .ked-saves-intro{align-items:start;gap:7px;}
  .ked .ked-saves-icon{width:31px;height:31px;}
  .ked .ked-saves-intro strong{font-size:13px;}
  .ked .ked-saves-intro p{font-size:10px;}
  .ked .ked-save-state{font-size:9px;max-width:115px;white-space:normal;text-align:center;}
  .ked .ked-save-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;}
  .ked .ked-save-actions button{font-size:11px;min-width:0;min-height:39px;padding:7px 5px;}
  .ked .ked-theme-gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;}
  .ked .ked-theme-thumb{height:65px;}
  .ked .ked-stored-entry{flex-direction:column;align-items:stretch;gap:9px;}
  .ked .ked-stored-actions{justify-content:flex-start;}
  .ked .ked-stored-actions button{flex:1;}
  .ked .ked-storage-foot button{flex:1;}
}
@media(max-width:350px){.ked .ked-theme-gallery{grid-template-columns:repeat(2,minmax(0,1fr));}}

.ked .ked-notice-detail{margin-top:6px;border-top:1px solid #ead7b3;padding-top:5px;}
.ked .ked-notice-detail summary{cursor:pointer;font-size:11px;color:#825916;font-weight:800;}
.ked .ked-notice-detail p{font-size:11px;}
@media(max-width:1020px){
  .ked .ked-mobile-dock{opacity:0;pointer-events:none;transform:translate(-50%,115%);transition:opacity .2s,transform .2s;}
  .ked .ked-mobile-dock.ked-dock-visible{opacity:1;pointer-events:auto;transform:translate(-50%,0);}
}
@media(prefers-reduced-motion:reduce){.ked .ked-mobile-dock{transition:none!important;}}


/* v2.6.0: public usage summary (counts are actions, not unique users) */
.ked .ked-public-usage{margin:12px 0 18px;padding:15px 17px;border:1px solid #c7deee;border-radius:16px;background:linear-gradient(120deg,#f1f8ff 0%,#fff 80%);box-shadow:0 4px 18px #164d7b0c;color:#1a3654;min-width:0}
.ked .ked-public-usage-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}
.ked .ked-public-usage-kicker{display:block;font-size:10px;letter-spacing:.09em;font-weight:800;color:#20719d;margin-bottom:3px}
.ked .ked-public-usage-head h3{margin:0!important;padding:0!important;border:0!important;font-size:16px!important;line-height:1.4!important;color:#153958!important;font-weight:800!important}
.ked .ked-public-usage-refresh{flex:none;border:1px solid #bad5e9;background:#fff;color:#175f91;padding:9px 12px;border-radius:9px;font-size:11px;font-weight:800;line-height:1.3;min-height:35px;cursor:pointer}
.ked .ked-public-usage-refresh:focus-visible{outline:3px solid #278acb;outline-offset:2px}
.ked .ked-public-usage-refresh:disabled{cursor:wait;opacity:.6}
.ked .ked-public-usage-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.ked .ked-public-usage-metric{min-width:0;padding:12px 13px;border-radius:11px;background:#fff;border:1px solid #e2eaf2;display:flex;flex-direction:column;align-items:flex-start;gap:5px}
.ked .ked-public-usage-metric span{font-size:11px;color:#5c7184;font-weight:700}
.ked .ked-public-usage-metric strong{display:inline;font-size:clamp(20px,2.2vw,30px);line-height:1.1;font-weight:850;color:#164d78;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.ked .ked-public-usage-metric small{font-size:10px;color:#5c7184;line-height:1}
.ked .ked-public-usage-main{background:#1768a7;border-color:#1768a7}
.ked .ked-public-usage-main span,.ked .ked-public-usage-main strong,.ked .ked-public-usage-main small{color:#fff}
.ked .ked-public-usage-caption{margin:10px 0 2px!important;font-size:10px!important;color:#657a8d;line-height:1.7!important}
.ked .ked-public-usage-status{font-size:10px!important;color:#5d7992;margin:4px 0 0!important;min-height:15px}
@media(max-width:650px){
 .ked .ked-public-usage{padding:12px 11px;margin:10px 0 14px;border-radius:13px}
 .ked .ked-public-usage-head{align-items:flex-start;gap:8px}
 .ked .ked-public-usage-head h3{font-size:13px!important}
 .ked .ked-public-usage-refresh{min-height:34px;padding:7px 8px;font-size:10px;max-width:113px}
 .ked .ked-public-usage-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .ked .ked-public-usage-metric{padding:10px 11px;gap:4px}
 .ked .ked-public-usage-metric span{font-size:10px}
 .ked .ked-public-usage-metric strong{font-size:24px}
 .ked .ked-public-usage-caption{font-size:9px!important}
}
