html,
body{
  margin:0;
  padding:0;
  width:100%;
  min-height:100%;
  overflow-x:hidden;
}

*{
  box-sizing:border-box;
}

body{
  font-family:'Zen Kaku Gothic New',sans-serif;
  background:var(--bg-color);
  color:var(--text-color);
}

.app-shell{
  width:100%;
  max-width:430px;
  min-height:100vh;
  margin:0 auto;
  position:relative;
  padding-bottom:96px;
}

.hero{
  width:100%;
  text-align:center;
  padding:88px 24px 44px;
}

.card{
  width:calc(100% - 32px);
  max-width:398px;
  margin:-20px auto 0;
  padding:24px;
  border-radius:28px;
  text-align:center;
}

select,
button{
  width:100%;
  border:none;
  font-size:16px;
}

.button-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-top:8px;
}

.action-btn{
  height:92px;
  border-radius:28px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:10px;
}

.bottom-nav{
  position:fixed;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width:100%;
  max-width:430px;
  height:78px;
  display:flex;
  justify-content:space-around;
  align-items:center;
  z-index:999;
}

.store-logo{
  width:72px;
  height:72px;
  object-fit:cover;
  border-radius:24px;
  margin-bottom:18px;
}

.card{
  text-align:left !important;
}

.hero{
  text-align:center !important;
}

.button-grid,
.salary-mini-grid,
.summary-grid{
  text-align:center !important;
}

.summary-box,
.salary-summary,
.status-hero{
  text-align:left !important;
}

.status-hero,
.salary-main-card{
  text-align:center !important;
}

.settings-panel{
  padding:8px 4px 20px;
}

.settings-header{
  margin-bottom:18px;
}

.settings-title-row{
  display:flex;
  align-items:center;
  gap:10px;
}

.settings-title-row svg{
  width:28px;
  height:28px;
  color:var(--text-color);
}

.settings-title-row h2{
  margin:0;
  font-size:28px;
  line-height:1.2;
  color:var(--text-color);
}

.settings-header p{
  margin:8px 0 0;
  font-size:14px;
  color:var(--sub-color);
}

.settings-card{
  background:rgba(255,255,255,.72);
  border:1px solid rgba(140,107,79,.12);
  border-radius:22px;
  padding:20px;
  box-shadow:
    0 14px 36px rgba(80,60,40,.08);
  backdrop-filter:blur(8px);
}

.settings-section-title{
  display:flex;
  align-items:center;
  gap:8px;
  margin:22px 0 12px;
  font-size:18px;
  font-weight:700;
  color:var(--text-color);
}

.settings-section-title:first-child{
  margin-top:0;
}

.settings-section-title svg{
  width:20px;
  height:20px;
  color:var(--text-color);
}

.setting-field{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:16px;
  font-size:15px;
  font-weight:600;
  color:var(--text-color);
}

.setting-field input{
  width:100%;
  min-height:54px;
  box-sizing:border-box;
  border-radius:14px;
  border:1px solid rgba(140,107,79,.18);
  background:rgba(255,255,255,.9);
  padding:0 16px;
  font-size:16px;
  color:var(--text-color);
  box-shadow:
    inset 0 1px 2px rgba(80,60,40,.04);
}

.setting-field input:focus{
  outline:none;
  border-color:var(--accent-color);
  box-shadow:
    0 0 0 3px rgba(140,107,79,.12);
}

.color-setting-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:62px;
  margin-bottom:10px;
  padding:0 14px 0 18px;
  border-radius:16px;
  border:1px solid rgba(140,107,79,.12);
  backdrop-filter:blur(6px);

  font-size:16px;
  font-weight:600;
  color:var(--text-color);
}

.color-setting-row input[type="color"]{
  width:54px;
  height:54px;
  padding:0;
  border:none;
  background:transparent;
  cursor:pointer;
}

.color-setting-row input[type="color"]::-webkit-color-swatch-wrapper{
  padding:0;
}

.color-setting-row input[type="color"]::-webkit-color-swatch{
  border:2px solid rgba(80,60,40,.16);
  border-radius:50%;
}

.switch-row{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:62px;
  margin-bottom:10px;
  padding:0 18px;
  border-radius:16px;
  border:1px solid rgba(140,107,79,.12);
  background:rgba(255,255,255,.62);
  font-size:16px;
  font-weight:600;
  color:var(--text-color);
}

.switch-row input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.switch-ui{
  position:relative;
  width:54px;
  height:30px;
  border-radius:999px;
  background:#d8cfc5;
  transition:.2s;
}

.switch-ui::after{
  content:"";
  position:absolute;
  top:3px;
  left:3px;
  width:24px;
  height:24px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 2px 6px rgba(80,60,40,.18);
  transition:.2s;
}

.switch-row input:checked + .switch-ui{
  background:var(--accent-color);
}

.switch-row input:checked + .switch-ui::after{
  transform:translateX(24px);
}

.settings-save-btn{
  width:100%;
  min-height:58px;
  margin-top:20px;
  border:none;
  border-radius:16px;
  background:linear-gradient(
    135deg,
    var(--accent-color),
    #a9784f
  );
  color:#fff;
  font-size:17px;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  box-shadow:
    0 12px 24px rgba(120,80,48,.22);
}

.settings-save-btn svg{
  width:20px;
  height:20px;
}

.setting-save-result{
  margin-top:12px;
  text-align:center;
  font-size:14px;
  color:var(--sub-color);
}

#settingPage .footer-brand{
  margin-top:18px;
  text-align:center;
  color:var(--sub-color);
}

@media screen and (max-width:480px){

  .settings-panel{
    padding:6px 0 18px;
  }

  .settings-title-row h2{
    font-size:26px;
  }

  .settings-card{
    padding:18px;
    border-radius:22px;
  }

}


#settingPage .setting-field{
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  width:100%;
  margin-bottom:18px;
}

#settingPage .setting-field span{
  display:block;
  margin-bottom:8px;
  font-size:16px;
  font-weight:700;
  color:var(--text-color);
}

#settingPage .setting-field input{
  display:block;
  width:100% !important;
  max-width:none !important;
  min-height:54px;
  box-sizing:border-box;
}

.theme-cafe{
  --accent-color:#8c6b4f;
  --bg-color:#f6f2eb;
  --card-color:#fffdf9;
  --text-color:#4d3c32;
  --sub-color:#9b8573;
  --nav-color:#8d7767;
  --bg-image:url('/cafe-bg.png');
}

.theme-book{
  --accent-color:#4a5c46;
  --bg-color:#f7f3eb;
  --card-color:#fffdf9;
  --text-color:#3b322c;
  --sub-color:#8a7d73;
  --nav-color:#556651;
  --bg-image:url('/book-bg.png');
}

.theme-book{
  --bg-image:url('/assets/book-bg.png');
}

.theme-cafe{
  --bg-image:url('/cafe-bg.png');
}


body.theme-book{
  background:
    linear-gradient(
      rgba(255,255,255,.4),
      rgba(255,255,255,.7)
    ),
    url('/assets/book-bg.png') center/cover fixed !important;
}

body{
  background:
    url('/assets/book-bg.png')
    center/cover fixed
    no-repeat !important;
}

body{

  min-height:100vh;

  background:
    linear-gradient(
      rgba(255,255,255,.55),
      rgba(255,255,255,.75)
    ),
    url('/assets/book-bg.png');

  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  background-attachment:fixed;

}

html,
body{
  min-height:100%;
  margin:0;
}

.app-shell{
  min-height:100vh;

  background:
linear-gradient(
  rgba(255,255,255,.35),
  rgba(255,255,255,.55)
),
    url('/assets/book-bg.png');

  background-size:cover;
  background-position:center top;
  background-repeat:no-repeat;
  background-attachment:fixed;
}

.action-card,
.action-card *,
.action-btn,
.action-btn *{

  color:#4a5c46 !important;

}