/* 丸投げ現場管理 Ver.1.6: 共有外観。保存・集計JSには触れない */
:root{--unified-deep:#174b3d;--unified-main:#226650;--unified-ink:#213f36;--unified-bg:#f3f7f5;--unified-line:#dbe9e2;--unified-soft:#e7f3ed;--unified-gold:#efb94f}
html{scroll-padding-top:145px}body{background:var(--unified-bg)!important;color:var(--unified-ink);font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif!important;font-size:15px!important;line-height:1.5!important;overflow-x:hidden}
.unified-shell{position:sticky!important;top:0!important;z-index:60!important;margin:0 auto!important;max-width:550px!important;padding:calc(env(safe-area-inset-top,0px) + 10px) 14px 12px!important;background:linear-gradient(125deg,#143f34,#267456)!important;border-radius:0 0 22px 22px!important;box-shadow:0 5px 17px #102d2140!important;color:#fff!important;box-sizing:border-box!important}
.unified-shell-brand{display:flex;align-items:center;gap:10px;margin-bottom:12px;line-height:1.18}.unified-shell-logo{display:grid;place-items:center;width:41px;height:41px;border-radius:12px;background:#ffffff1e;font-size:22px}.unified-shell-brand strong{display:block;font-size:21px;letter-spacing:.01em;color:#fff}.unified-shell-brand small{display:block;margin-top:5px;font-size:11px;color:#d7eee2}
.unified-shell .unified-tabs{position:static!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;padding:0!important;margin:0!important;gap:8px!important;background:transparent!important;box-shadow:none!important;max-width:none!important;z-index:auto!important}
.unified-shell .unified-tabs a{display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;min-height:49px!important;padding:8px 2px!important;border:1px solid #ffffff49!important;border-radius:13px!important;background:#ffffff1b!important;color:#f5fff9!important;font-size:15px!important;font-weight:800!important;line-height:1.25!important;text-decoration:none!important;white-space:nowrap!important}
.unified-shell .unified-tabs a[aria-current="page"]{background:#fff!important;border-color:#fff!important;color:#195642!important;box-shadow:0 2px 5px #071b1426!important}
.unified-shell .unified-tabs a:focus-visible{outline:3px solid #f6c765!important;outline-offset:2px!important}
.unified-label{display:none!important}
/* コンテンツの見出しは共通ヘッダーの下に同じ階層で表示 */
body:not(.embedded-settings) header.top,body:not(.embedded-settings) .app>header{position:relative!important;top:auto!important;z-index:1!important;box-shadow:none!important;max-width:550px!important;margin:0 auto!important;padding:17px 18px 16px!important;background:#e8f2ed!important;color:var(--unified-ink)!important;border-radius:0 0 18px 18px!important}
body:not(.embedded-settings) header.top .brand,body:not(.embedded-settings) .app>header h1{font-size:20px!important;font-weight:850!important;color:#1b523f!important;margin:0 0 5px!important;line-height:1.3!important}
body:not(.embedded-settings) header.top .sub,body:not(.embedded-settings) .app>header p{font-size:12px!important;color:#537568!important;line-height:1.5!important;opacity:1!important;margin:7px 0 0!important}
body:not(.embedded-settings) .app>header small{font-size:11px!important;color:#617f72!important;opacity:1!important;display:block!important;margin-bottom:5px!important}
body:not(.embedded-settings) .unified-guide-button{background:#fff!important;color:#1b5b46!important;border:1px solid #c2ddd0!important;min-height:44px!important;min-width:140px!important;padding:9px 14px!important;margin:8px 0 0!important;border-radius:12px!important;font-size:13px!important;font-weight:800!important}
body:not(.embedded-settings) main.wrap,body:not(.embedded-settings) .app main,body:not(.embedded-settings) main.settings-main{max-width:550px!important;margin:auto!important;padding-left:14px!important;padding-right:14px!important}
body:not(.embedded-settings) .card{border-radius:17px!important;border:1px solid #e1ebe5!important;background:#fff!important;box-shadow:0 2px 9px #123c2b09!important}
body:not(.embedded-settings) button:not(.fab):not(.small):not(.nav):not(.chip):not(.tab):not(.unified-guide-button),body:not(.embedded-settings) .btn{border-radius:12px;touch-action:manipulation}
body:not(.embedded-settings) button:focus-visible,body:not(.embedded-settings) a:focus-visible,body:not(.embedded-settings) input:focus-visible{outline:3px solid #e8b246!important;outline-offset:2px!important}
/* 日程の週間・月間ボタンと日報の画面内タブを同じセグメント風に */
body:not(.embedded-settings) .tabs,body:not(.embedded-settings) .app>.nav,body:not(.embedded-settings) .subnav{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;padding:9px 0!important;background:transparent!important;border:none!important;max-width:550px!important;margin-left:auto!important;margin-right:auto!important}
body:not(.embedded-settings) .tabs .tab,body:not(.embedded-settings) .app>.nav button,body:not(.embedded-settings) .subnav button{background:#fff!important;color:#285e4d!important;border:1px solid #d7e5df!important;border-radius:12px!important;min-height:47px!important;padding:9px 4px!important;font-size:14px!important;font-weight:800!important}
body:not(.embedded-settings) .tabs .tab.active,body:not(.embedded-settings) .app>.nav button.active,body:not(.embedded-settings) .subnav button.active{background:var(--unified-main)!important;border-color:var(--unified-main)!important;color:#fff!important}
body:not(.embedded-settings) .app>.nav{padding:11px 14px 7px!important}
/* 日報の上部「設定」は統合設定に移動済。埋込設定では元ロジックを維持 */
body:not(.embedded-settings) .app>.nav #tabSettings{display:none!important}
body:not(.embedded-settings) .app>.nav{grid-template-columns:repeat(2,minmax(0,1fr))!important}
/* 追加・保存ボタンは既存の安全な固定位置アルゴリズムを優先 */
body:not(.embedded-settings) .fab{z-index:15!important}
body:not(.embedded-settings) .app{background:var(--unified-bg)!important}
/* 設定ページ内 iframe は各画面の元機能。外側ナビは二重表示しない */
body.embedded-settings .unified-shell,body.embedded-settings .unified-label{display:none!important}
body.embedded-settings header.top,body.embedded-settings .app>header{display:none!important}
body.embedded-settings .app>.nav{display:none!important}
@media(max-width:360px){.unified-shell-brand strong{font-size:19px}.unified-shell .unified-tabs a{font-size:13px!important}}
@media(prefers-reduced-motion:reduce){.unified-shell a{transition:none!important}}

.settings-intro{max-width:550px;margin:auto;background:#e8f2ed;color:#1b523f;padding:17px 18px;border-radius:0 0 18px 18px}.settings-intro strong{font-size:20px}.settings-intro p{font-size:12px;color:#537568;margin:6px 0 0}.settings-main{max-width:550px!important}.settings-switcher{padding-top:12px!important}

/* 3ステップ初回ガイドの見た目も日程・日報で共通化 */
.unified-guide-panel,.guide-dialog{width:min(100%,440px)!important;background:#fff!important;color:#213f36!important;border-radius:22px!important;padding:20px!important;box-shadow:0 22px 60px #102e2240!important;max-height:calc(100dvh - 35px)!important;overflow-y:auto!important}
.unified-guide-panel h2,.guide-dialog h2{font-size:22px!important;line-height:1.35!important;color:#174b3d!important}
.unified-guide-step,.guide-step{background:#f0f6f2!important;border-radius:14px!important;padding:12px!important;display:flex!important;gap:12px!important;align-items:flex-start!important}
.unified-guide-step b,.guide-step b{background:#dcefe5!important;color:#195d46!important;min-width:32px!important;min-height:32px!important;border-radius:10px!important;display:grid!important;place-items:center!important}
.unified-guide-finish,.guide-dialog .btn{background:#205f49!important;color:#fff!important;border-radius:13px!important;min-height:52px!important;font-weight:800!important}
