:root{font-family:-apple-system,BlinkMacSystemFont,"Noto Sans JP",system-ui,sans-serif;background:#f6f8fb;-webkit-font-smoothing:antialiased}
.card,.metric{border-color:#e1e8f0;border-radius:16px;box-shadow:0 8px 24px #162e4708}
input,select,textarea{min-height:48px;border-radius:11px;font-size:16px;outline:none}
input:focus,select:focus,textarea:focus{border-color:#2d76b3;box-shadow:0 0 0 3px #2d76b320}
input[type=checkbox]{min-height:0;accent-color:#195b97}
.btn{border-radius:11px;min-height:45px}
.editor-heading{margin:0 0 22px}.editor-heading h1{margin:0}
.eyebrow{color:#597690;letter-spacing:.12em;font-size:11px;font-weight:700;margin:0 0 6px}
.editor-sheet{background:#fff;border:1px solid #e1e8f0;border-radius:20px;box-shadow:0 12px 36px #122a410b;overflow:hidden}
.editor-section{padding:28px 34px;border-bottom:1px solid #e7ebf0}.editor-section h2{font-size:18px;margin-bottom:15px}
.editor-section .section-hint{margin:-5px 0 18px;color:#65758a;font-size:14px}
.editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.editor-grid>.type-fields{grid-column:1/-1}.type-fields[hidden],[hidden]{display:none!important}
.editor-grid>.field:has(textarea){grid-column:1/-1}.kind-select{background:#fbfcfe}
.kind-select>.field{max-width:450px}.kind-select select{font-weight:650;border-color:#a7bfd2}
.editor-section textarea[name=body]{min-height:230px}.editor-section textarea[name=description]{min-height:95px}
.editor-advanced{padding:0 34px}.editor-advanced summary{cursor:pointer;padding:23px 0;font-weight:650;list-style:none}
.editor-advanced summary::-webkit-details-marker{display:none}.editor-advanced summary:after{content:'⌄';float:right;color:#637b93}
.editor-advanced[open] summary:after{content:'⌃'}.editor-advanced summary span{font-size:13px;font-weight:400;color:#6a7d90;margin-left:8px}
.editor-advanced>.editor-grid{padding:0 0 28px}
.media-choice{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}
.media-current{display:flex;align-items:center;gap:13px;min-height:88px;border:1px solid #e0e7ef;border-radius:14px;background:#f8fafc;padding:10px 14px;min-width:0;overflow-wrap:anywhere}
.media-current img{width:76px;height:66px;object-fit:contain;background:white;border-radius:8px}
.media-pdf-icon{display:inline-flex;align-items:center;justify-content:center;width:60px;height:60px;background:#eaf0f6;color:#224f75;border-radius:10px;font-weight:700}
.media-empty{color:#66798d}.upload-button{border-color:#abc1d5;color:#164d81}
.media-library{max-width:460px;margin-top:10px}.media-library summary{font-size:13px;color:#195b97;cursor:pointer;padding:8px 0}.media-library select{margin:6px 0 4px}
.save-bar{position:sticky;bottom:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:15px;background:#ffffffed;backdrop-filter:blur(16px);border:1px solid #dbe3ec;border-radius:0 0 16px 16px;padding:14px 22px;box-shadow:0 -6px 20px #18334e0d}
.save-hint{font-size:13px;color:#63778a}.save-actions{display:flex;gap:9px}.save-actions .primary{min-width:140px}
.nav-icon{display:none}
@media(max-width:700px){
 header{gap:10px}header strong{font-size:18px}header .subtle{display:none}header>.btn{margin-left:auto;min-height:38px;padding:7px 10px}
 header nav{position:fixed;z-index:20;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;flex:none;flex-wrap:nowrap;background:#ffffffed;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-top:1px solid #dce5ee;padding:5px 5px calc(5px + env(safe-area-inset-bottom,0px));box-shadow:0 -5px 24px #1c355019}
 header nav a{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;min-width:0;min-height:56px;padding:5px 2px;color:#66788b;font-size:11px;font-weight:600;white-space:nowrap;touch-action:manipulation}
 header nav a:hover,header nav a.active{background:#edf4fa;color:#164d81;border-radius:10px}.nav-icon{display:block;width:22px;height:22px;flex:none}
 .shell{padding:22px 14px calc(150px + env(safe-area-inset-bottom,0px))}.card{border-radius:15px}
 .tablewrap{overflow:visible}table{min-width:0}table thead{display:none}table tbody{display:grid;gap:13px}table tr{display:grid;grid-template-columns:65px 1fr;gap:6px 12px;padding:16px 2px;border-bottom:1px solid #e3e9ef}
 table td{padding:0;border:0;min-width:0}table td:first-child{grid-row:span 3}table td:first-child img{width:60px;height:60px}table td:nth-child(2){font-weight:700}table td:nth-child(3),table td:nth-child(4),table td:nth-child(5),table td:nth-child(6),table td:nth-child(7){grid-column:2;font-size:13px;color:#5d7186}table td:last-child{grid-column:1/-1;margin-top:8px}.actions .btn{flex:1;min-height:42px}
 .editor-heading{align-items:flex-start}.editor-heading>.btn{font-size:13px;padding:7px 10px;min-height:38px}.editor-sheet{border-radius:16px}.editor-section{padding:22px 18px}.editor-grid{grid-template-columns:1fr;gap:18px}.editor-grid>.type-fields{grid-column:auto}.editor-grid>.field:has(textarea){grid-column:auto}.editor-advanced{padding:0 18px}.editor-advanced summary span{display:block;margin:4px 0 0}
 .media-choice{grid-template-columns:1fr}.media-choice>.btn{width:100%;min-height:50px}.save-bar{margin:0 -14px;bottom:calc(68px + env(safe-area-inset-bottom,0px));padding:10px 14px;border-radius:12px 12px 0 0}.save-hint{display:none}.save-actions{width:100%}.save-actions .btn{flex:1}.save-actions .primary{min-width:0}
}
