:root{font-family:Hiragino Kaku Gothic ProN,Yu Gothic,system-ui,sans-serif;color:#1f2a25;background:#f6f2e9;font-synthesis:none;--ink: #1f2a25;--muted: #66736e;--green: #1f5a43;--green-2: #2e7658;--cream: #fffdf8;--paper: #f6f2e9;--line: #dce4df;--danger: #b23b36}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:var(--paper)}button,input,select{font:inherit}button{cursor:pointer}input,select{width:100%;border:1px solid #cfd9d4;border-radius:10px;background:#fff;min-height:45px;padding:10px 12px;color:var(--ink)}input:focus,select:focus{outline:2px solid #a6cdbd;border-color:var(--green)}h1,h2,p{overflow-wrap:anywhere}.app-shell,.editor-shell{width:100%;min-height:100vh}.home-hero{padding:30px 18px 24px;color:var(--ink);background:#fffdf8;border-bottom:1px solid var(--line)}.brand-mark{display:grid;place-items:center;width:42px;height:42px;margin-bottom:18px;border-radius:12px;background:#e8f2ed;color:var(--green);font-weight:900}.eyebrow{color:var(--green);font-size:11px;font-weight:800;letter-spacing:.12em}h1{margin:8px 0 10px;font-size:clamp(27px,7vw,38px);line-height:1.35}.home-hero>p:not(.eyebrow){max-width:480px;margin:0 0 20px;color:var(--muted);font-size:14px;line-height:1.8}.button{border:0;border-radius:12px;min-height:48px;padding:12px 17px;font-weight:800}.hero-button{width:100%;background:var(--green);color:#fff}.primary{background:var(--green);color:#fff}.secondary{border:1px solid #b8c7c0;background:#fff;color:var(--green)}.home-content,.editor-content{padding:18px 12px 110px;max-width:1120px;margin:auto}.guide-steps{display:grid;gap:10px;margin-bottom:22px}.guide-steps article{display:flex;gap:10px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fff}.guide-steps span{display:grid;place-items:center;flex:0 0 auto;width:30px;height:30px;border-radius:50%;background:#e4f0ea;color:var(--green);font-weight:900}.section-heading{margin-bottom:18px}.section-heading h2{margin:4px 0 0;font-size:22px}.section-note{margin:8px 0 0;color:var(--muted);font-size:13px;line-height:1.65}.split{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.text-button{color:var(--green);font-size:12px;font-weight:800;text-decoration:underline;cursor:pointer}.text-button input,.upload-button input{display:none}.empty-list{padding:30px 18px;border:1px dashed #b8c4be;border-radius:14px;text-align:center;color:var(--muted);background:#fffdf8}.tournament-list{display:grid;gap:12px}.tournament-card{overflow:hidden;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 5px 18px #263a310a}.tournament-open{display:grid;grid-template-columns:48px 1fr 20px;gap:12px;align-items:center;width:100%;padding:15px;border:0;background:transparent;text-align:left}.tournament-open strong,.tournament-open small{display:block}.tournament-open strong{margin-bottom:5px;font-size:15px}.tournament-open small{color:#718078}.date-badge{display:grid;place-items:center;height:44px;border-radius:8px;background:#edf3f0;color:var(--green);font-size:12px;font-weight:800}.card-actions{display:flex;justify-content:flex-end;gap:8px;padding:0 13px 12px}.card-actions button{border:0;background:#eef2f0;border-radius:8px;padding:7px 12px;font-size:12px}.card-actions .danger{color:var(--danger);background:#faeeee}.editor-header{position:sticky;top:0;z-index:20;display:grid;grid-template-columns:42px 1fr 54px;align-items:center;padding:max(10px,env(safe-area-inset-top)) 12px 10px;background:#fffdf8;color:var(--ink);border-bottom:1px solid var(--line)}.editor-header div{min-width:0;padding:0 8px}.editor-header small,.editor-header strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-header small{color:var(--muted);font-size:10px}.editor-header strong{margin-top:2px;font-size:14px}.back-button,.save-button{border:0;background:transparent;color:var(--green)}.back-button{font-size:34px;line-height:1}.save-button{font-weight:900}.tab-bar{position:fixed;z-index:25;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(4,1fr);padding:7px 8px calc(7px + env(safe-area-inset-bottom));border-top:1px solid #d8dedb;background:#ffffffef;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.tab-bar button{border:0;background:transparent;color:#849089;font-size:10px;font-weight:700}.tab-bar span{display:grid;place-items:center;width:27px;height:27px;margin:0 auto 3px;border-radius:9px;font-size:13px;font-weight:900}.tab-bar button.active{color:var(--green)}.tab-bar button.active span{background:#dcebe4}.card{padding:18px 14px;border:1px solid var(--line);border-radius:16px;background:#fffdf8;box-shadow:0 8px 28px #1b352908}.form-grid{display:grid;gap:16px}.form-grid label{color:#53635b;font-size:12px;font-weight:800}.form-grid label input,.form-grid label select{margin-top:7px}.form-grid small{display:block;margin-top:6px;color:var(--muted);font-size:11px;line-height:1.5}.wide-field{grid-column:1 / -1}.toggle-row{display:flex;align-items:center;gap:10px;min-height:45px}.toggle-row input{width:20px;min-height:20px;margin:0!important;accent-color:var(--green)}.status-panel{display:grid;gap:5px;padding:12px;border:1px solid #cfe0d8;border-radius:12px;background:#f1f8f4;color:var(--green);font-size:12px}.status-panel span{color:var(--muted)}.bottom-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:15px}.count-chip{white-space:nowrap;padding:6px 10px;border-radius:20px;background:#edf3f0;color:var(--green);font-size:11px;font-weight:800}.count-chip.warning{background:#faeeee;color:var(--danger)}.validation-box{margin-bottom:14px;padding:10px 12px;border-left:4px solid var(--danger);border-radius:8px;background:#fff4f3;color:#8f2f2a;font-size:12px}.validation-box p{margin:3px 0}.entry-navigator{position:sticky;top:62px;z-index:8;display:grid;grid-template-columns:auto 1fr auto;gap:7px;margin:-4px -4px 13px;padding:9px;border:1px solid #d8e0dc;border-radius:12px;background:#f8faf8ee;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 5px 14px #17382d12}.entry-navigator button{border:1px solid #c9d3ce;border-radius:9px;background:#fff;color:var(--green);padding:8px 10px;font-weight:800}.entry-navigator button:disabled{opacity:.35}.entry-navigator label{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:6px;color:#627069;font-size:10px;font-weight:800}.entry-navigator select{min-height:38px;padding:6px}.entry-navigator .photo-shortcut{grid-column:1 / -1;border-color:#9bbcaf;color:var(--green);background:#f0f7f3}.entry-help{margin:0 0 12px;color:#6d7a74;font-size:11px;line-height:1.6}.participant-list{display:grid;gap:10px}.participant-row{display:grid;grid-template-columns:30px 1fr 62px;gap:8px;padding:11px 8px;border:1px solid transparent;border-bottom-color:#edf0ee;border-radius:10px;scroll-margin:160px}.participant-row.current{border-color:#8fb6a5;background:#f1f8f4;box-shadow:0 0 0 2px #d9ece4}.participant-row.bye-row{background:#f3f5f4}.participant-index{padding-top:13px;color:var(--green);font-weight:900}.bye-content{align-self:center}.bye-content strong,.bye-content small{display:block}.bye-content strong{color:#5d6863;font-size:13px}.bye-content small{margin-top:4px;color:#8a938f;font-size:10px}.bye-content button,.inline-muted-button{margin-top:8px;border:1px solid #c8d5cf;border-radius:8px;min-height:34px;padding:6px 10px;background:#fff;color:var(--green);font-size:11px;font-weight:800}.participant-fields{display:grid;gap:6px}.participant-fields input{min-height:40px}.participant-fields input:first-child{font-weight:800}.position-field{color:#718078;font-size:10px;text-align:center}.position-field select{min-height:40px;margin-top:5px;padding:5px;text-align:center}.photo-add-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}.upload-button{min-height:42px;padding:10px 11px;font-size:12px;cursor:pointer;text-align:center}.photo-empty{display:grid;place-items:center;gap:7px;min-height:260px;border:2px dashed #bdcac3;border-radius:14px;background:#f8faf8;color:#54645c;text-align:center;padding:16px}.photo-empty small{color:#829088;line-height:1.6}.photo-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#e3ece7;color:var(--green);font-size:26px}.photo-tabs{display:flex;gap:6px;overflow-x:auto;margin-bottom:10px}.photo-tabs button{flex:0 0 auto;border:0;border-radius:20px;padding:8px 14px;background:#edf1ef;color:#66746d}.photo-tabs button.active{background:var(--green);color:#fff}.photo-controls{display:flex;align-items:center;justify-content:flex-start;gap:8px;margin-bottom:10px;overflow-x:auto;padding-bottom:2px}.photo-controls button{flex:0 0 auto;border:1px solid #ccd6d1;border-radius:8px;min-width:38px;height:36px;background:#fff;color:var(--green)}.photo-controls .danger-control{color:var(--danger);border-color:#ecc9c5}.photo-controls span{flex:0 0 auto;min-width:52px;text-align:center;font-size:12px}.back-to-entry{width:100%;margin:0 0 12px;border:1px solid #b7c9c1;border-radius:10px;padding:10px;background:#f0f7f3;color:var(--green);font-weight:800}.crop-help{display:grid;gap:8px;margin-bottom:10px;padding:10px;border-radius:10px;background:#edf7f1;color:#355348;font-size:12px}.crop-help button{border:0;border-radius:9px;min-height:38px;background:var(--green);color:#fff;font-weight:900}.photo-viewport{display:grid;place-items:center;min-height:360px;overflow:auto;border-radius:12px;background:#26312c;touch-action:pan-x pan-y}.image-stage{position:relative;display:inline-block;transform-origin:center;transition:transform .15s ease}.image-stage img{display:block;max-width:100%;max-height:70vh;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.image-stage.crop-active{cursor:crosshair;touch-action:none}.crop-rect{position:absolute;border:2px solid #fff;outline:9999px solid #0008;box-shadow:0 0 0 1px var(--green);pointer-events:none}.bracket-tools{display:grid;grid-template-columns:1fr auto;gap:8px;margin-bottom:10px}.search-box{display:flex;align-items:center;gap:6px;border:1px solid #ccd4d0;border-radius:10px;padding-left:10px;background:#fff;color:var(--green);font-size:12px;font-weight:800}.search-box input{border:0;min-height:42px;padding-left:2px;outline:0;font-weight:400}.zoom-tools{display:flex;align-items:center;border:1px solid #ccd4d0;border-radius:10px;background:#fff}.zoom-tools button{border:0;width:35px;height:42px;background:transparent;color:var(--green);font-size:20px}.zoom-tools span{min-width:45px;text-align:center;font-size:11px}.bracket-scroll{overflow:auto;max-height:68vh;border:1px solid #dbe1de;border-radius:12px;background:#ece8df;touch-action:pan-x pan-y}.bracket-svg{display:block;transform-origin:top left}.export-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:7px;margin-top:12px}.export-grid .button{min-height:43px;padding:8px;font-size:11px}.toast{position:fixed;z-index:40;left:50%;bottom:86px;transform:translate(-50%);padding:11px 18px;border-radius:22px;background:#1f2a25ef;color:#fff;font-size:12px;box-shadow:0 8px 25px #0004}@media(min-width:700px){.home-hero{padding:44px max(24px,calc((100% - 900px)/2))}.hero-button{width:auto;min-width:240px}.home-content{padding-top:28px}.guide-steps{grid-template-columns:repeat(3,1fr)}.tournament-list{grid-template-columns:repeat(2,1fr)}.editor-content{padding-top:24px}.form-grid{grid-template-columns:repeat(2,1fr)}.form-grid .section-heading{grid-column:1 / -1}.tab-bar{position:sticky;top:62px;bottom:auto;max-width:720px;margin:0 auto;border:1px solid #d8dedb;border-top:0;border-radius:0 0 14px 14px}.tab-bar span{display:inline-grid;margin:0 5px 0 0}.entry-navigator{top:126px;grid-template-columns:auto minmax(210px,1fr) auto auto}.entry-navigator .photo-shortcut{grid-column:auto}.card{padding:22px 18px}}
