:root{font-family:Pretendard,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#0f172a;--bg-1: #f4fff8;--bg-2: #eef8ff;--card: #ffffffd1;--line: #d7e6da;--green: #10b981;--green-strong: #059669;--blue: #0ea5e9;--yellow: #f59e0b;background:radial-gradient(circle at 20% 0%,#d8ffe8,#effaf3 38%,#edf7ff)}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:linear-gradient(180deg,var(--bg-1),var(--bg-2))}.mobile-wrap{max-width:480px;margin:0 auto;padding:10px 10px 0}.panel{display:flex;flex-direction:column;gap:16px}.app-header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:6px}.app-shell{min-height:calc(100dvh - 10px);display:flex;flex-direction:column;gap:12px}.app-topbar{position:sticky;top:0;z-index:30;display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid var(--line);border-radius:18px;padding:10px;background:#ffffffd1;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.brand-wrap{display:flex;align-items:center;gap:10px}.logo-badge{width:42px;height:42px;border-radius:999px;display:grid;place-items:center;background:radial-gradient(circle at 35% 30%,#dcfce7,#86efac 65%,#22c55e);border:1px solid #4ade80;box-shadow:0 6px 18px #10b98140;overflow:hidden}.logo-image{width:100%;height:100%;object-fit:cover}.topbar-actions{display:flex;align-items:center;gap:6px}.app-topbar h2{font-size:18px}.app-content{flex:1;overflow:auto;padding-bottom:calc(84px + env(safe-area-inset-bottom))}h1,h2,h3,p{margin:0}.subtitle{color:#475569;font-size:14px}.with-icon{display:inline-flex;align-items:center;gap:6px}.tabs{display:flex;flex-wrap:wrap;gap:8px}.tabs button,button{border:none;border-radius:10px;padding:10px 12px;font-weight:600;cursor:pointer}.icon-14{width:14px;height:14px}.icon-16{width:16px;height:16px}.icon-18{width:18px;height:18px}.tabs button{background:#e2e8f0;color:#334155;flex:1 1 calc(33.33% - 8px);min-width:88px;display:inline-flex;align-items:center;justify-content:center;gap:6px}.tabs button.active{background:#0f172a;color:#fff}.bottom-nav{position:fixed;left:50%;transform:translate(-50%);bottom:0;width:min(480px,100%);z-index:50;display:flex;gap:6px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fcfffdf2;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.nav-item{min-width:64px;flex:1 1 0;border:1px solid transparent;border-radius:12px;padding:7px 4px;display:grid;place-items:center;gap:2px;background:transparent;color:#64748b;font-weight:600}.nav-item span{font-size:15px;line-height:1}.nav-item small{font-size:11px}.nav-item.active{border-color:#86efac;background:#ecfdf5;color:#047857}.nav-item.fab{margin-top:-16px;border-radius:18px;border-color:#4ade80;background:linear-gradient(180deg,#22c55e,#16a34a);color:#fff;box-shadow:0 10px 20px #16a34a52}.nav-item.fab span{font-size:20px;font-weight:700}.nav-item.fab.active{border-color:#22c55e;color:#fff}.form,.card{display:flex;flex-direction:column;gap:10px;background:var(--card);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid var(--line);border-radius:16px;padding:14px}label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#334155}input{border:1px solid #cbd5e1;border-radius:10px;padding:10px;font-size:15px}select{border:1px solid #cbd5e1;border-radius:10px;padding:10px;font-size:15px;background:#fff}.primary{background:linear-gradient(180deg,var(--green),var(--green-strong));color:#fff}.primary:disabled{opacity:.5}.danger{background:#dc2626;color:#fff}.ghost{background:#ecfdf5;color:#065f46}.ghost.small{display:inline-flex;align-items:center;gap:6px;padding:8px 10px;font-size:12px;border:1px solid #bbf7d0}.topbar{display:flex;align-items:center;justify-content:space-between;gap:10px}.preview{width:100%;border-radius:10px;border:1px solid #cbd5e1}.error{color:#b91c1c;font-size:13px}.meta{color:#1d4ed8;font-size:13px}.record-list{list-style:none;padding:0;margin:0;display:grid;gap:10px}.record-list li{border:1px solid #e2e8f0;border-radius:10px;padding:10px;background:#fff}.record-list p{margin-top:4px;color:#334155;font-size:14px}.record-list small{color:#64748b;font-size:12px}.records-head,.records-filter-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.records-filter-row label{width:100%}.month-select-wrap{gap:8px}.month-select-wrap span{font-size:12px;font-weight:700;color:#065f46}.month-select{appearance:none;-webkit-appearance:none;-moz-appearance:none;width:100%;border:1px solid #86efac;border-radius:12px;padding:11px 40px 11px 12px;font-weight:700;color:#065f46;background:linear-gradient(180deg,#f0fdf4,#ecfdf5),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");background-repeat:no-repeat,no-repeat;background-position:0 0,right 12px center;background-size:auto,16px;box-shadow:0 4px 12px #10b9811f}.month-select:focus{outline:none;border-color:#10b981;box-shadow:0 0 0 3px #10b98133}.mileage-hero{background:radial-gradient(circle at 90% 10%,#cffafe,#ecfeff 35%,#ecfdf5);border-color:#a7f3d0}.upload-hero{position:relative;overflow:hidden;background:radial-gradient(circle at 100% 0%,#dcfce7,#ecfeff 38%,#f8fafc);border-color:#86efac}.upload-hero:after{content:"";position:absolute;top:-54px;right:-42px;width:170px;height:170px;border-radius:999px;background:radial-gradient(circle at 30% 30%,#bbf7d0,#4ade80 58%,#16a34a);opacity:.2;pointer-events:none}.upload-field{border:1px dashed #86efac;background:#f0fdf4;border-radius:12px;padding:10px}.upload-field input[type=file]{width:100%}.upload-form-grid{display:grid;grid-template-columns:1fr;gap:10px}.upload-form-grid small{color:#0f766e;font-size:12px}.hero-head{display:flex;align-items:center;justify-content:space-between}.mileage-hero h2{font-size:34px;color:#065f46;line-height:1.05}.hero-logo{width:100%;max-height:120px;object-fit:contain;border-radius:12px;background:#ffffff9e;border:1px solid #bbf7d0;padding:4px}.hero-stats{display:flex;align-items:center;gap:14px;font-size:13px;color:#334155}.hero-stats strong{color:#065f46}.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.quick-btn{display:inline-flex;align-items:center;justify-content:center;border-radius:12px;padding:12px 6px;font-size:12px;font-weight:700;background:#f8fafc;border:1px solid #dbeafe;color:#0f172a}.quick-btn.upload{background:#ecfdf5;border-color:#86efac;color:#065f46}.quick-btn.challenge{background:#fef9c3;border-color:#fde68a;color:#854d0e}.challenge-preview .track{width:100%;height:8px;border-radius:999px;background:#e2e8f0;overflow:hidden}.challenge-preview .fill{height:100%;border-radius:999px;background:linear-gradient(90deg,#38bdf8,#22c55e)}.team-progress-list{display:grid;gap:10px}.team-progress small{color:#64748b}.record-grid{display:grid;gap:12px}.record-group-list{display:grid;gap:10px}.record-group-card{border:1px solid #d7e6da;border-radius:12px;background:#fff;padding:8px;display:grid;gap:8px}.record-group-head{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:10px;color:#065f46}.record-group-head small{color:#475569;font-size:12px}.record-card{display:grid;grid-template-columns:96px 1fr;gap:10px;padding:0;border:1px solid #dbe4f0;background:#fff;overflow:hidden;text-align:left}.record-thumb{width:96px;height:96px;object-fit:cover}.record-body{display:flex;flex-direction:column;justify-content:center;gap:3px;padding-right:10px}.record-body p{font-size:13px;color:#334155}.record-body small{color:#64748b;font-size:12px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.detail-grid div{border:1px solid #e2e8f0;border-radius:10px;padding:10px;background:#fff;display:flex;flex-direction:column;gap:4px}.detail-grid span{font-size:12px;color:#64748b}.mileage-list{display:grid;gap:8px}.mileage-item{display:grid;grid-template-columns:34px 1fr auto;gap:8px;align-items:center;padding:10px;border:1px solid #e2e8f0;border-radius:10px;background:#fff}.mileage-item.mine{border-color:#1d4ed8;background:#eff6ff}.mileage-item .rank{width:28px;height:28px;border-radius:999px;background:#0f172a;color:#fff;display:grid;place-items:center;font-size:12px;font-weight:700}.mileage-item .info{display:flex;flex-direction:column;gap:2px}.mileage-item .info small{color:#64748b;font-size:12px}.mileage-item .distance{font-weight:700;color:#0f172a}.challenge-list{display:grid;gap:10px}.challenge-card{border:1px solid #dbe4f0;border-radius:10px;background:#fff;text-align:left;padding:10px;display:flex;flex-direction:column;gap:8px}.challenge-title-row{display:flex;justify-content:space-between;align-items:center;gap:8px}.challenge-team-list{display:grid;gap:6px}.challenge-team-item{display:flex;justify-content:space-between;align-items:center;border:1px solid #e2e8f0;border-radius:8px;padding:8px}.admin-list{display:grid;gap:8px}.admin-item{border:1px solid #e2e8f0;border-radius:10px;padding:10px;background:#fff;display:grid;gap:8px}.admin-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.admin-tabs button{border:1px solid #dbe4f0;border-radius:10px;padding:9px 8px;background:#fff;color:#334155;font-weight:700;font-size:12px}.admin-tabs button.active{border-color:#2563eb;background:#dbeafe;color:#1d4ed8}.admin-entity-list{display:grid;gap:10px}.admin-entity-card{border:1px solid #e2e8f0;border-radius:12px;background:#fff;padding:12px;display:grid;gap:8px}.admin-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}.badge{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:700;color:#1d4ed8;background:#dbeafe;border:1px solid #93c5fd}.admin-modal-overlay{position:fixed;inset:0;background:#0f172a8c;display:grid;place-items:center;z-index:1000;padding:16px}.admin-modal{width:min(100%,480px);max-height:86vh;overflow:auto;background:#fff;border-radius:14px;border:1px solid #dbe4f0;padding:14px;display:grid;gap:10px}.admin-modal.large{width:min(100%,640px)}.inline-check{display:flex;align-items:center;gap:6px}.team-editor{border:1px solid #e2e8f0;border-radius:10px;padding:10px;display:grid;gap:8px}.record-mini{display:flex;align-items:center;gap:8px}.mini-thumb{width:48px;height:48px;object-fit:cover;border-radius:8px;border:1px solid #e2e8f0}.challenge-theme{color:#0f172a}.challenge-shell{background:linear-gradient(180deg,#f0fdf4,#ecfeff);border-radius:16px;border:1px solid #bbf7d0;padding:14px;display:grid;gap:12px}.challenge-header-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.challenge-header-row h3,.challenge-header-row h4{margin:0;color:#065f46}.challenge-select-wrap{display:grid;gap:6px;color:#475569;font-size:12px}.challenge-select-wrap select{background:#fff;border:1px solid #bbf7d0;color:#0f172a}.challenge-hero-card{border-radius:14px;border:1px solid #a7f3d0;background:linear-gradient(180deg,#ecfdf5,#f0fdfa);padding:12px;display:grid;gap:10px}.challenge-hero-title{display:grid;gap:3px}.challenge-hero-title strong{color:#065f46;font-size:17px;line-height:1.3}.challenge-hero-title small{color:#64748b;font-size:12px}.text-light{color:#64748b}.challenge-stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.challenge-stat-card{border-radius:10px;border:1px solid #bbf7d0;background:#fff;padding:10px;display:grid;gap:3px}.challenge-stat-card span{color:#64748b;font-size:11px}.challenge-stat-card strong{color:#065f46;font-size:14px}.challenge-stat-card.primary{border-color:#7dd3fc;background:#ecfeff}.challenge-stat-card.primary strong{color:#0369a1}.challenge-table-card{border-radius:14px;border:1px solid #bbf7d0;background:#fff;overflow:hidden}.challenge-table-head{display:grid;grid-template-columns:42px 1fr auto 52px;gap:8px;padding:10px 12px;background:#ecfdf5;color:#475569;font-size:11px;font-weight:700}.challenge-table-row{display:grid;grid-template-columns:42px 1fr auto 52px;gap:8px;align-items:center;padding:10px 12px;border-top:1px solid #dcfce7}.challenge-table-row.mine{box-shadow:inset 2px 0 #10b981;background:#ecfdf5}.challenge-table-row.gold{background:linear-gradient(90deg,#f59e0b2e,#ffffffe6)}.challenge-table-row.silver{background:linear-gradient(90deg,#94a3b824,#ffffffe6)}.challenge-table-row.bronze{background:linear-gradient(90deg,#b453091f,#ffffffe6)}.rank-chip{width:28px;height:28px;border-radius:999px;border:1px solid #a7f3d0;color:#065f46;display:grid;place-items:center;font-weight:700;font-size:12px;background:#f0fdf4}.team-col{display:grid;gap:2px}.team-col strong{color:#0f172a;font-size:14px}.team-col small{color:#64748b;font-size:11px;line-height:1.35}.distance-col{color:#065f46;font-size:14px;font-weight:700}.member-col{color:#64748b;font-size:12px;text-align:right}.challenge-records-card{border-radius:14px;border:1px solid #bbf7d0;background:#fff;padding:12px;display:grid;gap:10px}.challenge-subtabs{display:flex;gap:6px}.challenge-subtabs button{flex:1;padding:9px 8px;border-radius:10px;background:#f8fafc;border:1px solid #cbd5e1;color:#64748b;font-size:12px;font-weight:700}.challenge-subtabs button.active{background:#ecfdf5;border-color:#34d399;color:#047857}.challenge-table-head.individual,.challenge-table-row.individual{grid-template-columns:42px 1fr auto 52px}.challenge-summary-card{border-radius:14px;border:1px solid #bbf7d0;background:#fff;padding:12px;display:grid;gap:10px}.summary-head-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.summary-head-row h4{color:#065f46;font-size:14px}.summary-table-wrap{border-radius:12px;overflow-x:auto;overflow-y:auto;max-height:min(62vh,560px);border:1px solid #bbf7d0;background:#fff;-webkit-overflow-scrolling:touch}.summary-table-head,.summary-row{display:grid;gap:6px;align-items:center;padding:9px 10px;min-width:max-content}.summary-table-head{position:sticky;top:0;z-index:3;background:#ecfdf5;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);color:#475569;font-size:11px;font-weight:700}.summary-table-body{display:grid}.summary-row{border-top:1px solid #dcfce7;color:#334155;font-size:12px}.cell-num{text-align:right}.summary-sticky-team,.summary-sticky-name{position:sticky;z-index:2}.summary-sticky-team{left:0}.summary-sticky-name{left:72px}.summary-table-head .summary-sticky-team,.summary-table-head .summary-sticky-name{z-index:4;background:#ecfdf5}.summary-row .summary-sticky-team,.summary-row .summary-sticky-name{background:#fff}.summary-row.total .summary-sticky-team,.summary-row.total .summary-sticky-name{background:#dcfce7}.summary-row.grand-total .summary-sticky-team,.summary-row.grand-total .summary-sticky-name{background:#cffafe}.summary-row.total{background:#dcfce7;color:#065f46;font-weight:700}.summary-row.grand-total{background:#cffafe;color:#155e75;font-weight:700}.record-card.dark{border-color:#d7e6da;background:#fff}.record-card.dark .record-body strong{color:#0f172a}.record-card.dark .record-body p,.record-card.dark .record-body small{color:#64748b}
