body{margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#f4f6f8;color:#1f2937}header{background:#111827;color:white;padding:14px 22px;display:flex;justify-content:space-between;align-items:center}a{color:#2563eb;text-decoration:none}header a,header button{color:white;background:transparent;border:0;margin-left:14px;font:inherit;cursor:pointer}.brand{font-weight:700}main{max-width:1180px;margin:24px auto;padding:0 16px}.card{background:white;border-radius:12px;padding:22px;box-shadow:0 6px 20px rgba(0,0,0,.06);margin-bottom:18px}.narrow{max-width:460px;margin:auto}.grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.grid aside{grid-column:auto}label{display:block;margin:12px 0 6px;font-weight:600}input,select,textarea{box-sizing:border-box;width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:8px;font:inherit}button,.primary{border:0;border-radius:8px;padding:10px 14px;cursor:pointer}.primary{background:#2563eb;color:white;font-weight:700}table{width:100%;border-collapse:collapse;margin-top:10px}th,td{border-bottom:1px solid #e5e7eb;padding:9px;text-align:left;vertical-align:top}.alert{padding:12px;border-radius:8px;margin-bottom:14px}.error{background:#fee2e2;color:#991b1b}.ok{background:#dcfce7;color:#166534}.inline{display:inline}.inline input,.inline select{width:auto}.body{white-space:pre-wrap;background:#f8fafc;padding:18px;border-radius:10px}.muted{color:#64748b}footer{text-align:center;color:#64748b;padding:30px}@media(max-width:800px){.grid{grid-template-columns:1fr}header{display:block}header nav{margin-top:8px}}



/* fix9064: PONCOTO brand/login styles */
:root {
  --poncoto-blue: #173a75;
  --poncoto-bg: #f5f8fc;
  --poncoto-line: #d9e3ef;
}
.poncoto-login-brand {
  text-align: center;
  margin: 18px auto 14px;
  padding: 20px 12px 0;
}
.poncoto-kicker {
  color: #725b46;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 6px;
}
.poncoto-title {
  font-size: clamp(44px, 7vw, 86px);
  line-height: .9;
  margin: 0;
  color: var(--poncoto-blue);
  font-weight: 900;
  letter-spacing: .04em;
}
.poncoto-tagline {
  margin: 16px 0 18px;
  color: #6f543c;
  font-weight: 700;
  font-size: clamp(14px, 1.8vw, 20px);
}
.poncoto-mascot {
  margin: 0 auto -10px;
  max-width: 360px;
  min-height: 145px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
}
.poncoto-postbox {
  width: 82px;
  height: 124px;
  border-radius: 18px 18px 10px 10px;
  background: linear-gradient(#e9654f, #c93228);
  box-shadow: 0 14px 28px rgba(80,40,20,.18);
  color: #fff;
  position: relative;
}
.poncoto-postbox:before {
  content: "";
  position: absolute;
  top: 28px;
  left: 18px;
  right: 18px;
  height: 12px;
  background: #78231c;
  border-radius: 7px;
}
.poncoto-postbox:after {
  content: "✉";
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  font-size: 30px;
}
.poncoto-dog {
  width: 136px;
  height: 136px;
  border-radius: 50% 50% 45% 45%;
  background: #f1be78;
  position: relative;
  box-shadow: 0 14px 28px rgba(80,40,20,.16);
}
.poncoto-dog:before,
.poncoto-dog:after {
  content: "";
  position: absolute;
  top: 36px;
  width: 38px;
  height: 60px;
  background: #dfa665;
  border-radius: 50%;
}
.poncoto-dog:before {
  left: -18px;
  transform: rotate(18deg);
}
.poncoto-dog:after {
  right: -18px;
  transform: rotate(-18deg);
}
.poncoto-face {
  position: absolute;
  inset: 34px 22px 20px;
  z-index: 2;
  text-align: center;
}
.poncoto-face:before {
  content: "●   ●";
  display: block;
  color: #2c241d;
  font-size: 20px;
  letter-spacing: 22px;
}
.poncoto-face:after {
  content: "▽";
  display: block;
  color: #2c241d;
  font-size: 20px;
  margin-top: 10px;
}
.poncoto-mail {
  position: absolute;
  left: 32px;
  bottom: 20px;
  width: 72px;
  height: 44px;
  background: #fff;
  border: 2px solid #f1d5c0;
  border-radius: 6px;
  transform: rotate(-7deg);
  z-index: 3;
}
.poncoto-mail:after {
  content: "♥";
  color: #e95e58;
  line-height: 44px;
}
.poncoto-login-card,
.login-box,
.login-panel {
  border-radius: 18px;
}

/* fix9064: optional 3 pane base styles */
.wm3-shell {
  height: calc(100vh - 16px);
  display: grid;
  grid-template-rows: 30% 8px 1fr;
  background: var(--poncoto-bg);
  overflow: hidden;
}
.wm3-top {
  display: grid;
  grid-template-columns: 7fr 8px 3fr;
  min-height: 180px;
}
.wm3-pane {
  background: #fff;
  border: 1px solid var(--poncoto-line);
  overflow: auto;
}
.wm3-splitter-v,
.wm3-splitter-h {
  background: #cfd9e5;
}
.wm3-splitter-v { cursor: col-resize; }
.wm3-splitter-h { cursor: row-resize; }
.wm3-mail-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.2fr) minmax(160px, 2fr) 140px;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--poncoto-line);
  cursor: pointer;
}
.wm3-mail-row:hover,
.wm3-mail-row.is-active {
  background: #eef7ff;
}
.wm3-body {
  padding: 16px 20px;
}
.wm3-box-title {
  padding: 12px;
  font-weight: 800;
  color: var(--poncoto-blue);
  border-bottom: 1px solid var(--poncoto-line);
}
.wm3-tree {
  padding: 8px 10px 20px;
}
.wm3-tree summary {
  cursor: pointer;
  font-weight: 700;
}
.wm3-rule {
  padding: 5px 0 5px 18px;
  color: #44566c;
  font-size: 13px;
}




/* fix9067: exact PONCOTO login screen */
body.poncoto-auth-body {
  background: radial-gradient(circle at 18% 14%, rgba(255,255,255,.95), transparent 28%), linear-gradient(180deg, #dff4ff 0%, #f7fbff 48%, #fff6e9 100%);
}
.poncoto-auth-page { min-height: calc(100vh - 90px); display: flex; align-items: center; justify-content: center; padding: 28px 14px 40px; }
.poncoto-auth-wrap { width: min(1050px, 100%); display: grid; grid-template-columns: minmax(300px, 1.2fr) minmax(300px, .8fr); gap: 28px; align-items: center; }
.poncoto-hero { text-align: center; color: #173a75; }
.poncoto-kicker { color: #725b46; font-weight: 800; letter-spacing: .08em; margin-bottom: 8px; }
.poncoto-title { font-size: clamp(58px, 8vw, 116px); line-height: .86; margin: 0; color: #173a75; font-weight: 950; letter-spacing: .035em; text-shadow: 0 8px 26px rgba(23,58,117,.13); }
.poncoto-yomi { color: #d96754; font-weight: 900; margin-top: 10px; letter-spacing: .08em; }
.poncoto-tagline { margin: 16px auto 18px; color: #6f543c; font-weight: 800; font-size: clamp(14px, 1.7vw, 20px); }
.poncoto-hero-image { display: block; width: min(420px, 92%); margin: 10px auto -4px; border-radius: 24px; box-shadow: 0 22px 70px rgba(31,55,88,.15); }
.poncoto-css-mascot { margin: 16px auto 0; max-width: 360px; min-height: 158px; display: flex; align-items: flex-end; justify-content: center; gap: 16px; }
.poncoto-postbox { width: 86px; height: 130px; border-radius: 20px 20px 10px 10px; background: linear-gradient(#e9654f, #c93228); box-shadow: 0 16px 30px rgba(80,40,20,.18); color: #fff; position: relative; }
.poncoto-postbox:before { content: ""; position: absolute; top: 29px; left: 18px; right: 18px; height: 12px; background: #78231c; border-radius: 7px; }
.poncoto-postbox:after { content: "✉"; position: absolute; bottom: 18px; left: 0; right: 0; font-size: 32px; }
.poncoto-dog { width: 144px; height: 144px; border-radius: 50% 50% 45% 45%; background: #f1be78; position: relative; box-shadow: 0 16px 30px rgba(80,40,20,.16); }
.poncoto-dog:before, .poncoto-dog:after { content: ""; position: absolute; top: 39px; width: 40px; height: 62px; background: #dfa665; border-radius: 50%; }
.poncoto-dog:before { left: -19px; transform: rotate(18deg); }
.poncoto-dog:after { right: -19px; transform: rotate(-18deg); }
.poncoto-face { position: absolute; inset: 36px 22px 20px; z-index: 2; text-align: center; }
.poncoto-face:before { content: "●   ●"; display: block; color: #2c241d; font-size: 20px; letter-spacing: 24px; }
.poncoto-face:after { content: "▽"; display: block; color: #2c241d; font-size: 21px; margin-top: 10px; }
.poncoto-mail { position: absolute; left: 34px; bottom: 20px; width: 76px; height: 46px; background: #fff; border: 2px solid #f1d5c0; border-radius: 7px; transform: rotate(-7deg); z-index: 3; }
.poncoto-mail:after { content: "♥"; color: #e95e58; line-height: 46px; }
.poncoto-auth-card { background: rgba(255,255,255,.94); border: 1px solid rgba(210,220,230,.95); border-radius: 24px; box-shadow: 0 22px 70px rgba(31,55,88,.18); padding: 30px 34px 32px; }
.poncoto-auth-card h1 { text-align: center; color: #173a75; margin: 0 0 22px; letter-spacing: .08em; }
.poncoto-auth-card label { display: block; font-weight: 800; color: #334155; margin-bottom: 14px; }
.poncoto-auth-card input { width: 100%; box-sizing: border-box; border: 1px solid #cfd9e5; border-radius: 12px; padding: 13px 14px; margin-top: 7px; font-size: 15px; background: #fff; }
.poncoto-auth-card button.primary { width: 100%; border: 0; border-radius: 13px; padding: 14px 16px; background: linear-gradient(180deg, #1f5ed8, #1741a4); color: #fff; font-weight: 900; cursor: pointer; font-size: 16px; }
.poncoto-auth-switch { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 13px; }
.poncoto-auth-switch a { color: #1741a4; font-weight: 800; }
body.poncoto-auth-body header .brand { font-weight: 900; letter-spacing: .04em; }
body.poncoto-auth-body footer { color: #607086; }
@media (max-width: 820px) { .poncoto-auth-wrap { grid-template-columns: 1fr; } .poncoto-auth-card { width: min(520px, 100%); margin: 0 auto; } }



/* fix9071: PONCOTO split image login, safe patch */
body.poncoto-auth-body {
  min-height: 100vh;
  background-color: #fff7e8 !important;
  background-image: url("assets/poncoto-stamp-bg.png") !important;
  background-size: cover !important;
  background-position: center bottom !important;
  background-repeat: no-repeat !important;
}

body.poncoto-auth-body main {
  padding: 0 !important;
}

.poncoto-auth-split {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 8px 16px 34px;
}

.poncoto-hero-img {
  width: min(1080px, 100%);
  height: min(47vw, 430px);
  min-height: 260px;
  margin: 0 auto -18px;
  background-image: url("assets/poncoto-hero.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center top;
}

.poncoto-login-panel {
  width: min(650px, calc(100% - 24px));
  margin: 0 auto;
  padding: 24px 30px 28px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(221,211,194,.9);
  border-radius: 26px;
  box-shadow: 0 18px 54px rgba(58,76,105,.16);
  position: relative;
  z-index: 2;
}

.poncoto-panel-title {
  text-align: center;
  color: #173a75;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: .08em;
  margin-bottom: 22px;
}

.poncoto-panel-title .paw {
  color: #2b62ad;
  font-size: 14px;
}

.poncoto-panel-title:before,
.poncoto-panel-title:after {
  content: "";
  display: inline-block;
  width: min(150px, 22vw);
  border-top: 3px dotted #9fc0e6;
  vertical-align: middle;
  margin: 0 12px;
}

.poncoto-form label {
  display: block;
  font-weight: 850;
  color: #405166;
  margin: 0 0 14px;
}

.poncoto-form input:not([type="checkbox"]) {
  width: 100%;
  margin-top: 7px;
  padding: 14px 15px;
  border: 1px solid #d5d2cb;
  border-radius: 13px;
  background: rgba(255,255,255,.98);
  font-size: 15px;
}

.poncoto-form input:focus {
  outline: 3px solid rgba(83,139,220,.18);
  border-color: #7ba3d9;
}

.poncoto-form .remember {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
}

.poncoto-form .remember input {
  width: 18px;
  height: 18px;
}

.poncoto-form button.primary,
.poncoto-login-panel button.primary {
  width: 100%;
  margin-top: 4px;
  border: 0;
  border-radius: 14px;
  padding: 15px 18px;
  background: linear-gradient(180deg, #1f61d9, #1642a9);
  color: #fff;
  font-size: 17px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(22,66,169,.22);
}

.poncoto-auth-links {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: #66758a;
}

.poncoto-auth-links a {
  color: #1741a4;
  font-weight: 850;
}

@media (max-width: 780px) {
  .poncoto-hero-img {
    height: 310px;
    margin-bottom: -6px;
  }

  .poncoto-login-panel {
    width: calc(100% - 16px);
    padding: 22px 18px;
  }

  .poncoto-panel-title:before,
  .poncoto-panel-title:after {
    width: 44px;
  }

  .poncoto-auth-links {
    flex-direction: column;
    text-align: center;
  }
}




/* fix9073: mobile Yahoo-mail-like page flow */
@media (max-width: 760px) {
  body.poncoto-app-body {
    background: #f5f8fc;
  }

  body.poncoto-app-body header {
    position: sticky;
    top: 0;
    z-index: 20;
  }

  body.poncoto-app-body main {
    padding: 0 !important;
  }

  .ymail-shell {
    height: auto !important;
    min-height: calc(100vh - 110px);
    display: block !important;
    padding: 0 !important;
    background: #f5f8fc !important;
  }

  .ymail-shell.mobile-mailboxes .ymail-main {
    display: none !important;
  }

  .ymail-shell.mobile-list .ymail-sidebar {
    display: none !important;
  }

  .ymail-shell.mobile-read {
    display: none !important;
  }

  .ymail-sidebar {
    border: 0 !important;
    border-radius: 0 !important;
    min-height: calc(100vh - 110px);
  }

  .ymail-sidebar-head {
    font-size: 18px;
    padding: 16px;
    border-bottom: 2px solid #d8e2ee;
  }

  .ymail-compose-link {
    padding: 14px 16px;
  }

  .ymail-mbox {
    padding: 10px 14px;
  }

  .ymail-mbox summary {
    font-size: 16px;
    padding: 8px 0;
  }

  .ymail-folder {
    font-size: 16px;
    padding: 12px 12px 12px 28px;
    border-bottom: 1px solid #edf1f6;
  }

  .ymail-rules {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #edf1f6;
  }

  .ymail-main {
    display: block !important;
    border: 0 !important;
    border-radius: 0 !important;
  }

  .ymail-list-pane {
    border: 0 !important;
    border-radius: 0 !important;
    min-height: calc(100vh - 110px);
  }

  .ymail-toolbar {
    min-height: auto;
    padding: 14px 16px;
    align-items: flex-start;
  }

  .ymail-toolbar strong {
    font-size: 18px;
  }

  .ymail-actions {
    font-size: 13px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .ymail-folder-select {
    padding: 10px 16px;
  }

  .ymail-message-list {
    overflow: visible;
  }

  .ymail-row {
    display: block !important;
    min-width: 0 !important;
    padding: 14px 16px !important;
    border-bottom: 1px solid #e4ebf3;
    background: #fff;
  }

  .ymail-row:hover {
    background: #f7fbff;
  }

  .ymail-row.unseen {
    background: #fbfdff;
  }

  .ymail-status {
    display: inline-block;
    font-size: 12px;
    color: #1741a4;
    margin-bottom: 5px;
  }

  .ymail-from {
    display: block;
    font-weight: 900;
    font-size: 15px;
    color: #26364b;
    margin-bottom: 4px;
  }

  .ymail-subject {
    display: block;
    font-size: 16px;
    color: #26364b;
    margin-bottom: 6px;
  }

  .ymail-date {
    display: block;
    text-align: left !important;
    font-size: 12px;
    color: #718096;
  }

  .ymail-splitter,
  .ymail-read-pane {
    display: none !important;
  }

  /* normal read page on mobile */
  main > section.card {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-height: calc(100vh - 110px);
    padding: 16px !important;
    background: #fff;
  }

  main > section.card h1 {
    font-size: 19px;
    line-height: 1.35;
    margin: 0 0 12px;
    color: #173a75;
    padding-bottom: 12px;
    border-bottom: 2px solid #d8e2ee;
  }

  main > section.card p {
    line-height: 1.7;
    color: #405166;
    padding-bottom: 12px;
    border-bottom: 1px solid #e4ebf3;
  }

  main > section.card pre.body {
    white-space: pre-wrap;
    word-break: break-word;
    background: #fbfcfe;
    border: 1px solid #e4ebf3;
    border-radius: 10px;
    padding: 14px;
    line-height: 1.75;
    font-size: 15px;
  }

  main > section.card form.inline {
    display: block;
    margin: 10px 0;
  }

  main > section.card form.inline select,
  main > section.card form.inline button {
    width: 100%;
    margin-top: 8px;
  }

  .ymail-mobile-back {
    display: block;
    padding: 12px 16px;
    background: #f8fbfe;
    border-bottom: 1px solid #d8e2ee;
  }

  .ymail-mobile-back a {
    color: #1741a4;
    font-weight: 900;
    text-decoration: none;
  }
}

@media (min-width: 761px) {
  body.page-read main > section.card {
    width: 80%;
    max-width: 1100px;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}



/* fix9074: mobile pages, not all-in-one */
@media (max-width: 760px) {
  body.poncoto-app-body {
    background: #f5f8fc;
  }

  body.poncoto-app-body header {
    position: sticky;
    top: 0;
    z-index: 20;
  }

  body.poncoto-app-body main {
    padding: 0 !important;
  }

  /* inbox mailbox screen: no mailbox selected */
  body.page-inbox.no-mailbox main section.grid {
    display: block !important;
    margin: 0 !important;
  }

  body.page-inbox.no-mailbox main section.grid > aside.card {
    display: block !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    min-height: calc(100vh - 110px);
    background: #fff;
  }

  body.page-inbox.no-mailbox main section.grid > div.card {
    display: none !important;
  }

  /* inbox list screen: mailbox selected */
  body.page-inbox.has-mailbox main section.grid {
    display: block !important;
    margin: 0 !important;
  }

  body.page-inbox.has-mailbox main section.grid > aside.card {
    display: none !important;
  }

  body.page-inbox.has-mailbox main section.grid > div.card {
    display: block !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    min-height: calc(100vh - 110px);
    background: #fff;
    padding: 0 !important;
  }

  body.page-inbox.has-mailbox main section.grid > div.card h1 {
    font-size: 18px;
    color: #173a75;
    padding: 14px 16px;
    margin: 0;
    border-bottom: 2px solid #d8e2ee;
    background: #f8fbfe;
  }

  body.page-inbox.has-mailbox main section.grid > div.card h1:before {
    content: "← ";
  }

  body.page-inbox.has-mailbox main section.grid > div.card h1 {
    cursor: pointer;
  }

  body.page-inbox.has-mailbox main section.grid > div.card form {
    padding: 10px 16px;
    border-bottom: 1px solid #e4ebf3;
    margin: 0 !important;
  }

  body.page-inbox.has-mailbox main section.grid table {
    display: block;
    width: 100%;
    border: 0 !important;
  }

  body.page-inbox.has-mailbox main section.grid table tbody,
  body.page-inbox.has-mailbox main section.grid table tr,
  body.page-inbox.has-mailbox main section.grid table td {
    display: block;
    width: 100%;
  }

  body.page-inbox.has-mailbox main section.grid table tr:first-child {
    display: none;
  }

  body.page-inbox.has-mailbox main section.grid table tr {
    border-bottom: 1px solid #e4ebf3;
    padding: 12px 16px;
    background: #fff;
  }

  body.page-inbox.has-mailbox main section.grid table td {
    border: 0 !important;
    padding: 2px 0 !important;
  }

  body.page-inbox.has-mailbox main section.grid table td:nth-child(1) {
    color: #1741a4;
    font-size: 12px;
    font-weight: 800;
  }

  body.page-inbox.has-mailbox main section.grid table td:nth-child(2) {
    font-size: 15px;
    font-weight: 900;
    color: #26364b;
  }

  body.page-inbox.has-mailbox main section.grid table td:nth-child(3) a {
    display: block;
    font-size: 16px;
    color: #26364b;
    text-decoration: none;
    font-weight: 800;
    margin: 3px 0;
  }

  body.page-inbox.has-mailbox main section.grid table td:nth-child(4) {
    font-size: 12px;
    color: #718096;
  }

  /* read page: body only */
  body.page-read main > section.grid {
    display: none !important;
  }

  body.page-read main > section.card {
    display: block !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    min-height: calc(100vh - 110px);
    padding: 16px !important;
    background: #fff;
  }

  body.page-read main > section.card h1 {
    font-size: 19px;
    line-height: 1.35;
    margin: 0 0 12px;
    color: #173a75;
    padding-bottom: 12px;
    border-bottom: 2px solid #d8e2ee;
  }

  body.page-read main > section.card p {
    line-height: 1.7;
    color: #405166;
    padding-bottom: 12px;
    border-bottom: 1px solid #e4ebf3;
  }

  body.page-read main > section.card pre.body {
    white-space: pre-wrap;
    word-break: break-word;
    background: #fbfcfe;
    border: 1px solid #e4ebf3;
    border-radius: 10px;
    padding: 14px;
    line-height: 1.75;
    font-size: 15px;
  }

  body.page-read main > section.card form.inline {
    display: block;
    margin: 10px 0;
  }

  body.page-read main > section.card form.inline select,
  body.page-read main > section.card form.inline button {
    width: 100%;
    margin-top: 8px;
  }

  .mobile-back-link {
    display: block;
    padding: 12px 16px;
    margin: -16px -16px 14px;
    background: #f8fbfe;
    border-bottom: 1px solid #d8e2ee;
  }

  .mobile-back-link a {
    color: #1741a4;
    font-weight: 900;
    text-decoration: none;
  }

  /* mailbox menu */
  body.page-inbox.no-mailbox aside.card h2 {
    padding: 16px;
    margin: 0;
    color: #173a75;
    border-bottom: 2px solid #d8e2ee;
  }

  body.page-inbox.no-mailbox aside.card p {
    margin: 0;
    border-bottom: 1px solid #e4ebf3;
  }

  body.page-inbox.no-mailbox aside.card p a {
    display: block;
    padding: 14px 16px;
    color: #26364b;
    text-decoration: none;
    font-weight: 900;
  }

  body.page-inbox.no-mailbox aside.card p a:before {
    content: "□ ";
    color: #1741a4;
  }

  body.page-inbox.no-mailbox aside.card p:first-of-type a:before {
    content: "☑ ";
  }
}

@media (min-width: 761px) {
  .mobile-back-link {
    display: none;
  }
}




/* fix9075: show back-to-list link on PC read page too */
@media (min-width: 761px) {
  .mobile-back-link {
    display: block !important;
    margin: 0 0 14px;
    padding: 10px 12px;
    background: #f8fbfe;
    border: 1px solid #d8e2ee;
    border-radius: 10px;
  }

  .mobile-back-link a {
    color: #1741a4;
    font-weight: 900;
    text-decoration: none;
  }

  .mobile-back-link a:hover {
    text-decoration: underline;
  }
}


/* fix9076: PC back link width 80% */
@media (min-width: 761px) {
  .mobile-back-link {
    width: 80%;
    max-width: 720px;
  }
}

/* attach9076: attachment send/receive UI */
.attachments {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #d8e2ee;
  border-radius: 12px;
  background: #fbfcfe;
}
.attachments h2 {
  margin: 0 0 12px;
  font-size: 18px;
  color: #173a75;
}
.attachment-item {
  padding: 12px;
  border: 1px solid #e4ebf3;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 10px;
}
.attachment-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.attachment-icon {
  font-size: 20px;
}
.attachment-preview summary {
  cursor: pointer;
  color: #1741a4;
  font-weight: 900;
  margin: 8px 0;
}
.attachment-preview img {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  border-radius: 10px;
  border: 1px solid #d8e2ee;
  background: #f6f9fc;
}
.attachment-download {
  display: inline-block;
  margin-top: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef7ff;
  color: #1741a4;
  font-weight: 900;
  text-decoration: none;
}
input[type="file"] {
  display: block;
  margin-top: 7px;
  padding: 10px;
  width: 100%;
  border: 1px dashed #9fc0e6;
  border-radius: 12px;
  background: #fbfcfe;
}

/* fix_webmail_features_20260609: mailbox tree / folder pills / unread emphasis */
.mail-layout{grid-template-columns:260px 1fr}.mail-sidebar{position:sticky;top:12px;align-self:start}.mailbox-tree{border-bottom:1px solid #e5e7eb;padding:10px 0}.mailbox-tree strong{display:block;margin-bottom:8px;color:#111827}.mailbox-tree a{display:block;padding:7px 10px;border-radius:8px;color:#1f2937}.mailbox-tree a:hover{background:#eef7ff}.folder-pills{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 16px}.folder-pills a{background:#f1f5f9;border:1px solid #d9e3ef;border-radius:999px;padding:7px 12px;color:#1f2937}.is-unseen td{font-weight:800;background:#fbfdff}.is-seen td{color:#64748b}.action-link{display:inline-block;color:#fff}.attachment-item{border:1px solid #e5e7eb;border-radius:10px;padding:12px;margin:10px 0}.attachment-title{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.attachment-preview img{max-width:100%;height:auto;border-radius:10px;margin-top:8px}@media(max-width:800px){.mail-layout{grid-template-columns:1fr}.mail-sidebar{position:static}}

/* mailbox folder menu fix */
.mailbox-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0 20px;
}

.mailbox-nav .mailbox-block {
  display: block;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
}

.mailbox-nav .mailbox-title {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

.mailbox-nav .folder-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mailbox-nav .folder-links a {
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  text-decoration: none;
  color: #225;
  background: #f5f7fb;
}

.mailbox-nav .folder-links a:hover {
  background: #e8eefc;
}


/* force mailbox menu vertical */
.mailbox-nav,
.mailboxes,
.mailbox-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.mailbox-block,
.mailbox-item,
.mailbox-card {
  display: block !important;
  width: 100% !important;
}

.folder-links,
.folder-list,
.mailbox-folders {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.folder-links a,
.folder-list a,
.mailbox-folders a {
  display: block !important;
  width: fit-content;
  min-width: 140px;
}


/* mail sidebar tree layout */
.mail-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  align-items: start;
}

.mail-sidebar {
  min-width: 0;
}

.mail-sidebar h2 {
  margin-bottom: 12px;
}

.mailbox-tree {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
}

.mailbox-tree strong {
  display: block;
  margin-bottom: 6px;
  color: #222;
  word-break: break-all;
}

.mailbox-tree a {
  display: block;
  padding: 7px 10px;
  border-radius: 7px;
  text-decoration: none;
  background: #f5f7fb;
  color: #224;
}

.mailbox-tree a:hover {
  background: #e8eefc;
}

.mail-list h1 {
  margin-top: 0;
}

@media (max-width: 800px) {
  .mail-layout {
    display: block;
  }

  .mail-sidebar {
    margin-bottom: 16px;
  }
}


/* rule folders from filtering rules */
.mailbox-tree-subtitle {
  margin: 8px 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: #667085;
}
.mailbox-tree a.rule-folder {
  padding-left: 18px;
  background: #f8fafc;
}

/* rule folders from filtering rules */
.mailbox-tree-subtitle {
  margin: 8px 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: #667085;
}
.mailbox-tree a.rule-folder {
  padding-left: 18px;
  background: #f8fafc;
}

/* rule folders from filtering rules */
.mailbox-tree-subtitle {
  margin: 8px 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: #667085;
}
.mailbox-tree a.rule-folder {
  padding-left: 18px;
  background: #f8fafc;
}

/* rule folders from filtering rules */
.mailbox-tree-subtitle {
  margin: 8px 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: #667085;
}
.mailbox-tree a.rule-folder {
  padding-left: 18px;
  background: #f8fafc;
}

.unread-count {
  display: inline-block;
  min-width: 20px;
  padding: 1px 6px;
  margin-left: 6px;
  border-radius: 999px;
  background: #d92d20;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.unread-count {
  display: inline-block;
  min-width: 20px;
  padding: 1px 6px;
  margin-left: 6px;
  border-radius: 999px;
  background: #d92d20;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

/* 2026-06-14: フォルダー作成は上メニューのフォルダー管理に統一 */
.sidebar form[action*="folder"],
.sidebar .folder-create,
.sidebar .folder-create-form,
.sidebar .new-folder,
.sidebar input[name="folder_name"],
.sidebar input[name="new_folder"],
.sidebar input[placeholder*="新規フォルダー"] {
    display: none !important;
}


/* 2026-06-14: フォルダー一覧は左サイドバーのみ表示 */
.main .folder-list,
.main .mail-folders,
.main .folders-panel,
.content .folder-list,
.content .mail-folders,
.content .folders-panel,
.mail-main .folder-list,
.mail-main .mail-folders,
.mail-main .folders-panel {
    display: none !important;
}


.sidebar .folder-list,
.sidebar .mail-folders,
.sidebar .folders-panel {
    display: block !important;
}


/* folder create form is handled by the top Folder Management page */
form.folder-create,
.folder-create-panel {
    display: none !important;
}

/* keep mailbox folders in the left sidebar */
.sidebar .folder-list,
.sidebar .mail-folders,
.sidebar .folders-panel,
.sidebar ul.folders,
.sidebar nav.folders {
    display: block !important;
}

/* avoid duplicate folder panels in the main mail body */
.mail-main > .folder-list,
.mail-main > .mail-folders,
.mail-main > .folders-panel,
.content > .folder-list,
.content > .mail-folders,
.content > .folders-panel {
    display: none !important;
}

/* 2026-06-14: 左サイドバーはメールBOX一覧だけにする。フォルダー一覧は上メニューのフォルダー管理へ統一 */
.sidebar .folder-list,
.sidebar .mail-folders,
.sidebar .folders-panel,
.sidebar ul.folders,
.sidebar nav.folders,
.sidebar form.folder-create,
.sidebar .folder-create,
.sidebar .folder-create-panel {
    display: none !important;
}

/* フォルダー案内文も非表示 */
.sidebar .folder-help,
.sidebar .folder-note,
.sidebar .folder-description {
    display: none !important;
}


/* 2026-06-14: 受信画面ではメールBOX一覧だけ表示。フォルダー一覧/作成は上メニューのフォルダー管理に統一 */
.mail-list .folder-nav,
.mail-list .folder-list,
.mail-list .mail-folders,
.mail-list .folders-panel,
.mail-list form.folder-create,
.mail-list .folder-create {
    display: none !important;
}

/* 左側メールBOX内の案内文は出さない */
.mailbox-tree .muted {
    display: none !important;
}


/* 2026-06-14: selected mailbox folders are shown in left sidebar */
.mailbox-tree {
    margin-bottom: 12px;
}

.mailbox-tree strong {
    display: block;
    margin-bottom: 4px;
}

.mailbox-folders {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-left: 10px;
}

.mailbox-folders .folder-link {
    display: block;
    padding: 3px 6px;
    border-radius: 6px;
    text-decoration: none;
}

.mailbox-folders .folder-link.is-current {
    font-weight: bold;
    background: rgba(0,0,0,.06);
}


/* mailbox name first, folders under selected mailbox */
.mailbox-name {
    display: block;
    text-decoration: none;
    margin-bottom: 4px;
}

.mailbox-name strong {
    display: block;
}

.mailbox-folders {
    margin-left: 12px;
}


.mailbox-folders .badge,
.folder-link .badge {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
    background: rgba(0,0,0,.12);
}


.check-row {
    display: block;
    margin: 8px 0;
}

.action-link + .action-link {
    margin-left: 8px;
}


/* 2026-06-14: read画面の返信/転送ボタンを見える色に固定 */
.action-link {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 8px;
    background: #f3f4f6 !important;
    color: #111827 !important;
    border: 1px solid #d1d5db !important;
    text-decoration: none !important;
    font-weight: 600;
}

.action-link.primary,
.primary.action-link {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

.action-link:hover {
    filter: brightness(0.96);
}

.action-link + .action-link {
    margin-left: 8px;
}

