*,:before,:after{box-sizing:border-box}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--background:#fff;--foreground:#20242b;--muted:#737b87;--border:#e5e7eb;--selected:#eaeef3;--hover:#f3f5f7;--danger:#dc2626;font-size:14px}:root[data-color-mode=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--background:#181b20;--foreground:#e5e7eb;--muted:#9ca3af;--border:#30353e;--selected:#383f4a;--hover:#282e37;--danger:#f87171}@media (prefers-color-scheme:dark){:root[data-color-mode=system]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--background:#181b20;--foreground:#e5e7eb;--muted:#9ca3af;--border:#30353e;--selected:#383f4a;--hover:#282e37;--danger:#f87171}}html,body{width:100%;min-height:100%;margin:0}body{background:var(--background);color:var(--foreground);font-family:system-ui,sans-serif}button,input,select{font:inherit}.design-screen{width:100%;min-height:100vh}.header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:24px;width:100%;height:40px;padding:0 24px;display:flex}.header-title{white-space:nowrap;margin:0;font-size:20px;font-weight:600;line-height:1.2}.header-actions{align-items:center;gap:24px;margin-left:auto;display:flex}.color-modes{align-items:center;gap:2px;display:flex}.icon-button{width:32px;height:32px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;padding:6px;display:inline-flex}.color-modes .icon-button:hover{background:var(--hover);color:var(--foreground)}.color-modes .icon-button[aria-pressed=true]{background:var(--selected);color:var(--foreground)}.icon-button:focus-visible{outline:2px solid var(--foreground);outline-offset:3px}.icon{fill:none;stroke:currentColor;stroke-width:1.7px;stroke-linecap:round;stroke-linejoin:round;width:20px;height:20px}.api-key{white-space:nowrap;align-items:center;gap:8px;display:flex}.api-key .icon{color:var(--muted)}.workspace{height:calc(100vh - 40px);min-height:500px;display:flex}.side-menu{border-right:1px solid var(--border);flex-direction:column;flex:0 0 48px;align-items:center;gap:4px;padding:8px 0;display:flex}.menu-divider{border:0;border-top:1px solid var(--border);width:28px;margin:4px 0}.side-menu>.screen-links,.side-menu>.report-entry{width:100%;margin-top:auto}.screen-links{flex-direction:column;gap:4px;width:100%;display:flex}.side-menu .screen-links .icon-button{border-radius:0;width:100%;height:32px}.screen-links .icon{width:20px;height:20px}.side-menu .screen-links [aria-current=page],.side-menu .screen-links [aria-current=page]:hover{background:var(--background);color:var(--foreground)}.side-menu:has(.screen-links){background:var(--selected);border-right:0}.side-menu .element-button[aria-pressed=true]{background:var(--selected);color:var(--foreground)}.side-menu .element-button{cursor:grab}.side-menu .icon-button:hover{background:var(--hover);color:var(--foreground)}.editor-area{flex-direction:column;flex:1;min-width:0;display:flex;position:relative;overflow:hidden}.canvas-viewport{background:var(--hover);flex:1;justify-content:flex-start;align-items:flex-start;min-height:0;padding:24px;display:flex;overflow:auto}.paper-canvas{background:#fff;flex-shrink:0;width:1122.52px;height:793.701px;margin:auto;display:block;box-shadow:0 2px 12px #00000026}.page-toolbar{border-bottom:1px solid var(--border);white-space:nowrap;flex-shrink:0;align-items:center;gap:12px;height:40px;padding:0 12px;display:flex}.selection-toolbar{border-bottom:1px solid var(--border);flex-shrink:0;align-items:center;gap:4px;height:40px;padding:0 12px;display:flex}.selection-toolbar[hidden]{display:none}.selection-toolbar .toolbar-divider{margin:0 6px}.selection-toolbar .icon-button:hover:not(:disabled),.selection-toolbar .icon-button[aria-pressed=true]{background:var(--selected);color:var(--foreground)}.selection-toolbar .icon-button:disabled{opacity:.3;cursor:default}.alignment-tools{align-items:center;gap:2px;display:flex}.editor-area.has-selection .selection-toolbar{margin-right:320px}.page-toolbar input,.page-toolbar select{border:1px solid var(--border);background:var(--background);height:28px;color:var(--foreground);border-radius:4px;padding:0 6px;font-size:14px}.page-toolbar input[aria-invalid=true]{border-color:var(--danger)}.dimension-input,.font-size-input{width:64px}.toolbar-divider{border-left:1px solid var(--border);height:20px}.page-toolbar .icon-button:hover,.font-weight[aria-pressed=true]{background:var(--selected);color:var(--foreground)}.color-control{align-items:center;gap:6px;display:inline-flex}.page-toolbar .color-swatch{cursor:pointer;width:28px;padding:2px}.hex-input{width:88px}.property-panel{z-index:2;border-left:1px solid var(--border);background:var(--background);visibility:hidden;flex-direction:column;width:320px;max-width:100%;transition:transform .18s ease-out,visibility .18s;display:flex;position:absolute;top:40px;bottom:0;right:0;transform:translate(100%);box-shadow:-4px 0 16px #0000000c}.property-panel.is-open{visibility:visible;transform:translate(0)}.property-heading{border-bottom:1px solid var(--border);flex-shrink:0;justify-content:space-between;align-items:center;height:40px;padding:0 12px;display:flex}.property-heading h2{margin:0;font-size:14px;font-weight:600}.property-heading .icon-button:hover{background:var(--hover)}.property-form{padding:0 12px 12px;overflow-y:auto}.property-section{border:0;border-bottom:1px solid var(--border);margin:0;padding:12px 0}.property-section h3,.property-section summary{color:var(--muted);margin:0 0 10px;font-size:12px;font-weight:600}.property-section summary{cursor:pointer}.property-row{grid-template-columns:94px minmax(0,1fr);align-items:start;gap:8px;margin:8px 0;display:grid}.property-label{color:var(--muted);padding-top:6px;font-size:12px}.property-value{min-width:0}.property-entry{align-items:center;gap:6px;display:flex}.property-entry>input:not([type=checkbox]):not([type=color]),.property-entry>select{border:1px solid var(--border);background:var(--background);width:100%;min-width:0;height:28px;color:var(--foreground);border-radius:4px;padding:0 6px}.property-entry>input[type=color]{border:1px solid var(--border);background:0 0;border-radius:4px;flex-shrink:0;width:26px;height:28px;padding:2px}.property-entry>input[type=checkbox]{accent-color:#3b82f6;flex-shrink:0;margin:0}.property-entry :disabled{opacity:.45}.property-error{color:var(--danger);margin:4px 0 0;font-size:12px}.property-error:empty{display:none}.child-button{border:1px solid var(--border);width:100%;color:var(--foreground);text-align:left;cursor:pointer;background:0 0;border-radius:4px;margin-top:4px;padding:6px 8px;display:block}.layers-button[aria-expanded=true]{background:var(--selected);color:var(--foreground)}.table-columns-heading,.table-column-heading{align-items:center;gap:4px;display:flex}.table-columns-heading{color:var(--muted);justify-content:space-between;margin-top:12px;font-size:12px}.property-section .table-column-heading{cursor:grab;min-height:32px;margin:0;position:relative}.table-column-heading>span{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.table-column-heading .icon-button,.table-columns-heading .icon-button{width:26px;height:26px;padding:4px}.table-column-heading .icon-button:hover,.table-columns-heading .icon-button:hover{background:var(--hover)}.table-column-heading.is-dragging{opacity:.4}.table-column-heading.drop-before{box-shadow:0 -2px #3b82f6}.table-column-heading.drop-after{box-shadow:0 2px #3b82f6}.layer-list{margin:0;padding:0;list-style:none}.layer-list .layer-list{border-left:1px solid var(--border);margin-left:10px;padding-left:16px}.layer-row{width:100%;min-height:34px;color:var(--foreground);text-align:left;cursor:grab;background:0 0;border:0;border-radius:4px;align-items:center;gap:8px;padding:5px 6px;display:flex;position:relative}.layer-row:hover{background:var(--hover)}.layer-row[aria-pressed=true]{background:var(--selected)}.layer-row.is-dragging{opacity:.4}.layer-row.drop-before:before,.layer-row.drop-after:after{content:"";background:#3b82f6;height:2px;position:absolute;left:0;right:0}.layer-row.drop-before:before{top:0}.layer-row.drop-after:after{bottom:0}.layer-handle{color:var(--muted);flex-shrink:0;display:flex}.layer-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.layer-order-hint{color:var(--muted);margin:10px 0;font-size:12px}.child-button:hover{background:var(--hover)}.paper-canvas{cursor:default}@media (prefers-reduced-motion:reduce){.property-panel{transition:none}}.logout{color:var(--danger)}html,body,#root{height:100%;overflow:hidden}.studio{width:100%;height:100%;margin:0;padding:0}.studio:not(.is-login){flex-direction:column;min-height:0;display:flex}.studio>.header{flex-shrink:0}.editor-main{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex}.editor-area{flex:1;min-height:0;position:relative}.editor-viewport{background:var(--hover);padding:0;position:absolute;inset:0;overflow:auto}.editor-viewport[data-pan=true]{cursor:grab}.editor-viewport[data-pan=true]:active{cursor:grabbing}.selection-toolbar{z-index:2;position:absolute;top:0;left:0;right:0}.editor-area.has-panel .selection-toolbar{right:320px}.property-panel{z-index:3;top:0}.property-heading{justify-content:space-between;align-items:center;height:40px;padding:0 12px;display:flex}.property-heading h2{margin:0;font-size:14px}.property-form{flex:1;min-height:0;padding:0 12px 12px;overflow-y:auto}.property-section{border-bottom:1px solid var(--border);padding:12px 0}.property-section h3{margin:0 0 10px;font-size:12px}.property-field{margin:8px 0}.property-controls{grid-template-columns:94px minmax(0,1fr);gap:8px;font-size:12px;display:grid}.property-controls>span{padding-top:6px}.property-entry{gap:6px;min-width:0;display:flex}.property-entry input:not([type=checkbox]),.property-entry select{border:1px solid var(--border);background:var(--background);width:100%;min-width:0;height:28px;color:var(--foreground);border-radius:4px;padding:0 6px}.property-entry input:disabled,.property-entry select:disabled{opacity:.45}.property-toggle{color:var(--muted);flex-shrink:0;align-items:center;gap:3px;font-size:10px;display:flex}.property-entry [aria-invalid=true]{border-color:var(--danger)}.table-part,.table-column{border:1px solid var(--border);border-radius:4px;margin:8px 0}.table-part>summary,.table-column>summary{cursor:pointer;min-height:32px;padding:3px 6px;font-size:12px}.table-part>summary .icon-button,.table-column>summary .icon-button{width:26px;height:26px;padding:4px}.table-part .property-section,.table-column .property-section{padding:12px 6px}.page-toolbar{white-space:nowrap;flex-shrink:0;align-items:center;gap:12px;height:40px;padding:0 12px;display:flex;overflow-x:auto}.page-toolbar label{align-items:center;gap:6px;display:flex}.page-toolbar .property-field{margin:0}.page-toolbar .property-controls{align-items:center;gap:6px;display:flex}.page-toolbar .property-controls>span{padding:0}.page-toolbar .property-controls input{width:64px}.page-toolbar .property-controls select{width:100px}:is(.page-toolbar .property-field:has([aria-label=フォントサイズ（pt）]) .property-controls>span,.page-toolbar .property-field:has([aria-label=文字色のHEX値]) .property-controls>span){display:none}.page-toolbar [aria-label=文字色のHEX値]{width:88px!important}.page-toolbar [aria-label=フォントサイズ（pt）]{width:64px!important}.page-toolbar input{border:1px solid var(--border);background:var(--background);width:64px;height:28px;color:var(--foreground);border-radius:4px;padding:0 6px}.page-toolbar select{background:var(--background);height:28px;color:var(--foreground);border:1px solid var(--border);border-radius:4px}.page-color{border:1px solid var(--border);flex-shrink:0;width:28px;height:28px}.fit-button{color:var(--muted);cursor:pointer;background:0 0;border:0;font-size:10px}.canvas-text-input{z-index:4;margin:0;padding:0;position:absolute}.drop-before{border-top:2px solid #3b82f6!important}.drop-after{border-bottom:2px solid #3b82f6!important}.studio.is-login{overflow:auto}.login-screen{background:var(--hover);place-items:center;min-height:100%;padding:24px;display:grid}.login-box{border:1px solid var(--border);background:var(--background);border-radius:4px;width:100%;max-width:360px;padding:24px}.login-box h1{text-align:center;margin:0 0 24px;font-size:20px;font-weight:600;line-height:1.2}.login-box form{gap:16px;display:grid}.login-key-field{gap:6px;display:grid}.login-key-field>span{color:var(--muted);font-size:12px}.login-key-field input{border:1px solid var(--border);background:var(--background);width:100%;min-width:0;height:36px;color:var(--foreground);border-radius:4px;padding:0 10px}.remember-key{cursor:pointer;align-items:center;gap:8px;display:flex}.remember-key input{accent-color:#427bc4;margin:0}.login-submit{color:#fff;cursor:pointer;background:#427bc4;border:0;border-radius:4px;height:36px;transition:background-color .12s}.login-submit:hover:not(:disabled){background:#356cb3}.login-submit:active:not(:disabled){background:#2b5e9f}.login-box :focus-visible{outline-offset:3px;outline:2px solid #427bc4}.login-box :disabled{opacity:.6;cursor:default}.login-box p{overflow-wrap:anywhere;margin:16px 0 0}.auth-notice{flex-shrink:0;max-height:25%;overflow:auto}.recovery-screen{padding:24px}.api-feedback{flex:0 auto;min-height:0;max-height:40%;padding:0 16px;overflow:auto}.api-feedback .notification h2{position:sticky;top:0}.api-loading{z-index:1000;background:var(--background);color:var(--foreground);pointer-events:none;border-radius:8px;align-items:center;gap:12px;padding:16px 24px;display:flex;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 2px 12px #0006}.api-spinner{border:3px solid;border-right-color:#0000;border-radius:50%;width:24px;height:24px;animation:.8s linear infinite api-spin}@keyframes api-spin{to{transform:rotate(360deg)}}.workspace-content{flex-direction:column;flex:1;min-height:0;display:flex}.workspace-content>.workspace{height:100%;min-height:0}.save-feedback{flex-direction:column;flex:0 auto;min-height:0;max-height:40%;padding:0 16px;display:flex;overflow:hidden}.feedback-problems{overflow-wrap:anywhere;-webkit-user-select:text;user-select:text;min-height:0;overflow:auto}.logout{color:var(--danger);background:0 0!important}.property-color{border:1px solid var(--border);border-radius:4px;flex-shrink:0;width:28px;height:28px;display:inline-block}.selection-toolbar{background:var(--background)}.page-item{align-items:center;gap:6px;display:flex}.editor-notice{flex:0 auto;min-height:32px;max-height:40%;overflow:auto}.page-toolbar .property-controls input[aria-label=W],.page-toolbar .property-controls input[aria-label=H]{width:64px}.page-toolbar .property-controls select[aria-label=フォント]{width:180px}.page-toolbar input[aria-label=グリッド幅（mm）]{width:48px}.table-part>.table-columns-heading{margin-top:0}.table-columns-heading>span{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.table-columns-heading>.icon-button,.table-column-heading>.icon-button{flex-shrink:0}.notification{overflow-wrap:anywhere;color:#fff;text-align:left;white-space:normal;-webkit-user-select:text;user-select:text;border:1px solid;border-radius:4px;padding:8px 12px;font-size:12px;line-height:16px}.notification h2{background:inherit;margin:0;padding:0;font-size:12px;font-weight:600;line-height:16px}.notification ul{margin:6px 0 0;padding:0 0 0 18px;list-style:outside}.notification li+li{margin-top:4px}.notification[data-status=Error]{background:#b91c1c;border-color:#991b1b}.notification[data-status=warnig]{background:#854d0e;border-color:#713f12}.notification[data-status=success]{background:#166534;border-color:#14532d}.notification[data-status=info]{background:#1e40af;border-color:#1e3a8a}.feedback-problems>.notification>h2,.editor-notice>.notification>h2{position:sticky;top:0}.property-color.no-fill{background-color:#fff;background-image:linear-gradient(to top right,#0000 46%,#c62828 47% 53%,#0000 54%);border-color:#777}.table-header-toggle{align-items:center;gap:6px;display:flex}.table-header-toggle>input{margin:0}.property-type{padding-top:6px}.notification-layout{flex-direction:column;width:100%;height:100%;min-height:0;display:flex}.notification-content{flex:1;min-height:0}.notification-anchor{flex:none;min-height:0}.notification-region{z-index:1100;flex-direction:column;gap:2px;width:100%;max-height:40vh;display:flex;position:relative;overflow:auto}.notification-region:empty{display:none}.notification-region>div{flex:none;width:100%;min-width:0}.notification-region .notification{box-sizing:border-box;grid-template-rows:auto minmax(0,1fr);grid-template-columns:minmax(0,1fr) 28px;gap:4px 8px;width:100%;max-height:40vh;display:grid}.notification-region .notification h2{align-self:center;position:static}.notification-region .notification-close{width:28px;height:28px;color:inherit;grid-area:1/2;padding:4px}.notification-region .notification ul{grid-column:1/-1;min-height:0;margin-bottom:0;overflow:auto}.notification-region .notification h2{color:inherit;margin:0;padding:0;font-size:12px;font-weight:600;line-height:16px}dialog:modal>.notification-region{position:fixed;inset:auto 0 0}.notification-region .notification h2{max-height:12vh;overflow:auto}.notification-region .notification-close{align-self:start}.property-error,.property-error-summary{color:var(--danger);margin:4px 0 0;font-size:12px}.page-settings{flex-shrink:0;min-width:0}.page-settings>.property-error-summary{padding:0 12px}.page-toolbar:has(.property-error){align-items:flex-start;height:auto;min-height:40px;padding-block:6px}.page-toolbar .property-error{white-space:normal}.report-area{flex-direction:column;flex:1;min-width:0;display:flex}.search-toolbar{border-bottom:1px solid var(--border);white-space:nowrap;flex-shrink:0;align-items:center;gap:12px;height:40px;margin:0;padding:0 12px;display:flex;overflow-x:auto}.toolbar-field{align-items:center;gap:6px;font-size:12px;display:inline-flex}.search-toolbar input,.search-toolbar select{border:1px solid var(--border);background:var(--background);height:28px;color:var(--foreground);border-radius:4px;padding:0 6px;font-size:14px}.search-toolbar input:disabled{background:var(--hover);color:var(--muted);cursor:not-allowed;opacity:.6}.date-input{width:146px}.client-input{width:180px}.page-input{width:72px}.page-size-input{width:80px}.search-toolbar .execute-search{background:var(--selected);width:28px;height:28px;color:var(--foreground);padding:4px}.search-toolbar .execute-search:hover{background:var(--border)}.report-results{flex:1;min-height:0;padding:0 12px 12px;overflow:auto}.report-totals{align-items:center;gap:24px;min-height:40px;margin:0;font-size:12px;display:flex}.report-totals strong{font-variant-numeric:tabular-nums;margin-left:6px;font-size:14px;font-weight:600}.daily-chart{padding-top:12px}.daily-chart h2{margin:0 0 8px;font-size:14px;font-weight:500}.chart-plot{width:100%;min-width:0;height:220px}.chart-empty{color:var(--muted);text-align:center;margin:0;padding:80px 12px}.report-table{border-collapse:collapse;white-space:nowrap;width:100%}.report-table th,.report-table td{border-bottom:1px solid var(--border);text-align:left;height:36px;padding:6px 12px}.report-table th{background:var(--hover);color:var(--muted);padding:0;font-size:12px;font-weight:500}.sort-button{width:100%;height:36px;color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;justify-content:flex-start;align-items:center;gap:6px;padding:6px 12px;display:flex}.sort-button:hover{background:var(--selected);color:var(--foreground)}.sort-button:focus-visible{outline:2px solid var(--foreground);outline-offset:-2px}.sort-icon{flex-shrink:0;width:12px;height:12px}th[aria-sort] .sort-button{color:var(--foreground)}th[aria-sort=ascending] .sort-down,th[aria-sort=descending] .sort-up{opacity:.2}.page-count .sort-button{justify-content:flex-end}.report-table td{font-variant-numeric:tabular-nums;font-size:14px}.report-table .page-count{text-align:right;width:120px}.report-table tbody tr:hover{background:var(--hover)}.report-workspace{min-height:0}.report-empty{color:var(--muted);padding:12px}.side-menu .report-entry{margin-top:auto;padding-top:4px}.clients-area{background:var(--background);flex:1;min-width:0;padding:0 12px 12px;overflow:auto}.client-toolbar{align-items:center;gap:12px;height:40px;display:flex}.register-client{color:#fff;background:#427bc4;gap:6px;width:auto;height:28px;padding:4px 10px;transition:background-color .12s}.client-toolbar .register-client:hover:not(:disabled){color:#fff;background:#356cb3}.client-toolbar .register-client:active:not(:disabled){background:#2b5e9f}.client-results{padding:0}.client-results>.notification{margin-bottom:8px}.client-table{border-collapse:collapse;width:100%;font-size:14px}.client-table th,.client-table td{border-bottom:1px solid var(--border);text-align:left;height:36px;padding:4px 12px}.client-table th{color:var(--muted);background:var(--hover);font-size:12px;font-weight:500}.client-table td{font-variant-numeric:tabular-nums}.client-table tbody tr:hover{background:var(--hover)}.client-table td:first-child{white-space:nowrap}.client-table td:nth-child(2){white-space:pre-wrap;overflow-wrap:anywhere}.client-table .page-limit{text-align:right;white-space:nowrap}.client-table .actions-column{text-align:center;width:116px}.client-actions{align-items:center;gap:4px;width:92px;margin-inline:auto;display:flex}.client-actions .icon-button,.client-action-slot{flex:0 0 28px;width:28px;height:28px;padding:4px}.client-actions .revoke-key,.client-actions .revoke-key:hover{color:var(--danger)}.client-table .without-key{background:var(--hover);color:var(--muted)}.client-table .without-key:hover{background:var(--selected)}.client-dialog{border:1px solid var(--border);width:min(480px,100vw - 32px);color:var(--foreground);background:var(--background);border-radius:6px;padding:20px;font-size:14px}.client-dialog::backdrop{background:#00000059}.client-dialog h2{margin:0 0 16px;font-size:16px}.client-dialog label{margin-bottom:6px;display:block}.client-dialog input{width:100%;color:var(--foreground);background:var(--background);border:1px solid var(--border);border-radius:4px;margin-bottom:12px;padding:6px}.client-dialog-actions{justify-content:flex-end;gap:8px;margin-top:16px;display:flex}.client-dialog-actions button{color:var(--foreground);background:var(--selected);border:1px solid var(--border);border-radius:4px;padding:6px 12px}.issued-key-row{align-items:center;gap:8px;display:flex}.issued-key-row .icon-button{flex:0 0 28px;width:28px;height:28px;padding:4px}.issued-key{-webkit-user-select:text;user-select:text;overflow-wrap:anywhere;flex:1;min-width:0;font-family:monospace}
