body{margin:0;background:#f3f4f6;font-family:"Yu Gothic","Meiryo",sans-serif;color:#111827}.wrap{max-width:1500px;margin:18px auto;padding:0 14px}.top{background:#172554;color:white;border-radius:12px;padding:14px 18px;display:flex;justify-content:space-between;align-items:center}h1{margin:0;font-size:24px}.sub{font-size:13px;opacity:.9}.mode{background:#ecfeff;color:#164e63;border:2px solid #0891b2;border-radius:999px;padding:6px 12px;font-weight:800}a{color:inherit}.cards{display:grid;grid-template-columns:1fr 1.45fr 1.2fr;gap:10px;margin:12px 0}.card{background:white;border:2px solid #1f2937;border-radius:10px;padding:10px;margin-bottom:12px}.card h2{font-size:18px;margin:0 0 8px;border-bottom:2px solid #1f2937;padding-bottom:4px}.status{font-size:30px;font-weight:900;color:#15803d}.ended{color:#dc2626}.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:6px}.field{border:1px solid #9ca3af;padding:5px;min-height:34px;background:white}.field b{display:block;font-size:11px}input,select,textarea{width:100%;box-sizing:border-box;padding:8px;border:1px solid #9ca3af;border-radius:7px}textarea{min-height:58px}.badge{border-radius:999px;padding:3px 8px;font-weight:800;font-size:12px}.ok{background:#dcfce7}.new{background:#fef9c3}.swimrow{display:grid;grid-template-columns:80px 1fr 110px;gap:6px;margin-bottom:5px;align-items:center}.btn,.button{background:#2563eb;color:white;border:0;border-radius:7px;padding:8px 10px;font-weight:800;text-align:center;text-decoration:none;display:inline-block}.green{background:#059669}.red{background:#dc2626}.gray{background:#64748b}.main{display:grid;grid-template-columns:1fr 390px;gap:12px}.daily{background:white;border:3px solid #111;padding:10px;overflow:auto}.titlebar{display:grid;grid-template-columns:220px 1fr 300px;align-items:center;border-bottom:3px solid #111;margin-bottom:8px}.title{font-size:26px;font-weight:900;text-align:center;letter-spacing:.12em}.date{text-align:right}.meta{display:grid;grid-template-columns:repeat(8,1fr);gap:4px;margin-bottom:8px}.box{border:1px solid #111;padding:4px;font-size:12px;min-height:34px}.wide{grid-column:span 2}.legend{text-align:right;font-size:12px;margin-bottom:3px}table{border-collapse:collapse;width:100%}.log th,.log td{border:1px solid #111;padding:4px;text-align:center;white-space:nowrap;font-size:12px}.log th{background:#e5e7eb}.input{background:#f8fafc}.swim{background:#eff6ff}.creator{background:#fefce8}.remark{text-align:left}.payer{font-weight:900;color:#b45309}.actions{margin-top:10px;display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}.side .card{margin-bottom:12px}.side table th,.side table td{border:1px solid #9ca3af;padding:5px;font-size:13px}.side table th{background:#f1f5f9}.check{text-align:center;font-size:18px}.foot{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin-top:10px}.formgrid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}.span2{grid-column:span 2}.span3{grid-column:span 3}.mobile-list{display:none}@media(max-width:900px){.cards,.main{display:block}.top{display:block}.formgrid{grid-template-columns:repeat(2,1fr)}.daily{border:2px solid #111}.logwrap{display:none}.mobile-list{display:block}.mobile-flight{background:#fff;border:2px solid #111;border-radius:10px;padding:10px;margin:8px 0}.titlebar{grid-template-columns:1fr}.titlebar>*{text-align:left}.title{font-size:22px}.meta{grid-template-columns:repeat(2,1fr)}}

/* =========================================================
   MGOS Ver2 Additions
   元のstyle.cssの一番下に追記する追加CSS
   ========================================================= */

/* Header v2 */
.top.mgos-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
}
.header-left{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.mgos-brand{
  display:flex;
  align-items:baseline;
  gap:12px;
  margin-top:4px;
  font-weight:900;
}
.mgos-code{
  font-size:22px;
  letter-spacing:.08em;
}
.mgos-name{
  font-size:15px;
  opacity:.95;
}
.header-right{
  margin-left:auto;
  text-align:right;
  display:flex;
  flex-direction:column;
  gap:7px;
  align-items:flex-end;
}
.header-clock{
  font-weight:900;
  line-height:1.45;
  white-space:nowrap;
  font-size:14px;
}
.header-clock .time{
  font-size:22px;
  letter-spacing:.04em;
}
.header-login{
  white-space:nowrap;
  font-size:13px;
}

/* Top cards v2 */
.top-cards{
  display:grid;
  grid-template-columns:1fr 1.45fr 1.2fr;
  gap:10px;
  margin:12px 0;
}

/* Full width sections */
.full-width{
  width:100%;
  box-sizing:border-box;
}

/* Bottom layout */
.bottom-grid{
  display:grid;
  grid-template-columns:1.1fr 1fr 1.25fr 1fr;
  gap:12px;
  align-items:start;
  margin-top:12px;
}
.bottom-grid .card{
  margin-bottom:0;
}

/* Radar card */
.radar-box{
  border:1px dashed #94a3b8;
  border-radius:10px;
  padding:22px 12px;
  text-align:center;
  font-weight:800;
  background:#f8fafc;
  min-height:70px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.radar-note{
  font-size:12px;
  margin-top:8px;
  line-height:1.6;
}

/* Operation details moved below */
.op-extra-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(120px,1fr));
  gap:8px;
}
.op-extra-grid .box{
  min-height:auto;
}

/* Crosswind calculator */
.xwind-card h2{
  color:#0f172a;
}
.xwind-form{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:8px;
  align-items:end;
}
.xwind-form .span2{
  grid-column:span 2;
}
.xwind-result{
  margin-top:12px;
  padding:12px;
  border:1px solid #cbd5e1;
  border-radius:10px;
  background:#f8fafc;
  text-align:center;
}
.xwind-main{
  font-size:30px;
  font-weight:900;
  color:#1d4ed8;
  line-height:1.2;
}
.xwind-sub{
  margin-top:8px;
  font-size:14px;
  font-weight:800;
}
.xwind-note{
  font-size:12px;
  color:#475569;
  margin-top:6px;
}

/* Select disabled look */
select:disabled,
input:disabled{
  background:#e5e7eb;
  color:#6b7280;
  cursor:not-allowed;
}

/* Wider daily log after side removal */
.main-v2{
  display:block;
}
.daily.full-width{
  margin-bottom:12px;
}

/* Small summary table */
.summary-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:6px;
}
.summary-cell{
  border:1px solid #9ca3af;
  padding:7px;
  min-height:36px;
  background:white;
}
.summary-cell b{
  display:block;
  font-size:12px;
}

@media(max-width:1100px){
  .top-cards,
  .bottom-grid{
    grid-template-columns:1fr;
  }
  .header-right{
    align-items:flex-start;
    text-align:left;
  }
  .top.mgos-header{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media(max-width:700px){
  .mgos-brand{
    display:block;
  }
  .header-clock .time{
    font-size:20px;
  }
  .xwind-form,
  .op-extra-grid,
  .summary-grid{
    grid-template-columns:1fr;
  }
  .xwind-form .span2{
    grid-column:span 1;
  }
}

/* =========================================================
   MGOS Phase1.2 Refinements
   ========================================================= */

/* Header: login left, title center, clock right */
.top.mgos-header{
  display:grid;
  grid-template-columns:280px 1fr 280px;
  align-items:center;
  gap:18px;
}
.header-left{
  align-items:flex-start;
  text-align:left;
}
.header-center{
  text-align:center;
}
.header-center h1{
  font-size:28px;
  line-height:1.2;
}
.header-center .mgos-title{
  font-size:18px;
  font-weight:900;
  letter-spacing:.04em;
}
.header-right{
  align-items:flex-end;
  text-align:right;
}
.header-clock{
  font-size:20px;
  line-height:1.35;
}
.header-clock .clock-date,
.header-clock .clock-sunset{
  font-size:20px;
  font-weight:900;
}
.header-clock .clock-time{
  font-size:34px;
  font-weight:900;
  letter-spacing:.05em;
}
.login-area{
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:flex-start;
}
.login-name{
  font-size:13px;
  font-weight:800;
}

/* Top card ratio: SWIM wider, radar square */
.top-cards{
  grid-template-columns:1fr 2fr 0.85fr;
  align-items:start;
}
.swim-card .swimrow{
  grid-template-columns:90px 1fr 130px;
  font-size:15px;
  min-height:34px;
}
.radar-card{
  align-self:start;
}
.radar-box{
  aspect-ratio:1 / 1;
  min-height:0;
  padding:10px;
  box-sizing:border-box;
  flex-direction:column;
}
.radar-box p{
  margin:8px 0 0;
  font-size:12px;
}

/* Daily Flight Log top meta: paper-like row */
.daily .meta{
  grid-template-columns:1fr 1fr 2fr 1fr 1fr;
}
.daily .meta .wide{
  grid-column:span 1;
}
.daily .meta input[placeholder="0000:00"]{
  font-family:monospace;
  letter-spacing:.04em;
}

/* Checkboxes should not inherit full-width input rule */
input[type="checkbox"]{
  width:auto;
  min-width:16px;
  height:16px;
  vertical-align:middle;
}
.participant-checks{
  display:flex;
  gap:18px;
  align-items:center;
  flex-wrap:wrap;
}
.participant-checks label{
  display:inline-flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
}

@media(max-width:1100px){
  .top.mgos-header{
    grid-template-columns:1fr;
  }
  .header-center,
  .header-right,
  .header-left{
    text-align:left;
    align-items:flex-start;
  }
  .top-cards{
    grid-template-columns:1fr;
  }
  .radar-box{
    aspect-ratio:auto;
    min-height:180px;
  }
  .daily .meta{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:700px){
  .header-center h1{
    font-size:22px;
  }
  .header-clock .clock-time{
    font-size:28px;
  }
  .header-clock .clock-date,
  .header-clock .clock-sunset{
    font-size:18px;
  }
  .daily .meta{
    grid-template-columns:1fr;
  }
}

/* =========================================================
   MGOS Phase1.3 Refinements
   ========================================================= */
.top-cards{
  align-items:stretch;
}
.top-cards > .card{
  height:100%;
  box-sizing:border-box;
}
.swim-card{
  display:flex;
  flex-direction:column;
}
.swim-card .actions{
  margin-top:auto;
}
.radar-card{
  display:flex;
  flex-direction:column;
}
.radar-card .radar-box{
  flex:1;
}
.bottom-grid{
  align-items:stretch;
}
.bottom-grid > .card{
  height:100%;
  box-sizing:border-box;
}
.bottom-grid .card form{
  margin-top:auto;
}
.editable-log .no-cell{
  min-width:72px;
  vertical-align:middle;
}
.complete-check{
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-weight:900;
  white-space:nowrap;
}
.mini-save{
  margin-top:3px;
  padding:3px 6px;
  border:0;
  border-radius:5px;
  background:#059669;
  color:white;
  font-size:11px;
  font-weight:900;
  cursor:pointer;
}
.log-input{
  width:100%;
  min-width:72px;
  padding:3px 4px;
  border:1px solid #94a3b8;
  border-radius:4px;
  font-size:12px;
  background:white;
}
.time-input{min-width:78px;}
.alt-input{min-width:64px;}
.min-input{min-width:54px;}
.remark-input{min-width:140px;}
.time-display{
  font-size:11px;
  font-weight:800;
  margin-top:2px;
}
.completed-row .log-input:disabled{
  border-color:transparent;
  background:transparent;
  color:#111827;
  opacity:1;
  appearance:none;
}
.completed-row select.log-input:disabled{
  background:transparent;
}
.editing-row{
  background:#fff7ed;
}
.editing-row .no-cell{
  background:#fffbeb;
}
@media(max-width:1100px){
  .top-cards > .card,
  .bottom-grid > .card{height:auto;}
}

/* =========================================================
   MGOS Phase1.4 Refinements
   ========================================================= */
.flight-time-display{
  font-size:13px;
  font-weight:900;
  min-width:54px;
}
.participant-row{
  margin-top:12px;
}
.participant-row .card{
  margin-bottom:0;
}
.participant-row table th,
.participant-row table td,
.bottom-grid table th,
.bottom-grid table td{
  border:1px solid #9ca3af;
  padding:5px;
  font-size:13px;
}
.participant-row table th,
.bottom-grid table th{
  background:#f1f5f9;
}
.check form{
  margin:0;
  display:flex;
  align-items:center;
  justify-content:center;
}
.inline-form{
  display:grid;
  grid-template-columns:1fr 1fr auto;
  gap:6px;
  align-items:end;
}
.aircraft-master-add{
  grid-template-columns:1.1fr 1.2fr 1fr auto;
}
.aircraft-add-form{
  margin-top:10px;
  padding-top:8px;
  border-top:1px dashed #94a3b8;
}
.aircraft-add-form label{
  display:block;
  font-size:12px;
  font-weight:900;
  margin-bottom:4px;
}
.bottom-grid .card h2,
.participant-row .card h2{
  min-height:28px;
}
@media(max-width:900px){
  .inline-form{
    grid-template-columns:1fr;
  }
}


/* =========================================================
   MGOS Phase1.5 Refinements
   ========================================================= */
.bottom-grid{
  grid-template-columns:1.8fr 1.15fr 1fr;
}
.bottom-grid .card:first-child{
  min-height:260px;
}
.xwind-result strong{
  font-size:34px;
}
.summary-op-form{
  margin-top:10px;
  padding-top:8px;
  border-top:1px dashed #94a3b8;
}
.summary-op-form .button{
  margin-top:8px;
}
.summary-card select{
  padding:6px;
}
@media(max-width:1100px){
  .bottom-grid{
    grid-template-columns:1fr;
  }
  .bottom-grid .card:first-child{
    min-height:auto;
  }
}

/* Phase 1.6: SWIM FPL table and wider remarks */
.swim-card .swimrow{
  grid-template-columns:115px 1fr 130px;
}
.swim-fpl-box{
  margin-top:8px;
  border:1px solid #94a3b8;
  border-radius:8px;
  overflow:hidden;
  background:#f8fafc;
}
.swim-fpl-title{
  font-size:13px;
  font-weight:900;
  padding:6px 8px;
  background:#e0f2fe;
  border-bottom:1px solid #94a3b8;
}
.swim-fpl-table{
  width:100%;
  font-size:11px;
}
.swim-fpl-table th,
.swim-fpl-table td{
  border:1px solid #cbd5e1;
  padding:4px;
  text-align:center;
  white-space:nowrap;
}
.swim-fpl-table th{
  background:#f1f5f9;
  font-weight:900;
}
.remark-head{
  min-width:260px;
}
.wide-remark{
  min-width:260px;
}
.remark-input{
  min-width:260px;
}

@media(max-width:900px){
  .swim-fpl-box{overflow-x:auto;}
  .swim-fpl-table{min-width:900px;}
}

/* Phase 1.7 */
.ops-card{display:flex;flex-direction:column;gap:8px}.ops-grid{grid-template-columns:repeat(2,1fr)}.responsible-form{margin-top:auto}.small-button{padding:6px 9px;font-size:12px;margin-top:6px}.public-top-cards{align-items:stretch}.public-top-cards>.card{height:100%}.public-top-cards .ops-grid .wide{grid-column:span 2}@media(max-width:900px){.ops-grid{grid-template-columns:repeat(2,1fr)}}


/* Phase 1.8: payer check and public daily log */
.seat-cell{
  min-width:120px;
  vertical-align:top;
}
.payer-check{
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin-top:4px;
  font-size:11px;
  font-weight:800;
  color:#92400e;
  white-space:nowrap;
}
.payer-check input{
  width:auto;
  margin:0;
}
.payer-add{
  border:1px solid #cbd5e1;
  border-radius:8px;
  padding:6px;
  background:#f8fafc;
}
.payer-add>label:first-child{
  display:block;
  font-size:12px;
  font-weight:900;
  margin-bottom:2px;
}
.payer-check.add{
  margin-right:10px;
  font-size:13px;
}
.public-daily{
  margin-bottom:12px;
}
.public-log .public-seat{
  min-width:110px;
}
.readonly-meta .box{
  background:#f8fafc;
}
@media(max-width:900px){
  .public-daily .logwrap{display:none;}
  .public-daily .mobile-list{display:block;}
}


/* MGOS Phase 1.9 */
.public-large-meta .box b{font-size:15px;}
.public-large-meta .box{font-size:18px;font-weight:800;min-height:48px;}
.public-large-meta .box input,.public-large-meta .box select{font-size:18px;}
.entry-checks .checkline{display:flex;align-items:center;gap:6px;margin-top:4px;white-space:nowrap;}
.entry-checks input[type="checkbox"]{width:auto;transform:scale(1.15);}
@media(max-width:900px){.public-large-meta .box{font-size:16px;}}


/* MGOS Phase 1.10 */
.responsibility-stack{
  display:grid;
  grid-template-columns:1fr;
  gap:6px;
}
.participants-table th:first-child,
.participants-table td.participant-no{
  width:44px;
  text-align:center;
  font-weight:900;
}
.participants-table .check form{
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0;
}
.participants-table input[type="checkbox"]{
  width:auto;
  transform:scale(1.18);
}
.xwind-card{
  background:linear-gradient(180deg,#f8fafc 0%,#ffffff 100%);
}
.xwind-console{
  background:#020617;
  color:#d1fae5;
  border:3px solid #334155;
  border-radius:14px;
  padding:12px;
  box-shadow:inset 0 0 18px rgba(16,185,129,.18), 0 4px 12px rgba(15,23,42,.18);
}
.xwind-console-top{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:10px;
  margin-bottom:12px;
}
.xwind-console-field label{
  display:block;
  color:#93c5fd;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  margin-bottom:4px;
}
.xwind-console-field input,
.xwind-console-field select{
  background:#0f172a;
  color:#e0f2fe;
  border:1px solid #38bdf8;
  font-size:18px;
  font-weight:900;
  text-align:center;
  border-radius:8px;
}
.xwind-display{
  border:1px solid #22c55e;
  border-radius:12px;
  padding:12px;
  text-align:center;
  background:radial-gradient(circle at center,#052e16 0%,#020617 72%);
}
.xwind-label{
  color:#86efac;
  font-size:12px;
  font-weight:900;
  letter-spacing:.18em;
}
.xwind-display strong{
  display:block;
  color:#bbf7d0;
  font-size:44px;
  line-height:1.1;
  font-family:Consolas,"Courier New",monospace;
  text-shadow:0 0 10px rgba(34,197,94,.65);
}
.xwind-display .xwind-sub{
  color:#bfdbfe;
  font-size:13px;
  margin-top:6px;
}
@media(max-width:900px){
  .xwind-console-top{grid-template-columns:1fr;}
  .xwind-display strong{font-size:36px;}
}

/* MGOS Phase 2.1: NOAA METAR/TAF */
.weather-live .weather-raw{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}
.weather-live .taf-raw{
  max-height: 96px;
  overflow:auto;
}
.weather-source{
  margin-top:6px;
  font-size:11px;
  color:#475569;
  text-align:right;
}
.swim-card .swimrow{
  align-items:start;
}
/* MGOS Phase 2.2-3: フライト追加 現在時刻ボタン */
.time-now-field{
  display:grid;
  grid-template-columns:1fr auto;
  gap:4px;
  align-items:end;
}
.time-now-field label{
  grid-column:1 / -1;
}
.now-time-btn{
  padding:7px 8px;
  font-size:12px;
  white-space:nowrap;
}
@media(max-width:900px){
  .time-now-field{grid-template-columns:1fr;}
}


/* MGOS Phase 2.2-4: DAILY FLIGHT LOG 幅調整 */
.editable-log .no-cell{
  min-width:50px;
  width:50px;
}
.editable-log .method-cell{
  min-width:52px;
  width:52px;
}
.editable-log .method-cell .log-input{
  min-width:44px;
  padding-left:2px;
  padding-right:2px;
}
.editable-log .seat-cell{
  min-width:96px;
}
.seat-select-with-payer{
  display:grid;
  grid-template-columns:minmax(64px, 1fr) 18px;
  gap:3px;
  align-items:center;
}
.payer-check.compact{
  margin:0;
  padding:0;
  gap:0;
  font-size:0;
  justify-content:center;
  color:inherit;
}
.payer-check.compact input{
  margin:0;
  transform:scale(.9);
}
.editable-log .time-input{
  min-width:70px;
}


/* MGOS Phase 2.2-5: payer radio visibility and header sunset label */
.payer-check.compact input[type="radio"],
.payer-check.add input[type="radio"]{
  accent-color:#2563eb;
  opacity:1;
}
.completed-row .payer-check.compact input[type="radio"]{
  accent-color:#2563eb;
  opacity:1;
  filter:saturate(1.5);
  cursor:default;
}
.payer-add{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.payer-add>label:first-child{
  width:100%;
  margin-bottom:0;
}
.payer-check.add{
  margin-right:0;
}
.header-clock .clock-sunset{
  white-space:nowrap;
}


/* MGOS Phase 2.2-7: completed rows keep payer radio visible but locked */
.completed-row .payer-radio{
  pointer-events:none;
  accent-color:#2563eb;
  opacity:1;
}
.completed-row .payer-check.compact{
  cursor:default;
}


/* MGOS v0.9: operation, participants and edit log */
.op-mode-badge{margin-top:6px;font-size:13px;font-weight:900;color:#334155;background:#f1f5f9;border:1px solid #cbd5e1;border-radius:999px;display:inline-block;padding:4px 9px;}
.participant-table-wrap{overflow-x:auto;}
.participants-edit-table{min-width:860px;}
.participants-edit-table th,.participants-edit-table td{vertical-align:middle;}
.participant-input{width:100%;min-width:92px;padding:5px;border:1px solid #94a3b8;border-radius:6px;box-sizing:border-box;}
.participant-input.remarks{min-width:180px;}
.participant-actions{white-space:nowrap;}
.participant-actions .small-button{margin:0 2px;padding:5px 8px;}
.participant-add-form{margin-top:10px;padding-top:10px;border-top:1px dashed #94a3b8;}
.participant-add-grid{grid-template-columns:1fr 130px auto auto 1.5fr auto;align-items:center;}
.edit-log-card{margin-top:12px;}
.edit-log-table{font-size:12px;}
.edit-log-table th,.edit-log-table td{border:1px solid #cbd5e1;padding:5px;vertical-align:top;}
.edit-log-table th{background:#f1f5f9;}
.edit-log-table td{max-width:220px;overflow-wrap:anywhere;}
.completed-row .payer-radio:disabled{accent-color:#2563eb;opacity:1;filter:saturate(1.5);}
@media(max-width:900px){.participant-add-grid{grid-template-columns:1fr;}.edit-log-table{min-width:760px;}.edit-log-card{overflow-x:auto;}}

/* MGOS v0.9 paper-log refinements */
.tow-flight-time{
  min-width:48px;
  font-size:12px;
  color:#0f172a;
}
.wave-cell{
  min-width:42px;
  text-align:center;
}
.wave-cell input[type="checkbox"],
.wave-add input[type="checkbox"]{
  width:auto;
  transform:scale(1.12);
}
.wave-add{
  border:1px solid #cbd5e1;
  border-radius:8px;
  padding:6px;
  background:#f8fafc;
}
.wave-add>label:first-child{
  display:block;
  font-size:12px;
  font-weight:900;
  margin-bottom:2px;
}
.contacts-card{
  margin-top:12px;
}
.contacts-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(220px,1fr));
  gap:8px;
}
.contact-item{
  border:1px solid #9ca3af;
  border-radius:8px;
  padding:8px 10px;
  background:#f8fafc;
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
}
.contact-item b{
  font-size:13px;
}
.contact-item span{
  font-weight:900;
  font-size:16px;
  white-space:nowrap;
}
@media(max-width:900px){
  .contacts-grid{grid-template-columns:1fr;}
  .contact-item{display:block;}
  .contact-item span{display:block;margin-top:4px;}
}


/* MGOS v0.9 FIX: paper daily log column balance */
.editable-log .tow-pilot-cell{
  min-width:118px;
}
.editable-log .tow-pilot-cell .log-input{
  min-width:108px;
}
.editable-log .front-seat-cell,
.editable-log .rear-seat-cell{
  min-width:124px;
}
.editable-log .front-seat-cell .log-input,
.editable-log .rear-seat-cell .log-input{
  min-width:96px;
}
.editable-log .front-seat-cell .seat-select-with-payer,
.editable-log .rear-seat-cell .seat-select-with-payer{
  grid-template-columns:minmax(92px, 1fr) 18px;
}
.editable-log .remark-head,
.editable-log .wide-remark,
.editable-log .remark-input{
  min-width:180px;
}
.editable-log .remark-cell .log-input{
  min-width:170px;
}


/* v0.91 Phase3: viewer pages */
.mgos-view-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:12px 0 16px;
}
.mgos-view-tabs a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 14px;
  border-radius:999px;
  background:#eef4ff;
  color:#17406f;
  text-decoration:none;
  font-weight:700;
  border:1px solid #cfe0f7;
}
.mgos-view-tabs a:hover{background:#dfeeff;}
.view-nav{margin-bottom:14px;}
.view-nav-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:8px 0 12px;
}
.searchbar{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:end;
}
.searchbar input{
  min-width:260px;
  flex:1;
  padding:10px 12px;
  border:1px solid #cfd8e3;
  border-radius:10px;
  font-size:16px;
}
.search-log th,.search-log td{white-space:nowrap;}
.empty-message{
  text-align:center;
  color:#64748b;
  padding:18px;
  font-weight:700;
}
@media (max-width: 760px){
  .mgos-view-tabs a{flex:1 1 30%; font-size:13px; padding:8px 6px;}
  .searchbar input{min-width:100%;}
  .view-nav-buttons .button{flex:1 1 100%; text-align:center;}
}


/* v0.92 access control / QR */
.qr-card { text-align:center; }
.qr-box { display:flex; justify-content:center; align-items:center; padding:10px; background:#fff; border-radius:16px; border:1px solid #d6e2ef; margin:8px auto; max-width:230px; }
.qr-box img { width:200px; height:200px; }
.copy-url { font-size:12px; word-break:break-all; background:#f4f7fb; border:1px solid #dce7f3; padding:8px; border-radius:10px; margin:8px 0 12px; text-align:left; }
.small-note { color:#667085; font-size:13px; line-height:1.6; }
.access-card { max-width:680px; margin:24px auto; text-align:center; }
.archive-login { max-width:460px; margin:32px auto; }
.archive-login input[type=password] { width:100%; padding:12px; border:1px solid #ccd6e2; border-radius:10px; margin:8px 0 14px; }

/* v0.93 QR dashboard at bottom */
.qr-dashboard-card{
  margin-top:16px;
  border:2px solid #dbeafe;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
}
.qr-dashboard-layout{
  display:grid;
  grid-template-columns:280px 1fr;
  gap:18px;
  align-items:center;
}
.qr-dashboard-image h2,
.qr-dashboard-info h2{
  margin-top:0;
}
.qr-dashboard-image{
  text-align:center;
}
.viewer-stats-grid{
  display:grid;
  grid-template-columns:1fr 1fr 1.4fr;
  gap:12px;
  margin:10px 0 12px;
}
.viewer-stat{
  background:#ffffff;
  border:1px solid #d6e2ef;
  border-radius:16px;
  padding:14px;
  min-height:86px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.viewer-stat span{
  font-size:13px;
  color:#64748b;
  font-weight:800;
}
.viewer-stat strong{
  font-size:34px;
  line-height:1.1;
  color:#0f172a;
}
.viewer-stat.main strong{
  font-size:44px;
}
.viewer-stat em{
  font-style:normal;
  color:#475569;
  font-weight:700;
}
@media (max-width: 760px){
  .qr-dashboard-layout{grid-template-columns:1fr;}
  .viewer-stats-grid{grid-template-columns:1fr;}
}


/* =========================================================
   MGOS v0.93b: public viewer refinements
   ========================================================= */
.view-ops-grid .wide{
  grid-column:span 2;
}
.view-responsibility-stack{
  margin-top:6px;
}
.view-responsibility-stack .field{
  font-size:18px;
  font-weight:900;
  background:#f8fafc;
}
.view-responsibility-stack .field b{
  font-size:13px;
}

/* 閲覧画面：完了行と入力中行を色分け */
.public-log tr.completed-view-row > td,
.mobile-flight.completed-view-row{
  background:#e0f2fe;
}
.public-log tr.in-progress-view-row > td,
.mobile-flight.in-progress-view-row{
  background:#fff7ed;
}
.public-log tr.completed-view-row .input,
.public-log tr.completed-view-row .creator,
.public-log tr.completed-view-row .remark{
  background:#e0f2fe;
}
.public-log tr.in-progress-view-row .input,
.public-log tr.in-progress-view-row .creator,
.public-log tr.in-progress-view-row .remark{
  background:#fff7ed;
}

/* 閲覧画面：支払選択をボタン色で見える化 */
.public-payer{
  border:1px solid #cbd5e1;
  border-radius:999px;
  padding:3px 8px;
  background:#f8fafc;
  color:#64748b;
}
.public-payer input[type="radio"]{
  width:auto;
  accent-color:#2563eb;
  opacity:1;
}
.public-payer.selected{
  background:#dbeafe;
  border-color:#2563eb;
  color:#1d4ed8;
  box-shadow:inset 0 0 0 1px #2563eb;
}
.public-payer.selected input[type="radio"]:disabled{
  accent-color:#2563eb;
  opacity:1;
  filter:saturate(1.6);
}

/* 閲覧画面：参加者リスト */
.public-participants-card{
  margin-top:12px;
}
.public-participants-table{
  min-width:720px;
}
.public-participants-table th,
.public-participants-table td{
  border:1px solid #94a3b8;
  padding:6px 8px;
  text-align:center;
  font-size:14px;
}
.public-participants-table th{
  background:#e5e7eb;
}
.public-participants-table td:nth-child(2),
.public-participants-table td:nth-child(6){
  text-align:left;
}
.participant-summary-row td{
  background:#ecfeff;
  font-size:16px;
  font-weight:900;
  text-align:center !important;
}
@media(max-width:900px){
  .view-responsibility-stack .field{font-size:16px;}
  .public-participants-table{min-width:640px;}
}

/* =========================================================
   MGOS v0.94: flight search fields / public daily meta
   ========================================================= */
.flight-search-form{
  margin-top:14px;
}
.flight-search-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(150px, 1fr));
  gap:12px;
  align-items:end;
}
.flight-search-grid label{
  display:block;
  font-size:13px;
  font-weight:900;
  color:#334155;
  margin-bottom:4px;
}
.flight-search-grid input{
  width:100%;
  min-height:42px;
  border:1px solid #cbd5e1;
  border-radius:10px;
  padding:8px 10px;
  font-size:16px;
  background:#fff;
}
.flight-search-actions{
  margin-top:12px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.clickable-log-row{
  cursor:pointer;
}
.clickable-log-row:hover td{
  background:#eef6ff !important;
}
.mobile-flight-link{
  display:block;
  color:inherit;
  text-decoration:none;
}
.public-flight-meta .box{
  display:flex;
  flex-direction:column;
  gap:5px;
}
.public-meta-value{
  display:block;
  font-size:20px;
  font-weight:900;
  letter-spacing:.12em;
  line-height:1.35;
  color:#0f172a;
}
.public-flight-meta .wide .public-meta-value{
  font-size:19px;
}
@media(max-width:900px){
  .flight-search-grid{grid-template-columns:1fr 1fr;}
  .public-meta-value{font-size:18px;}
}
@media(max-width:560px){
  .flight-search-grid{grid-template-columns:1fr;}
}

/* =========================================================
   MGOS v0.95: Dashboard layout reorganization
   ========================================================= */
.top-cards{
  display:grid;
  grid-template-columns:1fr 1.65fr;
  gap:12px;
  align-items:stretch;
  margin:12px 0;
}
.radar-xwind-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  align-items:stretch;
  margin-top:12px;
}
.aircraft-summary-grid{
  display:grid;
  grid-template-columns:1.15fr 1fr;
  gap:12px;
  align-items:stretch;
  margin-top:12px;
}
.radar-xwind-grid > .card,
.aircraft-summary-grid > .card{
  height:100%;
  box-sizing:border-box;
  margin-bottom:0;
}
.radar-card .radar-box{
  min-height:210px;
  flex:1;
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:center;
  justify-content:center;
}
.radar-placeholder{
  font-size:20px;
  letter-spacing:.08em;
}
.aircraft-summary-grid table th,
.aircraft-summary-grid table td{
  border:1px solid #9ca3af;
  padding:6px;
  font-size:13px;
}
.aircraft-summary-grid table th{
  background:#f1f5f9;
}
@media(max-width:1100px){
  .top-cards,
  .radar-xwind-grid,
  .aircraft-summary-grid{
    grid-template-columns:1fr;
  }
}

/* v0.96a: DAILY FLIGHT LOG 編集日選択 */
.edit-date-card {
  margin-bottom: 16px;
}
.edit-date-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.edit-date-form label {
  font-weight: 700;
  color: #1f2937;
}
.edit-date-form input[type="date"] {
  font-size: 18px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
}
.edit-date-notice {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 700;
}

/* v0.96b LDG count */
.ldg-input { max-width: 64px; text-align: center; }
.ldg-cell { min-width: 66px; }
.ldg-add input { width: 90px; }

/* MGOS v0.96d: edit-date position and participant totals */
.daily-edit-date-card{
  margin-top:12px;
  border-color:#0f172a;
}
.participant-summary-box{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
  margin:8px 0 10px;
  padding:8px;
  border:1px solid #93c5fd;
  background:#eff6ff;
  border-radius:8px;
  font-weight:800;
}
.participant-summary-box span{
  background:#fff;
  border:1px solid #bfdbfe;
  border-radius:999px;
  padding:6px 10px;
}
.participant-summary-box strong{
  font-size:18px;
  color:#1d4ed8;
}
@media(max-width:900px){
  .participant-summary-box{justify-content:stretch;}
  .participant-summary-box span{width:100%;box-sizing:border-box;text-align:center;}
}

/* =========================================================
   MGOS v0.96e: FlightAware card and xwind relocation
   ========================================================= */
.radar-flightaware-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  align-items:stretch;
  margin-top:12px;
}
.radar-flightaware-grid > .card{
  height:100%;
  box-sizing:border-box;
  margin-bottom:0;
}
.flightaware-card .flightaware-map{
  min-height:210px;
  border:1px solid #cbd5e1;
  border-radius:14px;
  background:linear-gradient(135deg,#eff6ff,#f8fafc);
  padding:12px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:10px;
}
.flightaware-center{
  text-align:center;
  font-weight:800;
  letter-spacing:.08em;
  color:#1e3a8a;
  border:2px solid #93c5fd;
  background:#ffffffcc;
  border-radius:999px;
  padding:8px 12px;
}
.flightaware-aircraft-list{
  display:grid;
  gap:7px;
}
.flightaware-aircraft{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  background:#fff;
  border:1px solid #dbeafe;
  border-radius:10px;
  padding:8px 10px;
  font-size:13px;
}
.flightaware-aircraft b{color:#0f172a;}
.flightaware-aircraft span{color:#475569;}
.flightaware-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-top:10px;
  font-size:13px;
  color:#475569;
}
.xwind-between-card{
  margin-top:12px;
}
@media(max-width:1100px){
  .radar-flightaware-grid{
    grid-template-columns:1fr;
  }
  .flightaware-aircraft{
    flex-direction:column;
    align-items:flex-start;
  }
}

/* MGOS v0.96f: instrument-style crosswind calculator */
.xwind-instrument-card{
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
  border:1px solid #dbe5f1;
}
.xwind-instrument-card .xwind-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin-bottom:14px;
}
.xwind-instrument-card .xwind-header h2{
  margin:0;
  font-size:24px;
  color:#0f172a;
}
.xwind-instrument-card .xwind-header h2 span{
  margin-left:10px;
  color:#64748b;
  font-size:15px;
  font-weight:800;
}
.xwind-rwy-pill{
  display:flex;
  align-items:center;
  gap:12px;
  color:#334155;
  font-size:14px;
  font-weight:800;
}
.xwind-rwy-pill b{
  display:inline-block;
  min-width:110px;
  padding:10px 18px;
  color:#fff;
  text-align:center;
  font-size:18px;
  border-radius:10px;
  background:linear-gradient(135deg,#2563eb,#1d4ed8);
  box-shadow:0 8px 18px rgba(37,99,235,.22);
}
.xwind-instrument-grid{
  display:grid;
  grid-template-columns:minmax(360px,1.08fr) minmax(320px,.92fr);
  gap:18px;
  align-items:start;
}
.xwind-left-panel,
.xwind-right-panel{
  min-width:0;
}
.xwind-input-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-bottom:10px;
}
.xwind-input-row label{
  color:#0f172a;
  font-size:14px;
  font-weight:900;
}
.xwind-input-unit{
  display:flex;
  align-items:center;
  margin-top:6px;
  border:1px solid #cbd5e1;
  border-radius:10px;
  background:#fff;
  overflow:hidden;
}
.xwind-input-unit input{
  width:100%;
  border:0;
  border-radius:0;
  background:#fff;
  color:#0f172a;
  font-size:20px;
  font-weight:800;
  padding:12px 14px;
}
.xwind-input-unit em{
  min-width:46px;
  padding:12px 10px;
  text-align:center;
  border-left:1px solid #cbd5e1;
  color:#334155;
  font-style:normal;
  font-weight:900;
  background:#f8fafc;
}
.xwind-compass-wrap{
  display:flex;
  justify-content:center;
  align-items:center;
  padding:4px;
}
.xwind-compass{
  width:100%;
  max-width:540px;
  height:auto;
  display:block;
}
.xw-dial{
  fill:#f8fafc;
  stroke:#0f172a;
  stroke-width:2;
}
.xw-grid line{
  stroke:#94a3b8;
  stroke-width:1.1;
  stroke-dasharray:5 5;
}
#xwTicks line{
  stroke:#0f172a;
  stroke-linecap:round;
}
#xwTicks line.major{stroke-width:2.2;}
#xwTicks line.mid{stroke-width:1.5;}
#xwTicks line.minor{stroke-width:0.9;}
#xwTicks text{
  fill:#1e3a8a;
  font-size:11px;
  font-weight:800;
}
.xw-cardinal{
  fill:#dc2626;
  font-size:18px;
  font-weight:950;
}
.xw-cardinal-deg{
  fill:#dc2626;
  font-size:13px;
  font-weight:900;
}
.xw-runway{
  fill:#0f9488;
  opacity:.86;
}
.xw-centerline{
  stroke:#fff;
  stroke-width:2;
  stroke-dasharray:13 11;
  opacity:.82;
}
.xw-rwy-label{
  fill:#fff;
  font-size:22px;
  font-weight:950;
}
.xw-center-dot{
  fill:#fff;
  stroke:#0f9488;
  stroke-width:2;
}
.xw-wind-marker line{
  stroke:#60a5fa;
  stroke-width:4;
  stroke-linecap:round;
}
.xw-wind-marker circle{
  fill:#2563eb;
  stroke:#fff;
  stroke-width:2;
}
.xwind-right-panel{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.xwind-rwy-result{
  border:2px solid #22c55e;
  border-radius:13px;
  background:linear-gradient(180deg,#f0fdf4,#ffffff);
  padding:13px;
}
.xwind-rwy-result.result-32{
  border-color:#3b82f6;
  background:linear-gradient(180deg,#eff6ff,#ffffff);
}
.xwind-rwy-result h3{
  margin:0 0 10px;
  color:#16a34a;
  font-size:21px;
  font-weight:950;
}
.xwind-rwy-result.result-32 h3{color:#2563eb;}
.xwind-rwy-result h3 span{
  font-size:15px;
  font-weight:900;
}
.xwind-result-cells{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.xwind-result-cells div{
  min-height:104px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:10px;
  border:1px solid #dbe5f1;
  border-radius:10px;
  background:#fff;
  box-shadow:0 5px 14px rgba(15,23,42,.05);
}
.xwind-result-cells small{
  color:#334155;
  font-size:13px;
  font-weight:900;
  margin-bottom:6px;
}
.xwind-result-cells strong{
  color:#16a34a;
  font-size:40px;
  line-height:1;
  font-weight:950;
}
.xwind-result-cells div:nth-child(2) strong{color:#f59e0b;}
.xwind-result-cells span{
  margin-top:8px;
  color:#0f172a;
  font-size:13px;
  font-weight:900;
}
.xwind-summary-strip{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  border:1px solid #dbe5f1;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}
.xwind-summary-strip div{
  text-align:center;
  padding:12px 6px;
  border-right:1px solid #dbe5f1;
}
.xwind-summary-strip div:last-child{border-right:0;}
.xwind-summary-strip small{
  display:block;
  color:#334155;
  font-size:12px;
  font-weight:900;
  margin-bottom:5px;
}
.xwind-summary-strip b{
  color:#0f172a;
  font-size:20px;
  font-weight:950;
}
.xwind-judge{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:8px 18px;
  border:2px solid #f59e0b;
  border-radius:12px;
  padding:14px 16px;
  background:linear-gradient(180deg,#fffbeb,#fff);
}
.xwind-judge div{
  color:#0f172a;
  font-size:15px;
  font-weight:950;
}
.xwind-judge strong{
  grid-row:span 2;
  color:#f59e0b;
  font-size:38px;
  font-weight:950;
}
.xwind-judge span{
  display:inline-block;
  width:max-content;
  padding:5px 12px;
  border-radius:999px;
  background:#f59e0b;
  color:#fff;
  font-weight:950;
}
.xwind-judge.good{border-color:#22c55e;background:linear-gradient(180deg,#f0fdf4,#fff);}
.xwind-judge.good strong{color:#16a34a;}
.xwind-judge.good span{background:#16a34a;}
.xwind-judge.warning{border-color:#ef4444;background:linear-gradient(180deg,#fef2f2,#fff);}
.xwind-judge.warning strong{color:#dc2626;}
.xwind-judge.warning span{background:#dc2626;}
.xwind-footnote{
  margin-top:12px;
  padding:10px 12px;
  border:1px solid #dbe5f1;
  border-radius:10px;
  background:#f8fafc;
  color:#475569;
  font-size:13px;
  font-weight:800;
}
@media(max-width:980px){
  .xwind-instrument-grid{grid-template-columns:1fr;}
  .xwind-instrument-card .xwind-header{align-items:flex-start;flex-direction:column;}
}
@media(max-width:640px){
  .xwind-input-row,.xwind-result-cells,.xwind-summary-strip{grid-template-columns:1fr;}
  .xwind-summary-strip div{border-right:0;border-bottom:1px solid #dbe5f1;}
  .xwind-summary-strip div:last-child{border-bottom:0;}
  .xwind-result-cells strong{font-size:34px;}
  .xwind-judge{grid-template-columns:1fr;}
  .xwind-judge strong{grid-row:auto;}
}


/* =========================================================
   MGOS v1.0 Build001 Mobile UI
   PC版は維持し、スマホ幅だけ現場用の縦カードUIにする
   ========================================================= */
@media (max-width: 700px){
  body{background:#eef4fb;font-size:15px;}
  .wrap{max-width:none;margin:0;padding:8px;display:flex;flex-direction:column;gap:10px;}

  /* Header: compact mobile cockpit */
  .top.mgos-header{order:0;display:grid;grid-template-columns:1fr;gap:8px;padding:12px 14px;border-radius:14px;background:#172554;}
  .header-left{order:2;display:flex;align-items:center;justify-content:space-between;flex-direction:row;gap:8px;}
  .header-left .login-area{display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
  .header-left .mode{font-size:12px;padding:5px 10px;}
  .header-left .login-name{font-size:12px;color:#e0f2fe;}
  .header-left .button{padding:7px 9px;font-size:12px;}
  .header-center{order:0;text-align:left;}
  .header-center h1{font-size:18px;line-height:1.25;margin-bottom:2px;}
  .header-center .mgos-title{font-size:15px;font-weight:900;}
  .header-center .sub:not(.mgos-title){display:none;}
  .header-right{order:1;align-items:flex-start;text-align:left;}
  .header-clock{font-size:13px;line-height:1.25;}
  .clock-time{font-size:26px;font-weight:900;letter-spacing:.04em;}
  .clock-sunset{font-size:13px;}

  /* Top navigation */
  .mgos-view-tabs{order:1;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0;}
  .mgos-view-tabs a{display:block;text-align:center;padding:10px 8px;border-radius:999px;background:#eaf2ff;border:1px solid #bfdbfe;color:#1e3a8a;font-weight:800;text-decoration:none;}

  /* Let card grids become ordered mobile sections */
  .top-cards,.radar-flightaware-grid,.aircraft-summary-grid,.participant-row{display:contents!important;}
  .card,.daily{border-radius:14px;border:1px solid #cbd5e1;box-shadow:0 2px 10px rgba(15,23,42,.06);margin-bottom:0;padding:12px;overflow:visible;}
  .card h2{font-size:17px;border-bottom:1px solid #cbd5e1;margin-bottom:10px;}

  /* Dashboard mobile order: frequent operations first */
  .ops-card{order:10;}
  .daily-edit-date-card{order:18;}
  .daily.full-width{order:20;}
  .add-flight-card{order:25;}
  .participant-row{order:30;}
  .swim-card{order:40;}
  .radar-card{order:50;}
  .flightaware-card{order:55;}
  .aircraft-summary-grid .card:first-child{order:60;}
  .summary-card{order:65;}
  .xwind-between-card{order:70;}
  .contacts-card{order:80;}
  .actions{order:90;justify-content:stretch;gap:8px;}
  .actions .button,.actions form,.actions button{width:100%;box-sizing:border-box;text-align:center;}
  .qr-dashboard-card{order:100;}

  /* Today public view order */
  .public-daily{order:20;}
  .public-participants-card{order:30;}
  .public-entry-card{order:35;}
  .public-top-cards .swim-card{order:40;}
  .public-top-cards .radar-card{order:50;}

  /* Compact operation card */
  .status{font-size:28px;line-height:1.2;margin:8px 0;}
  .ops-grid,.grid,.view-ops-grid{grid-template-columns:1fr 1fr;gap:8px;}
  .field{border:1px solid #cbd5e1;border-radius:10px;background:#fff;padding:9px;min-height:auto;}
  .field b{font-size:11px;color:#475569;margin-bottom:3px;}
  .responsibility-stack{display:grid;grid-template-columns:1fr;gap:8px;}

  /* Forms: tap-friendly */
  input,select,textarea{font-size:16px;min-height:42px;border-radius:10px;padding:10px;}
  .button,.btn{font-size:15px;min-height:42px;border-radius:10px;padding:10px 12px;}
  .small-button{font-size:14px;min-height:38px;}
  .formgrid,.participant-add-grid{grid-template-columns:1fr!important;gap:10px;}
  .span2,.span3,.wide{grid-column:auto!important;}
  .inline-form{display:grid;grid-template-columns:1fr;gap:8px;}

  /* Daily log on mobile: card list first, table hidden */
  .daily{border:1px solid #94a3b8;}
  .titlebar{grid-template-columns:1fr;gap:4px;text-align:left;border-bottom:1px solid #cbd5e1;}
  .titlebar .title{font-size:20px;text-align:left;letter-spacing:.05em;}
  .titlebar .date{text-align:left;font-weight:900;color:#1e40af;}
  .meta{grid-template-columns:1fr!important;gap:8px;}
  .box{border:1px solid #cbd5e1;border-radius:10px;padding:9px;background:#fff;font-size:14px;}
  .legend{font-size:11px;text-align:left;color:#475569;}
  .logwrap{display:none!important;}
  .mobile-list{display:block!important;}
  .mobile-flight{border:1px solid #cbd5e1;border-radius:12px;background:#fff;padding:12px;margin:8px 0;line-height:1.65;box-shadow:0 1px 5px rgba(15,23,42,.05);}
  .mobile-flight b{font-size:16px;color:#0f172a;}
  .completed-view-row,.completed-row{background:#eaf5ff!important;}
  .in-progress-view-row,.editing-row{background:#fff7ed!important;}

  /* Participants */
  .participant-table-wrap{overflow-x:auto;}
  .participants-table th,.participants-table td{font-size:13px;padding:7px;}
  .participant-summary-box{display:grid;grid-template-columns:1fr;gap:6px;margin-top:10px;}
  .participant-summary-box span{border:1px solid #cbd5e1;border-radius:10px;padding:9px;background:#f8fafc;}

  /* Weather and SWIM: readable rows */
  .swimrow{grid-template-columns:1fr;gap:4px;border:1px solid #dbeafe;border-radius:10px;padding:9px;background:#f8fbff;}
  .swimrow .badge{width:max-content;}
  .swim-fpl-box{overflow-x:auto;}
  .weather-raw{white-space:normal;word-break:break-word;}

  /* Radar / FlightAware */
  .radar-flightaware-grid{grid-template-columns:1fr!important;}
  .radar-box,.flightaware-map{min-height:190px;border-radius:12px;}
  .flightaware-footer{display:grid;grid-template-columns:1fr;gap:8px;}

  /* Crosswind instrument: lower priority, single-column mobile */
  .xwind-card{padding:10px;}
  .xwind-header{display:grid;grid-template-columns:1fr;gap:8px;}
  .xwind-header h2{font-size:17px;}
  .xwind-rwy-pill{justify-self:start;width:100%;box-sizing:border-box;text-align:center;}
  .xwind-instrument-grid{display:grid!important;grid-template-columns:1fr!important;gap:12px;}
  .xwind-input-row{display:grid!important;grid-template-columns:1fr 1fr;gap:8px;}
  .xwind-compass-wrap{max-width:100%;overflow:hidden;}
  .xwind-compass{width:100%;height:auto;max-height:360px;}
  .xwind-right-panel{display:grid;grid-template-columns:1fr;gap:10px;}
  .xwind-result-cells{grid-template-columns:1fr 1fr;gap:8px;}
  .xwind-result-cells strong{font-size:30px;}
  .xwind-summary-strip{grid-template-columns:1fr 1fr 1fr;}

  /* QR */
  .qr-dashboard-layout{display:grid!important;grid-template-columns:1fr!important;gap:12px;}
  .qr-box img{max-width:220px;width:100%;height:auto;}
  .viewer-stats-grid{grid-template-columns:1fr!important;}
  .copy-url{font-size:11px;word-break:break-all;}

  /* Contacts */
  .contacts-grid{grid-template-columns:1fr!important;}
  .contact-item{border-radius:10px;}
}

@media (max-width: 420px){
  .wrap{padding:6px;}
  .mgos-view-tabs{grid-template-columns:1fr 1fr;gap:6px;}
  .mgos-view-tabs a{font-size:13px;padding:9px 4px;}
  .ops-grid,.grid,.view-ops-grid{grid-template-columns:1fr;}
  .xwind-input-row{grid-template-columns:1fr;}
  .xwind-result-cells{grid-template-columns:1fr;}
  .xwind-summary-strip{grid-template-columns:1fr;}
  .clock-time{font-size:24px;}
}

/* =========================================================
   MGOS v1.0 Build002 Mobile Daily Log fix
   - mobile order: operation -> DAILY LOG
   - mobile daily log rows are editable cards with checkbox
   ========================================================= */
.mobile-edit-date-inline{display:none;}
@media (max-width:700px){
  .daily-edit-date-card{display:none!important;}
  .daily.full-width{order:12!important;}
  .add-flight-card{order:14!important;}
  .swim-card{order:40!important;}
  .mobile-edit-date-inline{display:block;margin-bottom:10px;}
  .mobile-edit-date-form{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end;border:1px solid #cbd5e1;border-radius:12px;padding:10px;background:#f8fafc;}
  .mobile-edit-date-form label{grid-column:1 / -1;font-weight:900;color:#1e3a8a;font-size:13px;}
  .mobile-edit-date-form input{min-height:42px;}
  .mobile-edit-flight-list{display:block!important;}
  .mobile-flight-edit{border:1px solid #cbd5e1!important;background:#fff;border-radius:14px;padding:12px;margin:10px 0;box-shadow:0 1px 6px rgba(15,23,42,.06);}
  .mobile-flight-edit.editing-row{background:#fff7ed!important;}
  .mobile-flight-edit.completed-row{background:#eaf5ff!important;}
  .mobile-flight-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px;}
  .mobile-complete-check{font-weight:900;font-size:17px;color:#0f172a;display:flex;align-items:center;gap:8px;}
  .mobile-complete-check input{width:22px;height:22px;min-height:22px;}
  .mobile-save{min-height:36px;padding:7px 12px;font-size:13px;}
  .mobile-flight-title{font-weight:900;color:#1e40af;border-bottom:1px solid #cbd5e1;padding-bottom:6px;margin-bottom:8px;}
  .mobile-flight-grid{display:grid;grid-template-columns:1fr;gap:8px;}
  .mobile-flight-grid label,.mobile-payer-box>label:first-child,.mobile-remarks label{display:block;font-weight:900;font-size:12px;color:#334155;margin-bottom:3px;}
  .mobile-readonly{border:1px solid #cbd5e1;border-radius:10px;background:#f8fafc;min-height:42px;display:flex;align-items:center;padding:0 10px;font-weight:900;}
  .mobile-check-line{border:1px solid #cbd5e1;border-radius:10px;background:#fff;min-height:42px;display:flex!important;align-items:center;gap:8px;padding:0 10px;font-size:15px!important;color:#0f172a!important;}
  .mobile-check-line input{width:22px;height:22px;min-height:22px;}
  .mobile-payer-box{display:grid;grid-template-columns:1fr;gap:6px;border:1px solid #cbd5e1;border-radius:12px;background:#f8fafc;padding:9px;margin-top:8px;}
  .mobile-payer-box label:not(:first-child){display:flex;align-items:center;gap:8px;font-weight:800;}
  .mobile-payer-box input[type="radio"]{width:20px;height:20px;min-height:20px;}
  .mobile-remarks{margin-top:8px;}
  .mobile-flight-foot{font-size:12px;color:#64748b;margin-top:6px;text-align:right;}
}
@media (max-width:420px){
  .mobile-edit-date-form{grid-template-columns:1fr;}
}

/* =========================================================
   MGOS v1.0 Build003: Today View Mobile first
   QRで開く「今日の閲覧」をスマホで見やすいカード表示へ
   ========================================================= */
@media (max-width: 700px){
  /* 今日の閲覧は閲覧優先。ヘッダーを少し低く、本文を主役にする */
  .public-top-cards{display:contents!important;}
  .public-top-cards .ops-card{order:5!important;}
  .public-daily{order:10!important;}
  .public-participants-card{order:20!important;}
  .public-entry-card{order:25!important;}
  .public-top-cards .swim-card{order:30!important;}
  .public-top-cards .radar-card{order:40!important;}

  .public-top-cards .ops-card .status{
    font-size:32px;
    padding:10px 8px;
    border-radius:14px;
    background:#f0fdf4;
  }
  .public-top-cards .ops-card .status.ended,
  .public-top-cards .ops-card .ended{
    background:#fef2f2;
  }
  .view-responsibility-stack .field{
    font-size:16px;
    font-weight:900;
  }

  /* Daily Flight Logをスマホで一番見やすい形にする */
  .public-daily{
    padding:12px;
    border:1px solid #93c5fd;
    background:#ffffff;
  }
  .public-daily .titlebar{
    margin-bottom:10px;
  }
  .public-daily .titlebar > div:first-child{
    font-size:12px;
    color:#475569;
  }
  .public-daily .title{
    font-size:20px!important;
    letter-spacing:.04em!important;
  }
  .public-large-meta .box{
    background:#eff6ff;
  }
  .public-meta-value{
    font-size:17px!important;
    letter-spacing:.08em!important;
    font-weight:900;
  }
  .public-mobile-log{
    display:block!important;
    margin-top:10px;
  }
  .public-mobile-flight{
    border:1px solid #cbd5e1!important;
    border-radius:16px!important;
    padding:12px!important;
    margin:10px 0!important;
    box-shadow:0 2px 10px rgba(15,23,42,.07)!important;
    line-height:1.5!important;
  }
  .public-mobile-flight.completed-view-row{
    background:#eaf5ff!important;
    border-color:#93c5fd!important;
  }
  .public-mobile-flight.in-progress-view-row{
    background:#fff7ed!important;
    border-color:#fdba74!important;
  }
  .public-mobile-flight-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    margin-bottom:6px;
  }
  .public-mobile-flight-no{
    font-weight:900;
    font-size:16px;
    color:#0f172a;
  }
  .public-mobile-flight-badge{
    background:#1d4ed8;
    color:#fff;
    border-radius:999px;
    padding:4px 10px;
    font-weight:900;
    font-size:12px;
    min-width:42px;
    text-align:center;
  }
  .public-mobile-aircraft{
    font-size:20px;
    font-weight:900;
    color:#1e40af;
    margin-bottom:6px;
  }
  .public-mobile-seats{
    display:grid;
    grid-template-columns:1fr;
    gap:4px;
    border-top:1px solid #dbe5f1;
    padding-top:8px;
    font-size:15px;
  }
  .public-mobile-times{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:6px;
    margin-top:8px;
  }
  .public-mobile-times span{
    background:#f8fafc;
    border:1px solid #dbe5f1;
    border-radius:10px;
    padding:8px;
    text-align:center;
    font-weight:900;
    font-size:13px;
  }
  .public-mobile-sub{
    margin-top:8px;
    color:#475569;
    font-size:12px;
    font-weight:800;
  }
  .public-mobile-remarks{
    margin-top:8px;
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:10px;
    padding:8px;
    font-size:13px;
  }

  /* 参加者リストは横スクロールを避け、スマホでも読みやすく */
  .public-participants-card{padding:12px;}
  .public-participants-table th,
  .public-participants-table td{
    font-size:12px;
    padding:6px;
  }
  .participant-summary-row td{
    display:block;
    width:auto;
    border:0!important;
    padding:5px 8px!important;
    font-size:14px!important;
  }
  .participant-summary-row{
    display:block;
    border:1px solid #bfdbfe;
    border-radius:12px;
    background:#eff6ff;
    padding:6px;
    margin-top:8px;
  }

  /* 参加エントリーは下部でコンパクトに */
  .public-entry-card input,
  .public-entry-card select{
    min-height:44px;
  }
}
@media (max-width: 420px){
  .public-mobile-times{grid-template-columns:1fr;}
  .public-mobile-aircraft{font-size:18px;}
}

/* MGOS v1.0 Build004: mobile viewer entry gate and public view refinements */
.public-payer-none{
  margin-top:4px;
  display:inline-block;
  padding:4px 8px;
  border-radius:999px;
  background:#f1f5f9;
  color:#64748b;
  font-size:12px;
  font-weight:800;
}
.public-participant-summary-box{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-top:12px;
}
.public-participant-summary-box span{
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap:6px;
  padding:12px 10px;
  border:1px solid #cbd5e1;
  border-radius:14px;
  background:#f8fafc;
  color:#0f172a;
}
.public-participant-summary-box b{font-size:13px;color:#334155;}
.public-participant-summary-box strong{font-size:22px;color:#1e40af;line-height:1;}
.public-participant-summary-box em{font-style:normal;font-size:13px;color:#64748b;}
.entry-gate-wrap{max-width:720px;margin:0 auto;}
.entry-gate-card{border-top:6px solid #2563eb;}
.entry-gate-card h2{font-size:24px;margin-bottom:8px;}
.entry-gate-lead{font-size:16px;color:#334155;margin:6px 0 12px;}
.entry-gate-date{background:#eff6ff;border:1px solid #bfdbfe;border-radius:14px;padding:12px;margin-bottom:14px;color:#1e3a8a;}
.entry-gate-form input,.entry-gate-form select{min-height:44px;}
.entry-gate-button{width:100%;min-height:48px;font-size:16px;margin-top:12px;}
@media(max-width:900px){
  .public-participant-summary-box{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;}
  .public-participant-summary-box span{flex-direction:column;align-items:center;gap:3px;padding:9px 4px;border-radius:12px;}
  .public-participant-summary-box b{font-size:11px;white-space:nowrap;}
  .public-participant-summary-box strong{font-size:20px;}
  .public-participant-summary-box em{font-size:11px;}
  .public-entry-card{display:none!important;}
  .public-mobile-sub{font-weight:800;color:#334155;}
  .entry-gate-wrap{padding:0 2px;}
  .entry-gate-card{margin-top:10px;}
  .entry-gate-card h2{font-size:22px;}
  .entry-gate-grid{grid-template-columns:1fr!important;}
  .entry-gate-button{position:sticky;bottom:10px;box-shadow:0 8px 18px rgba(37,99,235,.22);}
}

/* MGOS v1.0 Build005: operation lifecycle status */
.status.before{color:#ca8a04;}
.status.active{color:#15803d;}
.status.none{color:#64748b;}
.status.ended{color:#dc2626;}

/* v1.0 Build006: aircraft master columns */
.aircraft-check-table{
  table-layout:auto;
  width:100%;
}
.aircraft-check-table th,
.aircraft-check-table td{
  vertical-align:middle;
}
.aircraft-check-table .aircraft-reg{
  font-weight:800;
  white-space:nowrap;
}
.aircraft-check-table .aircraft-model{
  min-width:84px;
  white-space:nowrap;
}
.aircraft-check-table .aircraft-type{
  min-width:74px;
  white-space:nowrap;
  font-size:12px;
}
.aircraft-check-table .aircraft-check{
  text-align:center;
  white-space:nowrap;
  width:44px;
}
.aircraft-check-table .aircraft-count{
  text-align:center;
  white-space:nowrap;
  min-width:54px;
  font-size:16px;
  font-weight:800;
}
.aircraft-check-table .aircraft-time{
  text-align:center;
  white-space:nowrap;
  min-width:72px;
  font-size:16px;
  font-weight:800;
}
.aircraft-check-table .aircraft-check input[type="checkbox"]{
  width:20px;
  height:20px;
}
@media(max-width:900px){
  .aircraft-check-table th,
  .aircraft-check-table td{
    padding:5px 4px;
    font-size:12px;
  }
  .aircraft-check-table .aircraft-type{
    font-size:11px;
  }
  .aircraft-master-add{
    grid-template-columns:1fr;
  }
}


/* Build008: 雨雲レーダー埋め込み */
.radar-embed-box{
  padding: 0;
  overflow: hidden;
}
.radar-embed-wrap{
  position: relative;
  width: 100%;
  min-height: 360px;
  border-radius: 14px;
  overflow: hidden;
  background: #eaf2f8;
}
.radar-iframe{
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}
.radar-note{
  margin: 10px 12px 6px;
  color: #5b6b7a;
  font-size: 13px;
}
@media (max-width: 700px){
  .radar-embed-wrap{ min-height: 300px; }
  .radar-iframe{ height: 320px; }
}

/* Build009 SWIMカード */
.swim-atis-text{
  white-space:pre-wrap;
  line-height:1.35;
  max-height:120px;
  overflow:auto;
  overflow-wrap:anywhere;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:12px;
}
.amedas-live .amedas-raw{
  white-space:nowrap;
  overflow-x:auto;
  overflow-y:hidden;
}
.swim-fpl-table .muted-cell{
  color:#64748b;
  text-align:center;
  padding:10px;
  background:#f8fafc;
}
@media(max-width:900px){
  .swimrow{grid-template-columns:72px 1fr;gap:5px;align-items:start}
  .swimrow>div:last-child{grid-column:2;color:#64748b;font-size:12px}
  .swim-atis-text{max-height:160px;font-size:12px}
  .swim-fpl-box{overflow:auto}
  .swim-fpl-table{min-width:900px}
}

/* Build016 SWIM login status */
.badge.ng{background:#fee2e2;color:#991b1b;}
.swim-login-row{border-bottom:1px solid #d1d5db;padding-bottom:5px;margin-bottom:7px;}

/* Build029 FPL debug */
.swim-fpl-debug {
  margin-top: 6px;
  font-size: 11px;
}
.swim-fpl-debug summary {
  cursor: pointer;
  color: #1d4ed8;
  font-weight: 700;
}
.swim-raw-pre {
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px;
  margin: 6px 0 0;
  font-size: 10px;
  line-height: 1.35;
}

/* Build041: SWIM Flight Plan browser embed */
.swim-fpl-embed-box {
  margin-top: 12px;
}
.swim-fpl-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 8px 0 10px;
}
.swim-fpl-iframe {
  width: 100%;
  min-height: 520px;
  border: 1px solid #d7e1ea;
  border-radius: 12px;
  background: #fff;
}
@media (max-width: 800px) {
  .swim-fpl-iframe {
    min-height: 420px;
  }
}

/* Build053: FPLはMGOS内取得・iframeをやめて別タブランチャーに集約 */
.fpl-launch-row .fpl-launch-button{
  padding:7px 12px;
  border-radius:999px;
  font-size:13px;
}
.fpl-launch-row .weather-source{
  text-align:right;
}
@media (max-width:800px){
  .fpl-launch-row .weather-source{
    text-align:left;
  }
}

/* =========================================================
   MGOS Build055: OpenSky + rain radar integrated airspace monitor
   ========================================================= */
.airspace-monitor-card{
  margin-top:12px;
}
.airspace-monitor-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-bottom:2px solid #1f2937;
  padding-bottom:8px;
  margin-bottom:8px;
}
.airspace-monitor-head h2{
  margin:0;
}
.airspace-monitor-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  align-items:stretch;
}
.airspace-panel{
  border:1px solid #cbd5e1;
  border-radius:12px;
  background:#f8fafc;
  padding:10px;
  min-width:0;
}
.airspace-panel h3{
  margin:0 0 8px 0;
  font-size:16px;
  color:#0f172a;
}
.compact-radar{
  min-height:260px;
}
.opensky-map{
  min-height:260px;
  border:1px solid #cbd5e1;
  border-radius:14px;
  background:linear-gradient(135deg,#eff6ff,#f8fafc);
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.opensky-center{
  text-align:center;
  font-weight:800;
  letter-spacing:.08em;
  color:#1e3a8a;
  border:2px solid #93c5fd;
  background:#ffffffcc;
  border-radius:999px;
  padding:8px 12px;
}
.opensky-aircraft-list{
  display:grid;
  gap:7px;
  overflow:auto;
  max-height:300px;
  padding-right:2px;
}
.opensky-aircraft{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  background:#fff;
  border:1px solid #dbeafe;
  border-radius:10px;
  padding:8px 10px;
  font-size:13px;
}
.opensky-aircraft b{color:#0f172a;white-space:nowrap;}
.opensky-aircraft span{color:#475569;text-align:right;}
.opensky-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-top:10px;
  font-size:13px;
  color:#475569;
}
@media(max-width:1100px){
  .airspace-monitor-grid{grid-template-columns:1fr;}
  .airspace-monitor-head{align-items:flex-start;flex-direction:column;}
  .opensky-aircraft{flex-direction:column;align-items:flex-start;}
  .opensky-aircraft span{text-align:left;}
}

/* MGOS Build056: API不要 航空機ライブマップ埋め込み */
.airspace-action-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:flex-end;}
.traffic-panel{min-height:520px;}
.traffic-embed-box{border:1px solid #bfdbfe;border-radius:14px;overflow:hidden;background:#eaf3ff;height:460px;}
.traffic-iframe{width:100%;height:100%;border:0;display:block;background:#dbeafe;}
.traffic-footer{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:8px;color:#475569;font-size:12px;}
@media (max-width: 900px){
  .airspace-action-row{justify-content:flex-start;}
  .traffic-embed-box{height:360px;}
}

/* =========================================================
   MGOS Build057 beta: 本日の閲覧レイアウト整理
   PC: 運航状況 + 気象・SWIM / DAILY / 雨雲 + ライブマップ / 参加者
   Mobile: 運航状況 → 気象・SWIM → DAILY → 雨雲 → ライブマップ → 参加者
   ========================================================= */
.public-view-top-grid{
  display:grid;
  grid-template-columns:minmax(320px,0.95fr) minmax(420px,1.45fr);
  gap:12px;
  align-items:stretch;
  margin:12px 0;
}
.public-view-top-grid > .card{
  height:100%;
  box-sizing:border-box;
}
.public-view-ops-card .status{
  margin-bottom:8px;
}
.public-view-ops-card .view-ops-grid{
  grid-template-columns:repeat(2,minmax(120px,1fr));
}
.public-view-swim-card .swimrow{
  grid-template-columns:115px minmax(0,1fr) 150px;
  align-items:start;
  gap:8px;
}
.public-view-swim-card .swimrow .button.small-button{
  padding:6px 8px;
  font-size:12px;
  white-space:nowrap;
}
.public-swim-link-box{
  margin-top:10px;
  padding:10px;
  border:1px solid #bfdbfe;
  border-radius:10px;
  background:#eff6ff;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.public-swim-link-box span{
  color:#475569;
  font-size:13px;
  font-weight:800;
}
.public-airspace-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  align-items:stretch;
  margin:12px 0;
}
.public-airspace-grid > .card{
  height:100%;
  box-sizing:border-box;
}
.public-airspace-grid .radar-box{
  aspect-ratio:auto;
  min-height:0;
}
.public-airspace-grid .radar-embed-wrap{
  min-height:360px;
}
.public-airspace-grid .radar-iframe{
  height:380px;
}
.public-traffic-embed-box{
  height:420px;
}
.public-participants-card{
  margin-top:12px;
}
@media(max-width:1100px){
  .public-view-top-grid,
  .public-airspace-grid{
    grid-template-columns:1fr;
  }
  .public-view-swim-card .swimrow{
    grid-template-columns:105px minmax(0,1fr) 120px;
  }
}
@media(max-width:700px){
  .public-view-top-grid,
  .public-airspace-grid{
    display:block;
  }
  .public-view-top-grid > .card,
  .public-airspace-grid > .card{
    margin-bottom:12px;
  }
  .public-view-ops-card{order:1;}
  .public-view-swim-card{order:2;}
  .public-daily{order:3;}
  .public-radar-card{order:4;}
  .public-traffic-card{order:5;}
  .public-participants-card{order:6;}
  .public-view-swim-card .swimrow{
    grid-template-columns:88px 1fr;
  }
  .public-view-swim-card .swimrow > div:last-child{
    grid-column:2;
    font-size:12px;
  }
  .public-swim-link-box{
    display:block;
  }
  .public-swim-link-box .button{
    width:100%;
    box-sizing:border-box;
    margin-bottom:8px;
  }
  .public-airspace-grid .radar-embed-wrap{
    min-height:300px;
  }
  .public-airspace-grid .radar-iframe{
    height:320px;
  }
  .public-traffic-embed-box{
    height:340px;
  }
}


/* MGOS v1.0 Build058: smartphone public participant summary cleanup */
@media (max-width: 900px){
  /* スマホ閲覧ページでは表内の集計行を非表示。下の3枚カードは残す。 */
  .public-participants-table .table-summary-row{
    display:none !important;
  }
  .public-participant-summary-box{
    display:grid !important;
    grid-template-columns:repeat(3, minmax(0,1fr));
    gap:6px;
  }
  .public-participant-summary-box span{
    padding:9px 4px;
    flex-direction:column;
    align-items:center;
    gap:2px;
  }
  .public-participant-summary-box b{font-size:11px;}
  .public-participant-summary-box strong{font-size:20px;}
}

/* Build061: DAILY FLIGHT LOG削除・参加者自動保存 */
.flight-delete-cell{background:#fff1f2;min-width:54px;}
.flight-delete-button{padding:4px 7px;font-size:11px;}
.autosave-note{display:inline-block;color:#047857;background:#d1fae5;border-radius:999px;padding:4px 8px;font-size:12px;font-weight:800;white-space:nowrap;}
.mobile-delete{margin-left:6px;}
@media(max-width:900px){.mobile-flight-head{gap:6px;flex-wrap:wrap}.mobile-delete{margin-left:0}}

/* MGOS v1.0 Build062: date view layout and search behavior */
.date-daily-meta{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.date-daily-meta .box{
  min-height:42px;
}
.date-remark-cell{
  text-align:left!important;
  white-space:normal!important;
  line-height:1.35;
}
.search-log .wide-remark{
  text-align:left!important;
  white-space:normal!important;
}
.date-participants-section{
  margin-top:14px;
  border-top:2px solid #111;
  padding-top:10px;
}
.date-participant-counts{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.search-log tr{
  cursor:default!important;
}
@media(max-width:900px){
  .date-daily-meta{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .date-participant-counts{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}


/* MGOS v1.0 Build063: viewer fine tuning */
.entry-already-box{
  margin-top:14px;
  padding-top:12px;
  border-top:1px dashed #94a3b8;
  text-align:center;
}
.entry-already-button{
  width:100%;
  box-sizing:border-box;
}
.date-daily-meta{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
.date-daily-meta .box:nth-child(5){
  grid-column:1;
}
@media(max-width:900px){
  .date-daily-meta{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .date-daily-meta .box:nth-child(5){
    grid-column:auto;
  }
}
@media(max-width:700px){
  .wrap:has(.public-view-top-grid){
    display:flex;
    flex-direction:column;
  }
  .public-view-top-grid,
  .public-airspace-grid{
    display:contents!important;
  }
  .public-view-ops-card{order:1;}
  .public-view-swim-card{order:2;}
  .public-daily{order:3;}
  .public-participants-card{order:4!important;}
  .public-radar-card{order:5;}
  .public-traffic-card{order:6;}
  .public-view-top-grid > .card,
  .public-airspace-grid > .card{
    margin-bottom:12px;
  }
}

/* MGOS v1.0 Build065: date daily log paper layout adjustment */
.date-daily-meta-build065 .box b{
  display:inline;
  margin-right:0;
}
.date-daily-meta-build065 .box{
  white-space:normal;
}

/* Build066: 日付別閲覧 飛行記録下の左右2カラム集計 */
.date-under-flight-grid{
  display:grid;
  grid-template-columns:minmax(0, 1.35fr) minmax(260px, .65fr);
  gap:18px;
  align-items:start;
  margin-top:14px;
}
.date-under-flight-grid .legend{
  margin-top:0;
}
.compact-logwrap{
  overflow-x:auto;
}
.paper-summary-table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  font-size:14px;
}
.paper-summary-table th,
.paper-summary-table td{
  border:1px solid #2b2f36;
  padding:7px 8px;
  text-align:center;
  vertical-align:middle;
  white-space:nowrap;
}
.paper-summary-table th{
  background:#f1f5f9;
  font-weight:800;
}
.date-aircraft-time-table td.aircraft-reg,
.date-aircraft-time-table td.aircraft-model{
  text-align:left;
}
.date-aircraft-time-table td.aircraft-count,
.date-aircraft-time-table td.aircraft-time,
.date-daily-summary-table td:last-child{
  text-align:right;
  font-variant-numeric:tabular-nums;
}
.date-daily-summary-table td:first-child{
  text-align:left;
  font-weight:700;
}
@media (max-width: 760px){
  .date-under-flight-grid{
    grid-template-columns:1fr;
    gap:14px;
  }
  .paper-summary-table{
    font-size:13px;
  }
  .paper-summary-table th,
  .paper-summary-table td{
    padding:6px 7px;
  }
}

/* Build067: 印刷/PDF/CSV出力 */
.export-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
  margin:10px 0 12px;
}
@media print{
  @page{ size:A4 landscape; margin:8mm; }
  body.mgos-printing-section *{
    visibility:hidden!important;
  }
  body.mgos-printing-section .mgos-print-target,
  body.mgos-printing-section .mgos-print-target *{
    visibility:visible!important;
  }
  body.mgos-printing-section .mgos-print-target{
    position:absolute!important;
    left:0!important;
    top:0!important;
    width:100%!important;
    margin:0!important;
    box-shadow:none!important;
  }
  .no-print,
  .export-actions,
  .mgos-view-tabs,
  .top{
    display:none!important;
  }
  .logwrap,
  .compact-logwrap{
    overflow:visible!important;
  }
  .daily,
  .card{
    box-shadow:none!important;
    border:none!important;
  }
  .public-log,
  .paper-summary-table,
  .participants-table{
    font-size:9.5px!important;
  }
  .public-log th,
  .public-log td,
  .paper-summary-table th,
  .paper-summary-table td,
  .participants-table th,
  .participants-table td{
    padding:3px 4px!important;
  }
  .titlebar .title{
    font-size:18px!important;
  }
  .mobile-list{
    display:none!important;
  }
}

/* Build068: 日付別DAILY FLIGHT LOG PDF/印刷時に飛行記録テーブルが消える問題を修正
   スマホ幅では通常表示で .logwrap が display:none になるため、印刷時だけ表形式を強制表示する。 */
@media print{
  body.mgos-printing-section .mgos-print-target .logwrap,
  body.mgos-printing-section .mgos-print-target .compact-logwrap{
    display:block!important;
    visibility:visible!important;
    overflow:visible!important;
  }
  body.mgos-printing-section .mgos-print-target .logwrap table,
  body.mgos-printing-section .mgos-print-target .compact-logwrap table{
    display:table!important;
    visibility:visible!important;
  }
  body.mgos-printing-section .mgos-print-target .logwrap tr,
  body.mgos-printing-section .mgos-print-target .compact-logwrap tr{
    display:table-row!important;
    visibility:visible!important;
  }
  body.mgos-printing-section .mgos-print-target .logwrap th,
  body.mgos-printing-section .mgos-print-target .logwrap td,
  body.mgos-printing-section .mgos-print-target .compact-logwrap th,
  body.mgos-printing-section .mgos-print-target .compact-logwrap td{
    display:table-cell!important;
    visibility:visible!important;
  }
  body.mgos-printing-section .mgos-print-target .mobile-list{
    display:none!important;
  }
}


/* Build069: 日別DAILY FLIGHT LOG 印刷時の飛行記録右端切れ対策・参加者表整理 */
@media print{
  body.mgos-printing-section .mgos-print-target{
    box-sizing:border-box!important;
    max-width:100%!important;
    overflow:visible!important;
  }
  body.mgos-printing-section .mgos-print-target .date-daily-flight-table{
    width:100%!important;
    table-layout:fixed!important;
    font-size:6.8px!important;
  }
  body.mgos-printing-section .mgos-print-target .date-daily-flight-table th,
  body.mgos-printing-section .mgos-print-target .date-daily-flight-table td{
    padding:2px 2px!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    word-break:break-word!important;
    line-height:1.15!important;
  }
  body.mgos-printing-section .mgos-print-target .date-daily-flight-table .remark-head,
  body.mgos-printing-section .mgos-print-target .date-daily-flight-table .date-remark-cell{
    width:9%!important;
  }
  body.mgos-printing-section .mgos-print-target .date-daily-flight-table .creator{
    width:5%!important;
  }
  body.mgos-printing-section .mgos-print-target .titlebar{
    grid-template-columns:160px 1fr 220px!important;
  }
  body.mgos-printing-section .mgos-print-target .date-daily-meta{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
  body.mgos-printing-section .mgos-print-target .date-under-flight-grid{
    grid-template-columns:minmax(0,1.35fr) minmax(180px,.65fr)!important;
    gap:8px!important;
  }
  body.mgos-printing-section .mgos-print-target .date-participants-table{
    table-layout:fixed!important;
  }
  body.mgos-printing-section .mgos-print-target .date-participants-table th:nth-child(1),
  body.mgos-printing-section .mgos-print-target .date-participants-table td:nth-child(1){width:30%!important;}
  body.mgos-printing-section .mgos-print-target .date-participants-table th:nth-child(2),
  body.mgos-printing-section .mgos-print-target .date-participants-table td:nth-child(2){width:18%!important;}
  body.mgos-printing-section .mgos-print-target .date-participants-table th:nth-child(3),
  body.mgos-printing-section .mgos-print-target .date-participants-table td:nth-child(3){width:52%!important;text-align:left!important;white-space:normal!important;}
}

/* Build070: 宮城県航空協会フライトシステム入口・管理画面 */
.page-head { margin: 18px 0 16px; text-align: center; }
.page-head h2 { margin: 0 0 6px; font-size: 1.65rem; letter-spacing: .03em; }
.page-head .sub { margin: 0; color: #5f6b7a; }
.system-grid { display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 16px; margin: 18px 0 28px; }
.system-card { display: block; text-decoration: none; color: inherit; background: #fff; border: 1px solid #d9e2ec; border-radius: 16px; padding: 20px; box-shadow: 0 6px 18px rgba(20,40,60,.07); min-height: 170px; }
.system-card:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(20,40,60,.1); }
.system-card.primary { border-color: #9fc5e8; background: linear-gradient(180deg, #f7fbff 0%, #ffffff 65%); }
.system-card.muted { background: #f8fafc; color: #687789; }
.system-card-kicker { font-size: .78rem; font-weight: 700; color: #426b94; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.system-card h3 { margin: 0 0 10px; font-size: 1.28rem; }
.system-card p { margin: 0 0 14px; line-height: 1.65; }
.system-card-link { font-weight: 700; color: #235d96; }
.badge-soft { display: inline-block; padding: 5px 10px; border-radius: 999px; background: #e9eef5; color: #5f6b7a; font-size: .85rem; font-weight: 700; }
.master-table { width: 100%; border-collapse: collapse; }
.master-table th, .master-table td { border: 1px solid #cfd8e3; padding: 8px 10px; text-align: left; }
.master-table th { background: #eef4fa; }
@media (max-width: 760px) {
  .system-grid { grid-template-columns: 1fr; }
  .system-card { min-height: auto; }
  .page-head h2 { font-size: 1.35rem; }
}


/* Build070 MKOS/MKDS login branding */
.mkos-login-wrap{
  min-height: calc(100vh - 220px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px 12px 48px;
}
.mkos-login-card{
  width:min(520px, 100%);
  background:#ffffff;
  border:1px solid #d7e0ea;
  border-radius:20px;
  box-shadow:0 16px 45px rgba(15, 23, 42, .16);
  overflow:hidden;
}
.mkos-login-brand{
  text-align:center;
  padding:30px 28px 18px;
  background:linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border-bottom:1px solid #e5edf5;
}
.mkos-logo{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:116px;
  height:54px;
  border-radius:16px;
  background:#0f2742;
  color:#ffffff;
  font-size:30px;
  font-weight:800;
  letter-spacing:.08em;
  margin-bottom:14px;
}
.mkos-login-brand h2{
  margin:4px 0 6px;
  font-size:23px;
  color:#10233f;
}
.mkos-login-brand p{
  margin:0;
  color:#64748b;
  font-size:13px;
}
.mkos-login-system{
  display:flex;
  align-items:center;
  gap:14px;
  margin:20px 28px 8px;
  padding:14px 16px;
  border:1px solid #dbe6f2;
  border-radius:16px;
  background:#f8fafc;
}
.mkds-logo{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  width:76px;
  height:42px;
  border-radius:12px;
  background:#1e5f8f;
  color:#fff;
  font-size:20px;
  font-weight:800;
  letter-spacing:.06em;
}
.mkos-login-system h3{margin:0 0 2px;color:#10233f;font-size:20px;}
.mkos-login-system p{margin:0;color:#64748b;font-size:13px;}
.mkos-login-form{padding:14px 28px 24px;}
.mkos-login-form label{display:block;margin:12px 0 6px;font-weight:700;color:#334155;}
.mkos-login-form input{
  width:100%;
  box-sizing:border-box;
  padding:13px 14px;
  border:1px solid #cbd5e1;
  border-radius:12px;
  font-size:16px;
  background:#fff;
}
.mkos-login-button{width:100%;margin-top:18px;padding:13px 16px;font-size:16px;}
.login-error{
  margin:14px 28px 0;
  padding:10px 12px;
  border-radius:10px;
  background:#fff1f2;
  color:#be123c;
  border:1px solid #fecdd3;
  font-weight:700;
}
.mkos-login-note{
  text-align:center;
  padding:12px;
  background:#f1f5f9;
  color:#64748b;
  font-size:12px;
}
@media (max-width: 640px){
  .mkos-login-wrap{padding:12px 8px 28px;align-items:flex-start;}
  .mkos-login-brand{padding:24px 16px 16px;}
  .mkos-login-brand h2{font-size:19px;}
  .mkos-login-system{margin:16px 16px 4px;}
  .mkos-login-form{padding:12px 16px 20px;}
}

/* Build072 public portal / public users */
.public-page-head { text-align: center; }
.public-system-grid { max-width: 920px; margin: 0 auto; }
.public-logout { text-align: center; margin-top: 18px; }
.master-inline-form { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)) auto; gap: 12px; align-items: end; }
.master-inline-form label { font-weight: 700; font-size: 13px; }
.master-inline-form input, .master-inline-form select, .master-table input, .master-table select { width: 100%; box-sizing: border-box; padding: 8px; border: 1px solid #cbd5e1; border-radius: 8px; }
.button.small { padding: 6px 10px; font-size: 12px; }
.button.danger { background: #b91c1c; color: #fff; }
.actions-cell { white-space: nowrap; }
.success { background: #ecfdf5; border: 1px solid #10b981; color: #065f46; padding: 10px 12px; border-radius: 10px; margin: 10px 0; }
@media (max-width: 760px) { .master-inline-form { grid-template-columns: 1fr; } }

/* Build074: aircraft master edit */
.alert{padding:10px 12px;border-radius:10px;margin:10px 0;font-weight:700;}
.alert.success{background:#e8f7ee;border:1px solid #a9e0bd;color:#176332;}
.alert.danger{background:#fff0f0;border:1px solid #f0b0b0;color:#8a1f1f;}
.form-grid.master-aircraft-grid{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:12px;align-items:end;}
.master-form label{display:flex;flex-direction:column;gap:5px;font-weight:700;color:#263145;}
.master-form input,.master-form select,.aircraft-master-table input,.aircraft-master-table select{width:100%;box-sizing:border-box;border:1px solid #cfd7e6;border-radius:8px;padding:7px 8px;background:#fff;}
.aircraft-master-table th,.aircraft-master-table td{vertical-align:middle;}
.aircraft-master-table td{min-width:84px;}
.aircraft-master-table .action-cell{white-space:nowrap;min-width:110px;}
.btn.small{padding:6px 9px;font-size:.85rem;}
.btn.danger{background:#b42318;color:#fff;border-color:#b42318;}
.table-wrap{overflow-x:auto;}
@media (max-width: 760px){.form-grid.master-aircraft-grid{grid-template-columns:1fr 1fr;}.aircraft-master-table{font-size:12px;}.aircraft-master-table input,.aircraft-master-table select{padding:5px 6px;}}

/* Build075: aircraft check/radio checkboxes */
.aircraft-check-form{display:flex;gap:14px;align-items:center;justify-content:center;margin:0;}
.aircraft-check-form label{display:inline-flex;align-items:center;justify-content:center;min-width:22px;}


/* Build077 SWIM diagnostic */
.debug-pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  max-height: 520px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.5;
}
.plain-list { margin: 0; padding-left: 1.4rem; }
.plain-list li { margin: 0.25rem 0; }
.status-pill.ok { background: #dcfce7; color: #166534; }
.status-pill.ng { background: #fee2e2; color: #991b1b; }
.status-pill.new { background: #e0f2fe; color: #075985; }

/* Build098: 搭乗ボード */
.boarding-board-card{margin-top:18px}.boarding-board-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.boarding-board-head h2{margin-bottom:4px}.boarding-board-note{margin:0;color:#56616f;font-size:.92rem}.boarding-save-status{border:1px solid #b7d9c2;background:#eef9f1;color:#1d6b35;border-radius:999px;padding:5px 12px;font-size:.84rem;white-space:nowrap}.boarding-save-status.saving{border-color:#e4cc8b;background:#fff8df;color:#735400}.boarding-save-status.error{border-color:#e2aaaa;background:#fff0f0;color:#a32020}.boarding-source-area{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(180px,.35fr);gap:12px;margin:15px 0}.boarding-source-group,.boarding-remove-zone{border:1px solid #d8dee7;border-radius:10px;padding:10px;background:#f8fafc}.boarding-source-group b{display:block;margin-bottom:7px}.boarding-source-list{display:flex;gap:7px;flex-wrap:wrap;min-height:36px}.boarding-chip{display:inline-flex;align-items:center;gap:2px;border:1px solid #98abc1;background:white;border-radius:8px;padding:7px 10px;font-weight:700;line-height:1;cursor:grab;box-shadow:0 1px 2px rgba(0,0,0,.05);user-select:none}.boarding-chip:active{cursor:grabbing}.boarding-chip.is-dragging{opacity:.38}.boarding-chip.tag-chip{border-color:#b997d6;background:#f5edff;color:#5b2d7b}.boarding-remove-zone{display:flex;align-items:center;justify-content:center;text-align:center;color:#77818e;border-style:dashed}.boarding-remove-zone.drag-over{background:#fff1f1;border-color:#c94d4d;color:#a12626}.boarding-aircraft-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.boarding-aircraft{border:2px solid #bcc9d8;border-radius:12px;overflow:hidden;background:#fff}.boarding-aircraft-title{display:flex;align-items:baseline;gap:10px;padding:10px 12px;background:#eaf0f7;border-bottom:1px solid #c9d3df}.boarding-aircraft-title strong{font-size:1.15rem;color:#173d63}.boarding-aircraft-title span{color:#5f6c79;font-size:.9rem}.boarding-lanes{display:grid;grid-template-columns:1fr 1fr}.boarding-lane-wrap+ .boarding-lane-wrap{border-left:1px solid #d8dee7}.boarding-lane-title{padding:8px 10px;background:#f8fafc;font-size:.84rem;font-weight:800;text-align:center;color:#40556d;border-bottom:1px solid #e0e5eb}.boarding-dropzone{min-height:120px;padding:8px;display:flex;flex-direction:column;gap:7px;transition:.12s;background:linear-gradient(#fff,#fbfcfd)}.boarding-dropzone:empty:after{content:'ここへドロップ';display:flex;align-items:center;justify-content:center;min-height:95px;color:#a0a9b4;font-size:.85rem;border:1px dashed #d6dce3;border-radius:7px}.boarding-dropzone.drag-over{background:#edf8ff;box-shadow:inset 0 0 0 2px #52a1d8}.board-chip{width:100%;box-sizing:border-box;justify-content:flex-start}.boarding-order{font-weight:500;color:#788491;min-width:23px}.boarding-chip-remove{margin-left:auto;border:0;background:transparent;color:#9a4350;font-size:1rem;cursor:pointer;padding:0 2px}.boarding-empty{padding:24px;border:1px dashed #cbd3dd;border-radius:10px;text-align:center;color:#687582;background:#fafbfc}
@media(max-width:900px){.boarding-source-area{grid-template-columns:1fr}.boarding-aircraft-grid{grid-template-columns:1fr}.boarding-board-head{flex-direction:column}.boarding-lanes{grid-template-columns:1fr}.boarding-lane-wrap+ .boarding-lane-wrap{border-left:0;border-top:1px solid #d8dee7}}

/* Build099: 搭乗ボード下部パレット・単座表示・LOG転記 */
.boarding-source-bottom{margin-top:18px;border-top:1px solid #d9e2ec;padding-top:14px}
.boarding-seat-badge{margin-left:auto;font-size:12px;font-weight:700;padding:3px 8px;border-radius:999px;background:#eef3f8;color:#334e68}
.single-seat-aircraft .boarding-lanes{grid-template-columns:1fr}
.boarding-row-actions{margin-top:10px;border-top:1px dashed #ccd6e0;padding-top:8px;display:flex;flex-direction:column;gap:6px}
.boarding-log-row{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f8fafc;border:1px solid #e1e8ef;border-radius:8px;padding:6px 8px;font-size:13px}
.boarding-log-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.boarding-to-log{flex:0 0 auto}
@media (max-width: 700px){
  .boarding-log-row{font-size:12px}
  .boarding-seat-badge{margin-left:6px}
}

/* Build100: 搭乗ボード先頭LOG・空域気象監視折り畳み */
.boarding-row-actions{display:flex;justify-content:flex-end;margin:6px 0 8px}
.boarding-log-first-row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:7px 9px;border:1px solid #b8d9c1;border-radius:8px;background:#f2fbf4}
.boarding-log-first-row .boarding-to-log{margin-left:auto;white-space:nowrap}
.airspace-monitor-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none}
.airspace-monitor-summary::-webkit-details-marker{display:none}
.airspace-monitor-summary h2{margin:0}
.airspace-monitor-summary::after{content:'▼';font-size:14px;transition:transform .2s ease}
.airspace-monitor-card[open] .airspace-monitor-summary::after{transform:rotate(180deg)}
.airspace-monitor-content{margin-top:14px}
.collapse-hint{font-size:12px;color:#667085;margin-left:auto}


/* Build101: 搭乗ボード左右分割・折り畳み、参加者区分、横風計算折り畳み */
.boarding-board-summary{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;cursor:pointer;list-style:none}
.boarding-board-summary::-webkit-details-marker,.xwind-summary-header::-webkit-details-marker{display:none}
.boarding-summary-right{display:flex;align-items:center;gap:12px;flex:0 0 auto}
.boarding-board-content{padding-top:14px}
.boarding-split-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
.boarding-aircraft-side,.boarding-participant-side{min-width:0}
.boarding-column-title{margin:0 0 10px;color:#244b70;font-size:1rem}
.boarding-aircraft-side .boarding-aircraft-grid{grid-template-columns:1fr}
.boarding-category-groups{display:flex;flex-direction:column;gap:10px}
.participant-category-group{margin:0}
.boarding-participant-side .boarding-source-list{min-height:34px}
.boarding-participant-side .boarding-remove-zone{min-height:50px}
.xwind-summary-header{cursor:pointer;list-style:none}
.xwind-summary-actions{display:flex;align-items:center;gap:12px}
.xwind-collapsible-content{padding-top:12px}
@media(max-width:900px){
  .boarding-split-layout{grid-template-columns:1fr}
  .boarding-board-summary{flex-direction:column}
  .boarding-summary-right{width:100%;justify-content:space-between}
  .xwind-summary-header{align-items:flex-start}
  .xwind-summary-actions{flex-direction:column;align-items:flex-end}
}

/* Build102: スクロール位置復元まで画面を隠し、先頭への一瞬のジャンプを防止 */
html.mgos-restoring-scroll body{visibility:hidden}

/* Build103: 機体所属の色分け・運航情報自動保存 */
.ownership-badge{display:inline-flex;align-items:center;border-radius:999px;padding:3px 9px;font-size:12px!important;font-weight:800;white-space:nowrap;border:1px solid transparent}
.ownership-association{background:#dbeafe!important;color:#1d4ed8!important;border-color:#93c5fd!important}
.ownership-personal{background:#fef3c7!important;color:#92400e!important;border-color:#fcd34d!important}
.ownership-tohoku{background:#dcfce7!important;color:#166534!important;border-color:#86efac!important}
.ownership-lease{background:#f3e8ff!important;color:#7e22ce!important;border-color:#d8b4fe!important}
.ownership-other{background:#f1f5f9!important;color:#475569!important;border-color:#cbd5e1!important}
.ownership-select{font-weight:700;border-width:2px}
.autosave-status{display:inline-flex;align-items:center;justify-content:center;min-width:82px;padding:6px 11px;border-radius:999px;background:#eef2f6;color:#52606d;font-size:12px;font-weight:800;border:1px solid #d7dee7}
.autosave-status.saving{background:#fff8df;color:#735400;border-color:#e4cc8b}
.autosave-status.saved{background:#eef9f1;color:#1d6b35;border-color:#b7d9c2}
.autosave-status.error{background:#fff0f0;color:#a32020;border-color:#e2aaaa}
.boarding-aircraft-title{flex-wrap:wrap}

/* Build105: アサインボード・担当欄・参加者並び替え */
.assign-role-section{border:2px solid #b9c9da;border-radius:12px;background:#fff;overflow:hidden;margin-bottom:14px}
.assign-role-title{padding:9px 12px;background:#eaf0f7;color:#173d63;font-size:1rem;font-weight:800;border-bottom:1px solid #c9d3df}
.assign-role-pist{margin-bottom:16px}
.assign-role-dropzone{min-height:62px;display:flex;flex-direction:column;gap:7px;padding:8px}
.assign-role-dropzone:empty:after{min-height:42px;content:'担当者をここへドロップ'}
.assign-bottom-roles{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:16px}
.participant-source-list{border-radius:8px;padding:4px;transition:.12s}
.participant-source-list.drag-over{background:#edf8ff;box-shadow:inset 0 0 0 2px #52a1d8}
.participant-source-list .source-chip{cursor:grab}
@media(max-width:700px){.assign-bottom-roles{grid-template-columns:1fr}}

/* =========================================================
   MKDS Build106: 試用向け編集画面整理
   ========================================================= */
.add-flight-summary,
.mobile-group-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  cursor:pointer;
  list-style:none;
}
.add-flight-summary::-webkit-details-marker,
.mobile-group-summary::-webkit-details-marker{display:none;}
.add-flight-summary h2,
.mobile-group-summary h2{margin:0;}
.add-flight-content{padding-top:12px;}

/* Build113: フライト追加直後から機体所属に応じて行全体を色分け */
.editable-log tr.flight-ownership-row.ownership-row-standard,
.mobile-flight-edit.flight-ownership-row.ownership-row-standard{
  background:#eaf5ff !important;
}
.editable-log tr.flight-ownership-row.ownership-row-tohoku,
.mobile-flight-edit.flight-ownership-row.ownership-row-tohoku{
  background:#e9f8ed !important;
}
.editable-log tr.flight-ownership-row.ownership-row-standard > td{background:#eaf5ff !important;}
.editable-log tr.flight-ownership-row.ownership-row-tohoku > td{background:#e9f8ed !important;}

.mobile-dashboard-order,
.mobile-participant-aircraft-group{display:none;}

@media (max-width:900px){
  .mobile-dashboard-order{display:flex;flex-direction:column;gap:12px;}
  .mobile-participant-aircraft-group{display:block;}
  .mobile-group-content{padding-top:10px;}
  .mobile-group-content > .participant-row,
  .mobile-group-content > .aircraft-summary-grid{margin:0 0 12px;}
  .mobile-group-content .aircraft-summary-grid{display:flex;flex-direction:column;gap:12px;}
  .mobile-group-content .participant-row{display:block;}
  .mobile-group-content .participant-row > .card{width:100%;box-sizing:border-box;}
  #operationEndActions{order:999;}
}


/* Build107: スマホ編集画面の並び替えを確実に適用 */
@media (max-width:1100px){
  .mobile-dashboard-order{display:flex!important;flex-direction:column;gap:12px;}
  .mobile-participant-aircraft-group{display:block!important;}
  .mobile-dashboard-order > *{width:100%;box-sizing:border-box;}
  #dailyEditDateCard[hidden],#qrDashboardCard[hidden],#desktopTopCards[hidden]{display:none!important;}
}


/* Build108: smartphone order marker and robust containers */
.mobile-public-order{display:none;}
.mobile-build-marker{display:none;font-size:11px;color:#64748b;text-align:right;padding:0 4px;}
@media(max-width:1200px){
  .mobile-dashboard-order,.mobile-public-order{display:flex!important;flex-direction:column;gap:12px;width:100%;}
  .mobile-build-marker{display:block;}
  .mobile-participant-aircraft-group{display:block!important;}
}


/* Build110: moved smartphone sections must ignore legacy order rules. */
@media(max-width:1200px){
  #mobileDashboardOrder > *,
  #mobilePublicOrder > *{
    min-width:0;
  }
  #mobileParticipantAircraftContent{
    display:flex!important;
    flex-direction:column!important;
    gap:12px!important;
  }
  #mobileParticipantAircraftContent > *{
    width:100%!important;
  }
}

/* MGOS Build111: read-only assignment board and viewer ownership colors */
.public-assignment-board{padding:0;overflow:hidden}
.public-assignment-summary,.public-map-details>summary{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 16px;cursor:pointer;list-style:none;background:#f8fafc}
.public-assignment-summary::-webkit-details-marker,.public-map-details>summary::-webkit-details-marker{display:none}
.public-assignment-summary h2,.public-map-details>summary h2{margin:0}
.public-assignment-summary p{margin:3px 0 0;color:#64748b;font-size:13px}
.public-assignment-content{padding:14px}
.public-role-block{border:1px solid #cbd5e1;border-radius:12px;overflow:hidden;background:#fff}
.public-role-block h3{margin:0;padding:9px 12px;background:#eaf0f7;color:#173d63;font-size:15px}
.public-assignment-chips{display:flex;flex-wrap:wrap;gap:7px;min-height:42px;padding:9px}
.public-assignment-chips span{display:inline-flex;align-items:center;border:1px solid #93c5fd;background:#eff6ff;border-radius:999px;padding:5px 10px;font-weight:800}
.public-assignment-chips em{color:#94a3b8;font-style:normal;padding:5px}
.public-assignment-aircraft-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}
.public-assignment-aircraft{border:1px solid #b9c9da;border-radius:12px;overflow:hidden;background:#fff}
.public-assignment-aircraft-title{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 12px;background:#f1f5f9}
.public-assignment-aircraft-title strong{font-size:17px;color:#173d63}
.public-assignment-aircraft-title small{margin-left:auto;font-weight:800;color:#475569}
.public-assignment-lanes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:10px}
.public-assignment-lanes>div{border:1px solid #e2e8f0;border-radius:9px;padding:8px}
.public-assignment-lanes b{color:#334155}
.public-assignment-lanes ol{margin:6px 0 0;padding-left:25px}
.public-assignment-lanes li{padding:3px 0;font-weight:700}
.public-assignment-lanes li.empty{list-style:none;margin-left:-17px;color:#94a3b8;font-weight:400}
.public-bottom-roles{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.public-assignment-empty{padding:18px;text-align:center;color:#64748b;border:1px dashed #cbd5e1;border-radius:12px}
.public-map-details{padding:0;overflow:hidden}
.public-map-details>summary{border-bottom:0}
.public-map-details[open]>summary{border-bottom:1px solid #dbe3ec}
.public-map-details>.radar-box,.public-map-details>.traffic-embed-box,.public-map-details>.traffic-footer{margin-left:14px;margin-right:14px}
.public-map-details>.radar-box{margin-bottom:14px}
.public-map-details>.traffic-footer{margin-bottom:14px}
.public-log tr.completed-view-row.completed-standard>td,.public-mobile-flight.completed-view-row.completed-standard{background:#eaf5ff!important}
.public-log tr.completed-view-row.completed-tohoku>td,.public-mobile-flight.completed-view-row.completed-tohoku{background:#e9f8ed!important}
@media(max-width:1200px){
  .public-assignment-aircraft-grid{grid-template-columns:1fr}
  .public-assignment-lanes{grid-template-columns:1fr}
  .public-bottom-roles{grid-template-columns:1fr}
  #publicViewAirspace{display:contents!important}
  #publicViewRadar,#publicViewTraffic{width:100%!important}
}


/* Build112: 日付別LOGの所属別行色・参加者列幅調整 */
.date-daily-flight-table .date-ownership-cell{text-align:center;white-space:nowrap;min-width:78px}
.date-daily-flight-table .date-ownership-cell .ownership-badge{font-size:11px!important;padding:3px 7px}
.date-daily-flight-table tr.date-flight-standard>td{background:#eef6ff!important}
.date-daily-flight-table tr.date-flight-tohoku>td{background:#eaf8ee!important}
.date-participants-table{table-layout:fixed;width:100%}
.date-participants-table col.date-participant-name-col{width:32%}
.date-participants-table col.date-participant-category-col{width:14%}
.date-participants-table col.date-participant-remarks-col{width:54%}
.date-participants-table .date-participant-name{font-size:inherit!important;font-weight:inherit;text-align:left;white-space:normal;min-width:0}
@media(max-width:700px){
  .date-participants-table col.date-participant-name-col{width:42%}
  .date-participants-table col.date-participant-category-col{width:20%}
  .date-participants-table col.date-participant-remarks-col{width:38%}
}
@media print{
  .date-participants-table col.date-participant-name-col{width:32%}
  .date-participants-table col.date-participant-category-col{width:14%}
  .date-participants-table col.date-participant-remarks-col{width:54%}
  .date-participants-table .date-participant-name{font-size:inherit!important;font-weight:inherit;text-align:left}
  .date-daily-flight-table .date-ownership-cell .ownership-badge{font-size:7pt!important;padding:1px 4px}
  .date-daily-flight-table tr.date-flight-standard>td{background:#eef6ff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .date-daily-flight-table tr.date-flight-tohoku>td{background:#eaf8ee!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

/* Build114: システムユーザーマスタ */
.user-master-grid{display:grid;grid-template-columns:repeat(5,minmax(140px,1fr));gap:12px;align-items:end;}
.user-master-grid label{font-weight:700;}
.user-master-grid input,.user-master-grid select{width:100%;box-sizing:border-box;margin-top:5px;padding:8px;border:1px solid #cbd5e1;border-radius:8px;}
.check-label{display:flex!important;align-items:center;gap:7px;white-space:nowrap;}
.check-label input{width:auto!important;margin:0!important;}
.user-master-table td{vertical-align:middle;}
.user-master-table .button.small{padding:7px 12px;white-space:nowrap;}
.muted-row{opacity:.6;background:#f3f4f6;}
.notice{padding:12px 14px;border-radius:9px;margin:0 0 14px;font-weight:700;}
.notice.success{background:#e8f7ee;color:#146c3a;border:1px solid #a7dfbb;}
.notice.error{background:#fff0f0;color:#a61b1b;border:1px solid #efb3b3;}
@media(max-width:900px){.user-master-grid{grid-template-columns:1fr 1fr;}.user-master-table{min-width:1000px;}}

/* Build115: user permission master */
.permission-checks{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center}.permission-checks .check-label{white-space:nowrap;margin:0}


/* Build117: DAILY FLIGHT LOG 所属別表示切替 */
.log-toolbar{display:flex;align-items:center;justify-content:flex-start;gap:10px;flex-wrap:wrap;margin-top:8px}
.flight-filter-buttons{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.flight-filter-button.active{background:#173d63!important;color:#fff!important;border-color:#173d63!important;box-shadow:0 0 0 2px rgba(23,61,99,.12)}
.flight-ownership-row[hidden]{display:none!important}
@media(max-width:700px){
  .log-toolbar{align-items:stretch}
  .flight-filter-buttons{width:100%;display:grid;grid-template-columns:1fr}
  .flight-filter-button{width:100%}
}


/* Build118: 閲覧・日付別・全フライト検索の所属フィルターと行色 */
.ownership-filter-controls{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.export-actions .ownership-filter-controls{margin-right:8px}
.ownership-filter-button.active{background:#1f6f43;color:#fff;border-color:#1f6f43}
.public-flight-meta .ownership-filter-controls{align-self:center;justify-content:flex-start;padding:4px 0}
tr.search-flight-standard>td, tr.date-flight-standard>td{background:#e7f4ff}
tr.search-flight-tohoku>td, tr.date-flight-tohoku>td{background:#e8f7e8}
.mobile-flight.search-flight-standard{background:#e7f4ff}
.mobile-flight.search-flight-tohoku{background:#e8f7e8}
.ownership-filter-row[hidden]{display:none !important}
@media(max-width:760px){
  .ownership-filter-controls{width:100%;gap:4px}
  .ownership-filter-controls .button{flex:1 1 auto;font-size:12px;padding:7px 8px}
  .export-actions{flex-wrap:wrap}
}
@media print{
  .ownership-filter-row[hidden]{display:none !important}
}


/* Build120: fuse management */
.fuse-status-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
.fuse-status-item{border:1px solid #ccd4dc;border-radius:8px;padding:10px;background:#fff}
.fuse-count{font-size:1.35rem;font-weight:700;margin:6px 0}
.fuse-cell{text-align:center;font-weight:700;white-space:nowrap}
.fuse-黒{border-left:8px solid #222}.fuse-茶{border-left:8px solid #8b5a2b}.fuse-青{border-left:8px solid #2f6fcc}.fuse-赤{border-left:8px solid #c83a3a}.fuse-白{border-left:8px solid #ddd}

/* Build121: fuse master and corrected DAILY FLIGHT LOG columns */
.fuse-master-grid{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:10px;margin:10px 0 14px}
.fuse-master-item{border:1px solid #c8d0d8;border-radius:8px;padding:10px;background:#fff}
.fuse-master-title{font-size:1.15rem;font-weight:800;margin-bottom:8px}
.fuse-master-item label{display:block;font-weight:700;margin-bottom:7px}
.fuse-master-item input{width:100%;box-sizing:border-box;margin-top:4px;text-align:right;font-size:1.05rem}
.fuse-exchange-info{margin:5px 0 8px;font-size:.9rem;color:#58636f}
@media(max-width:900px){.fuse-master-grid{grid-template-columns:repeat(2,minmax(130px,1fr))}}
@media(max-width:520px){.fuse-master-grid{grid-template-columns:1fr}}


/* Build123: aircraft inspection aligned with fuse master + daily summary */
.aircraft-summary-right{display:flex;flex-direction:column;gap:12px;min-width:0;height:100%}
.aircraft-summary-right>.card{margin:0;box-sizing:border-box}
.aircraft-summary-right .fuse-master-card{flex:1 1 auto}
.aircraft-summary-right .summary-card{flex:0 0 auto}
.fuse-master-grid{grid-template-columns:repeat(2,minmax(180px,1fr));gap:8px}
.fuse-master-item{padding:8px}
.fuse-master-item input[type="text"],.fuse-master-item input[type="date"],.fuse-master-item input[type="number"]{text-align:left;font-size:.95rem}
.fuse-master-item input[type="number"]{text-align:right}
.fuse-log-value{font-weight:800;margin-bottom:3px}
.fuse-reset-button{font-size:10px;padding:3px 5px;line-height:1.1;white-space:nowrap}
.mobile-fuse-reset{margin-top:5px;width:100%;font-size:12px;padding:6px}
@media(max-width:1100px){.aircraft-summary-right{height:auto}.fuse-master-grid{grid-template-columns:repeat(2,minmax(160px,1fr))}}
@media(max-width:520px){.fuse-master-grid{grid-template-columns:1fr}}

/* Build124: DAILY FLIGHT LOG ヒューズ積算数入力 */
.fuse-log-edit{display:flex;align-items:center;justify-content:center;gap:2px;white-space:nowrap}
.fuse-color-label{font-weight:700;flex:0 0 auto}
.fuse-count-input{width:58px;min-width:58px;padding:3px 2px;text-align:right;font-weight:700;border:1px solid #9aa8b8;border-radius:4px;background:#fff}
.mobile-fuse-count{display:flex;align-items:center;gap:6px}
.mobile-fuse-count span{font-weight:700}
.mobile-fuse-count input{width:100%;min-width:0;padding:8px;border:1px solid #9aa8b8;border-radius:5px;font-weight:700}

/* Build127: ヒューズ表示とリセットボタンを横並びにして縦長化を防止 */
.fuse-cell { white-space: nowrap; }
.fuse-cell .fuse-log-value,
.fuse-cell .fuse-reset-button { display: inline-flex; vertical-align: middle; align-items: center; }
.fuse-cell .fuse-reset-button { margin-left: 4px; }
.mobile-fuse-count { display: inline-flex; align-items: center; gap: 4px; }
.mobile-fuse-reset { display: inline-flex; margin-left: 6px; width: auto; }
.edit-flight-button, .mobile-edit { white-space: nowrap; }

/* Build127b: 本日の集計内のヒューズ日別・本別集計 */
.fuse-summary-section{margin-top:16px;padding-top:12px;border-top:1px solid #d8dee5}
.fuse-summary-section h3{margin:0 0 8px}
.fuse-summary-wrap{overflow-x:auto}
.fuse-summary-table{width:100%;border-collapse:collapse;min-width:430px}
.fuse-summary-table th,.fuse-summary-table td{border:1px solid #cbd3dc;padding:7px 9px;text-align:center;white-space:nowrap}
.fuse-summary-table thead th{background:#eef2f5}
.fuse-summary-color{font-weight:800;text-align:left!important}
.fuse-summary-action{width:1%;white-space:nowrap}
.fuse-summary-action form{margin:0}
@media(max-width:700px){.fuse-summary-table th,.fuse-summary-table td{padding:6px}.fuse-summary-table{font-size:.9rem}}


/* Build127c: DAILY FLIGHT LOGのヒューズ右側に独立したリセット列 */
.fuse-reset-cell{text-align:center;white-space:nowrap;min-width:58px}
.fuse-reset-cell form{margin:0}
.fuse-reset-cell .fuse-reset-button{font-size:10px;padding:4px 6px;line-height:1.1;white-space:nowrap}

/* Build127e: 権限ロック・データマスタ */
.tab-locked {
  display:inline-flex; align-items:center; gap:4px; padding:10px 15px;
  border:1px solid #d2d7df; border-radius:999px; background:#e8ebef;
  color:#8a929d; font-weight:700; cursor:not-allowed; user-select:none;
}
.locked-card { opacity:.66; filter:grayscale(.35); cursor:not-allowed; border-style:dashed; }
.permission-denied-card { max-width:640px; margin:48px auto; padding:34px; text-align:center; background:#fff; border:1px solid #d7dde5; border-radius:18px; box-shadow:0 8px 24px rgba(25,45,75,.08); }
.permission-lock { font-size:48px; margin-bottom:8px; }
.data-master-card { max-width:820px; margin:0 auto; }
.data-master-search, .danger-zone form { display:flex; flex-wrap:wrap; gap:14px; align-items:end; }
.data-master-search label, .danger-zone label { display:flex; flex-direction:column; gap:6px; font-weight:700; }
.reset-summary { display:flex; flex-wrap:wrap; gap:12px 20px; margin:20px 0; padding:16px; background:#f3f7fb; border-radius:12px; }
.danger-zone { margin-top:24px; padding:20px; border:2px solid #c62828; border-radius:14px; background:#fff7f7; }
.button.danger { background:#b71c1c; border-color:#b71c1c; color:#fff; }
.notice { margin:14px 0; padding:12px 16px; border-radius:10px; background:#eef3f8; }
.notice.success { background:#e8f5e9; color:#1b5e20; }
.notice.error { background:#ffebee; color:#b71c1c; }
.danger-card { border-color:#d99; }


/* Build127i: 今日の閲覧 スマホ重複表示修正・運航情報表示 */
.today-view-switch{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin:0 0 10px}
.today-view-auto{border:0;background:transparent;text-decoration:underline;cursor:pointer;color:#334155}
.mobile-public-order{display:none}
body.mkds-today-mobile #mobilePublicOrder{display:flex;flex-direction:column;gap:12px}
body.mkds-today-mobile #publicViewTopGrid,
body.mkds-today-mobile #publicViewAssignment,
body.mkds-today-mobile #publicViewDaily,
body.mkds-today-mobile #publicViewAirspace,
body.mkds-today-mobile #publicViewParticipants{display:none!important}
body.mkds-today-pc #mobilePublicOrder{display:none!important}
.mobile-view-clone{width:100%;box-sizing:border-box;margin:0}
.mobile-daily-table-only .titlebar,
.mobile-daily-table-only .legend,
.mobile-daily-table-only .public-mobile-log{display:none!important}
.mobile-daily-table-only .public-flight-meta{display:grid!important;grid-template-columns:1fr 1fr;gap:7px;margin:0 0 8px;padding:8px;background:#f7f9fc;border:1px solid #d8dee8;border-radius:8px}
.mobile-daily-table-only .public-flight-meta>.box{display:flex!important;flex-direction:column;gap:3px;min-width:0;padding:7px 8px;background:#fff;border:1px solid #d8dee8;border-radius:7px}
.mobile-daily-table-only .public-flight-meta>.box.wide{grid-column:1/-1}
.mobile-daily-table-only .public-flight-meta>.box b{font-size:12px;color:#475569}
.mobile-daily-table-only .public-meta-value{font-size:15px;font-weight:700;word-break:break-word}
.mobile-daily-table-only .ownership-filter-controls{grid-column:1/-1}
.mobile-daily-table-only .ownership-filter-controls{display:flex!important;gap:6px;flex-wrap:wrap;margin:0}
.mobile-daily-table-only .logwrap{display:block!important;overflow-x:auto;-webkit-overflow-scrolling:touch}
.mobile-daily-table-only .public-log{display:table!important;min-width:1450px}
.mobile-participants .public-participant-summary-box{display:flex!important;margin:8px 0 10px}
.mobile-participants .participant-summary-row{display:none}
.mobile-participant-details{border-top:1px solid #d5dbe3;padding-top:8px}
.mobile-participant-details>summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer;font-weight:700;padding:8px 2px}
@media (max-width:900px){
  .today-view-switch{position:sticky;top:0;z-index:25;background:#f5f7fa;padding:7px 0}
  .mobile-public-order .card,.mobile-public-order .daily{border-radius:10px}
  .mobile-weather .swim-fpl-box{overflow-x:auto}
  .mobile-weather .swim-fpl-table{min-width:900px}
}


/* Build127i: legacy media queryによるスマホ用コンテナの二重表示を防止 */
#mobilePublicOrder{display:none!important}
body.mkds-today-mobile #mobilePublicOrder{display:flex!important;flex-direction:column;gap:12px}
body.mkds-today-pc #mobilePublicOrder{display:none!important}


/* Build127j: 今日の閲覧の順序修正 */
.mobile-daily-table-only .public-flight-meta{grid-template-columns:1fr!important;}
.mobile-daily-table-only .ownership-filter-controls{grid-column:1!important;}


/* Build127k: 今日の閲覧スマホ版を指定順で固定 */
body.mkds-today-mobile #mobilePublicOrder{
  display:flex!important;
  flex-direction:column!important;
  gap:12px!important;
}
body.mkds-today-mobile #mobilePublicOrder>.mobile-order-1{order:1!important;}
body.mkds-today-mobile #mobilePublicOrder>.mobile-order-2{order:2!important;}
body.mkds-today-mobile #mobilePublicOrder>.mobile-order-3{order:3!important;}
body.mkds-today-mobile #mobilePublicOrder>.mobile-order-4{order:4!important;}
body.mkds-today-mobile #mobilePublicOrder>.mobile-order-5{order:5!important;}
body.mkds-today-mobile #mobilePublicOrder>.mobile-order-6{order:6!important;}
/* スマホ版DAILY FLIGHT LOGはスマホ用カードだけを表示 */
body.mkds-today-mobile .mobile-daily-table-only .titlebar,
body.mkds-today-mobile .mobile-daily-table-only .legend,
body.mkds-today-mobile .mobile-daily-table-only .logwrap,
body.mkds-today-mobile .mobile-daily-table-only .public-flight-meta>.box{
  display:none!important;
}
body.mkds-today-mobile .mobile-daily-table-only .public-flight-meta{
  display:block!important;
  margin:0 0 8px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
body.mkds-today-mobile .mobile-daily-table-only .ownership-filter-controls{
  display:flex!important;
  gap:6px!important;
  flex-wrap:wrap!important;
}
body.mkds-today-mobile .mobile-daily-table-only .public-mobile-log{
  display:block!important;
}
/* PC版は DAILY FLIGHT LOG の直下にアサインボード */
body.mkds-today-pc #publicViewDaily{margin-bottom:12px!important;}
body.mkds-today-pc #publicViewAssignment{margin-top:0!important;}


/* Build127l: 編集画面のPC版／スマホ版切替 */
.dashboard-view-switch{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin:0 0 12px;}
.dashboard-view-auto{border:0;background:transparent;color:#475569;text-decoration:underline;cursor:pointer;padding:8px 4px;}
html.mkds-dashboard-pc .mobile-dashboard-order,
html.mkds-dashboard-pc .mobile-participant-aircraft-group{display:none!important;}
html.mkds-dashboard-pc #dailyEditDateCard,
html.mkds-dashboard-pc #qrDashboardCard,
html.mkds-dashboard-pc #desktopTopCards{display:block;}
html.mkds-dashboard-mobile .mobile-dashboard-order{display:flex!important;flex-direction:column!important;gap:12px!important;width:100%!important;}
html.mkds-dashboard-mobile .mobile-participant-aircraft-group{display:block!important;}
@media(max-width:1200px){
  html.mkds-dashboard-pc .mobile-dashboard-order,
  html.mkds-dashboard-pc .mobile-participant-aircraft-group{display:none!important;}
  html.mkds-dashboard-pc #desktopTopCards{display:flex!important;}
  html.mkds-dashboard-pc #dailyEditDateCard,
  html.mkds-dashboard-pc #qrDashboardCard{display:block!important;}
}


/* Build127m: 編集画面スマホ版もPC版と同じDAILY FLIGHT LOG表を使用 */
html.mkds-dashboard-mobile #dailyFlightLogSection .logwrap{
  display:block!important;
  width:100%!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  -webkit-overflow-scrolling:touch;
}
html.mkds-dashboard-mobile #dailyFlightLogSection .editable-log{
  display:table!important;
  min-width:1700px!important;
  width:max-content!important;
}
html.mkds-dashboard-mobile #dailyFlightLogSection .mobile-edit-flight-list{
  display:none!important;
}
html.mkds-dashboard-mobile #dailyFlightLogSection .editable-log th,
html.mkds-dashboard-mobile #dailyFlightLogSection .editable-log td{
  white-space:nowrap;
}
html.mkds-dashboard-mobile #dailyFlightLogSection .editable-log input,
html.mkds-dashboard-mobile #dailyFlightLogSection .editable-log select{
  font-size:13px;
  min-height:32px;
  padding:5px;
  border-radius:5px;
}


/* Build127n: スマホ編集画面のフライト追加でWT・動力時は曳航機／曳航Pilotを非表示 */
html.mkds-dashboard-mobile #towAircraftAddField[hidden],
html.mkds-dashboard-mobile #towPilotAddField[hidden],
html.mkds-dashboard-mobile .mobile-method-hidden{display:none!important;}

/* Build128: 運航状況をPC/スマホ共通の折り畳みカードにする */
.operations-status-summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  cursor:pointer;
  list-style:none;
}
.operations-status-summary::-webkit-details-marker { display:none; }
.operations-status-summary h2 { margin:0; }
.operations-status-content { margin-top:12px; }
#operationsStatusCard:not([open]) .operations-status-summary { margin-bottom:0; }

/* 責任者欄は一人だけを配置する想定 */
.responsibility-dropzone { min-height:48px; }
.assign-role-operation-manager,
.assign-role-tow-manager { border-left:4px solid #2f6fa5; }
