/* NEOBEST 現場管理ノート — 最終UIバランス調整 v382
 * Visual-only. Keep existing click handlers, forms, data flows and print styles.
 * Design: cool white, restrained navy, a single blue primary action.
 */
@media screen {
  :root {
    --nb-ink:#182b40;
    --nb-muted:#586a7f;
    --nb-bg:#f4f7fa;
    --nb-line:#dce4ee;
    --nb-blue:#2865d5;
    --nb-blue-soft:#edf4ff;
    --nb-success:#15724f;
  }
  html,body { background:#e9eef5; }
  body,.app { color:var(--nb-ink); }
  .app { background:var(--nb-bg); }
  .app>header {
    background:linear-gradient(135deg,#1d3859 0%,#152a44 100%);
    color:#fff;
    padding:12px 14px 10px;
    border-bottom:1px solid #35516f;
    box-shadow:0 3px 12px #14243b1c;
  }
  .app>header .brand-block .brand {
    font-size:clamp(23px,6vw,28px);
    font-weight:850;
    line-height:1.3;
    letter-spacing:.005em;
  }
  .app>header .brand-caption { color:#c5d8ec; font-size:12px; margin-top:4px; }
  .app>header .sub { margin-top:5px; font-size:14px; font-weight:700; line-height:1.4; color:#d3ddea; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .app>header #roleBadge { display:none!important; }
  .app>header #headerDeviceWorker {
    display:flex; flex-direction:column; align-items:flex-end;
    justify-content:center; gap:2px; transform:none;
    min-width:72px; max-width:42%; text-align:right;
  }
  .app>header .header-worker-label { font-size:11px; color:#d1ddeb; }
  .app>header #headerWorkerName { font-size:16px; line-height:1.35; font-weight:750; }
  .app>header #headerDeviceWorker:focus-visible {
    outline:3px solid #93c5fd; outline-offset:3px; border-radius:5px;
  }

  /* Five familiar actions, without the old 3D/rainbow icon treatments. */
  .app>.tabs {
    background:#fff!important;
    border-bottom:1px solid #d8e2ee;
    box-shadow:0 3px 10px #1b32471a;
    gap:0!important;
    padding:0 3px;
  }
  .app>.tabs>.tab:nth-child(n) {
    background:#fff!important;
    color:#3a506a!important;
    border:0!important;
    border-bottom:3px solid transparent!important;
    box-shadow:none!important;
    border-radius:0!important;
    transition:background-color .15s ease,color .15s ease;
  }
  .app>.tabs>.tab:nth-child(n).on {
    background:#edf4ff!important;
    color:#1c4f96!important;
    border-bottom-color:#2865d5!important;
    box-shadow:none!important;
  }
  .app>.tabs>.tab:nth-child(n) .nb-3d-icon {
    width:36px!important;height:36px!important;
    font-size:21px!important;line-height:1!important;
    border-radius:11px!important;
    background:#f0f4f8!important;
    border:1px solid #e1e8f0!important;
    box-shadow:none!important;
    text-shadow:none!important;
    transform:none!important;
  }
  .app>.tabs>.tab:nth-child(n).on .nb-3d-icon {
    background:#dceafe!important;
    border-color:#bfd4f8!important;
    box-shadow:none!important;
    transform:none!important;
  }
  .app>.tabs>.tab .nb-3d-label {
    color:#324963!important;
    font-weight:800!important;
    line-height:1.22!important;
  }
  .app>.tabs>.tab.on .nb-3d-label { color:#1c4f96!important; }
  .app>.tabs>.tab:focus-visible { outline:3px solid #2865d5!important;outline-offset:-3px!important; }

  /* Cards now form quiet sections, while keeping 16px+ field text. */
  .app>.page.on { background:var(--nb-bg); }
  .app .page { padding:18px 14px 96px; color:var(--nb-ink); }
  .app .page .box {
    background:#fff;
    border:1px solid #dce4ee;
    border-radius:16px;
    padding:18px 16px;
    margin-bottom:16px;
    box-shadow:0 3px 12px #1a335011;
  }
  .app .page .box>.title,
  .app .page .title {
    font-size:19px;
    line-height:1.42;
    font-weight:850;
    color:#1d3751;
    margin-bottom:10px;
  }
  .app .page .muted { color:#53687e;line-height:1.55; }
  .app .page .btn,
  .app .page button:not(.tab) {
    border-radius:11px;
    font-weight:750;
    min-height:48px;
    transition:background-color .13s ease,box-shadow .13s ease;
  }
  .app .page .btn.primary,
  .app .page .btn.blue {
    background:#2865d5;
    color:#fff;
    border:1px solid #2865d5;
  }
  .app .page .btn.secondary {
    background:#f4f7fa;
    color:#27415d;
    border:1px solid #cfdae6;
  }
  .app .page .btn.green { background:#15724f; color:#fff; }
  .app .page input:not([type=checkbox]):not([type=radio]),
  .app .page select,.app .page textarea {
    border:1px solid #b7c5d6;
    border-radius:10px;
    background:#fff;
  }
  .app .page input:focus-visible,.app .page select:focus-visible,
  .app .page textarea:focus-visible,.app .page .btn:focus-visible {
    outline:3px solid #75adfc;outline-offset:2px;
  }

  /* Home: first glance = today's plan, one visible primary CTA. */
  #sites #siteScheduleBox {
    background:linear-gradient(155deg,#ffffff 0%,#f7faff 100%);
    border:1px solid #c9d9ef;
    border-left:4px solid #2865d5;
    box-shadow:0 5px 18px #173d7519;
  }
  #sites #siteScheduleBox>.title {
    font-size:21px;
    color:#1c3557;
    letter-spacing:.003em;
  }
  #sites #siteScheduleBox>.btn.primary {
    background:#2865d5;
    border:1px solid #2865d5;
    box-shadow:0 4px 10px #225cb727;
    font-size:18px;
    min-height:54px;
    border-radius:12px;
  }
  #sites>.box:nth-of-type(2)>.btn.secondary {
    background:#f6f9fd;
    color:#21476b;
    border:2px solid #c6d7e8;
    min-height:52px;
    font-size:17px;
  }
  #sites>.box:nth-of-type(3)>.title { color:#203d5e; }
  #sites #completedBoardBtn {
    background:#f0f4f8!important;
    color:#2b455f!important;
    border:1px solid #d4e0ea!important;
    box-shadow:none!important;
  }
  #sites .compact-site {
    border:1px solid #dce4ee;
    border-radius:12px;
    box-shadow:none;
  }
  /* These states deliberately keep their warning/error/success colors. */
  #siteRegisterForm,#siteCards,#siteScheduleSummary { min-width:0; }
  @media(max-width:420px){
    .app>header{padding:14px 12px 12px}
    .app>header #headerWorkerName{font-size:15px}
    .app .page{padding:14px 11px 88px}
    .app .page .box{padding:16px 13px;margin-bottom:14px}
    #sites #siteScheduleBox>.title{font-size:20px}
    .app>.tabs{padding:0 1px}
    .app>.tabs>.tab:nth-child(n) .nb-3d-icon{width:32px!important;height:32px!important;font-size:20px!important}
  }
  @media(hover:hover){
    #sites #siteScheduleBox>.btn.primary:hover{background:#1f53af;box-shadow:0 5px 14px #225cb735}
    .app>.tabs>.tab:not(.on):hover{background:#f5f8fc!important}
  }
  @media(prefers-reduced-motion:reduce){
    .app .page .btn,.app>.tabs>.tab:nth-child(n){transition:none}
  }
}