@import url("/native-base.css");
:root {
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #263b35;
  background: #f8f9f6;
  font-synthesis: none;
  --green: #176453;
  --muted: #7b8981;
  --border: #e3e8e1;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #76b9a1;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 236px;
  flex-shrink: 0;
  background: #eef2eb;
  border-right: 1px solid var(--border);
  padding: 38px 24px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: 2px;
}
.brand-icon {
  display: grid;
  place-items: center;
  background: var(--green);
  color: white;
  border-radius: 13px;
  width: 44px;
  height: 46px;
  font-size: 25px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.8px;
  margin-top: 4px;
  color: var(--muted);
}
.nav-label {
  font-size: 11px;
  color: var(--muted);
  margin: 57px 14px 14px;
  letter-spacing: 2px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
nav a {
  padding: 14px 16px;
  border-radius: 9px;
  color: #66776d;
  font-size: 14px;
  display: flex;
  gap: 13px;
  align-items: center;
}
nav a > span {
  font-size: 20px;
  width: 23px;
  text-align: center;
}
nav a:hover {
  background: #e3ebe1;
}
nav a.active {
  background: #dce7d9;
  color: #1c5a47;
  font-weight: 600;
}
.sidebar-foot {
  margin-top: auto;
  padding: 22px 12px 0;
  font-size: 12px;
  line-height: 2;
  color: #63766a;
}
.sidebar-foot small {
  color: #919a91;
  font-size: 10px;
}
.sidebar-foot a {
  display: block;
  margin-top: 18px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #48937c;
  margin-right: 6px;
  flex-shrink: 0;
}
main {
  margin-left: 236px;
  padding: 0 58px;
  width: calc(100% - 236px);
  max-width: 1600px;
}
.topbar {
  height: 91px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.topbar b {
  font-weight: 400;
  color: #475d50;
}
.divider {
  padding: 0 15px;
  color: #bdc6bc;
}
section {
  max-width: 1000px;
  margin: 0 auto;
}
.page-heading {
  margin: 53px 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.eyebrow {
  font-size: 10px;
  color: #8b9b8e;
  letter-spacing: 2.4px;
  font-weight: 600;
}
h1 {
  font-size: 30px;
  font-weight: 550;
  letter-spacing: -0.8px;
  margin: 14px 0 12px;
  line-height: 1.5;
}
p {
  font-size: 13px;
  line-height: 1.8;
  color: #7a897d;
  margin: 0;
}
.pill {
  white-space: nowrap;
  font-size: 11px;
  border: 1px solid #dce6d8;
  background: #eef4e9;
  border-radius: 22px;
  padding: 8px 12px;
  color: #718469;
  display: flex;
  align-items: center;
}
.composer {
  border: 1px solid #dce3d8;
  border-radius: 14px;
  background: white;
  padding: 21px 24px 15px;
  box-shadow: 0 5px 16px #213a2110;
}
.composer label {
  font-size: 12px;
  font-weight: 600;
}
.composer textarea {
  display: block;
  border: 0;
  background: transparent;
  width: 100%;
  padding: 17px 0;
  resize: vertical;
  min-height: 125px;
  color: #2e4037;
  font-size: 14px;
  line-height: 1.8;
  outline: none;
}
.composer textarea::placeholder {
  color: #a6afa3;
}
.composer-bottom {
  border-top: 1px solid #edf0e9;
  display: flex;
  align-items: center;
  padding-top: 14px;
  gap: 16px;
  font-size: 10px;
  color: #9ba696;
}
.send-hint {
  margin-left: auto;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: var(--green);
  border: 1px solid var(--green);
  color: white;
  border-radius: 7px;
  padding: 11px 20px;
  font-size: 12px;
  font-weight: 500;
  min-height: 42px;
}
.primary:hover {
  background: #114b3e;
}
.primary span {
  font-size: 17px;
}
.quiet {
  border: 0;
  background: transparent;
  color: #7e8c80;
  font-size: 12px;
  min-height: 42px;
  padding: 6px;
}
.quiet:hover {
  color: var(--green);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 31px 0 13px;
}
h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
h2 span {
  font-size: 11px;
  font-weight: 400;
  color: #99a492;
  margin-left: 7px;
}
.message-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.message-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 20px 23px;
  min-width: 0;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
}
.card-meta {
  font-size: 10px;
  color: #9ba698;
  letter-spacing: 0.3px;
}
.card-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}
.copy-button {
  background: #f4f7f1;
  color: #59745c;
  border: 1px solid #e3eadd;
  border-radius: 5px;
  padding: 7px 12px;
  font-size: 11px;
  min-height: 34px;
}
.delete-button {
  border: 0;
  background: transparent;
  color: #a2ada0;
  padding: 7px;
  font-size: 13px;
  min-width: 34px;
  min-height: 34px;
}
.delete-button:hover {
  color: #ad5048;
}
.message-content {
  font:
    13px/1.85 "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
  margin: 0;
  color: #46564a;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  user-select: text;
}
.empty {
  background: #f0f4ed;
  border: 1px dashed #d7e1d1;
  text-align: center;
  border-radius: 12px;
  padding: 45px 20px;
  color: #8b9986;
}
.empty strong {
  display: block;
  color: #596e53;
  font-size: 15px;
  margin-bottom: 10px;
}
.empty p {
  font-size: 12px;
}
.notice {
  background: #edf3e8;
  color: #718467;
  font-size: 12px;
  border-radius: 8px;
  padding: 15px 18px;
  margin-bottom: 23px;
}
.share-name {
  font-size: 14px;
  overflow-wrap: anywhere;
  margin: 0 0 7px;
}
.share-link {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: #849b85;
}
.expired {
  color: #ac7163;
}
.load-more {
  display: block;
  margin: 22px auto;
  border: 1px solid var(--border);
  background: white;
  border-radius: 6px;
  padding: 12px 22px;
  color: #7f8e7b;
  font-size: 12px;
}
footer {
  font-size: 10px;
  color: #a5b09f;
  text-align: center;
  padding: 50px 0 28px;
  letter-spacing: 1px;
}
footer span {
  padding: 0 10px;
}
.login-panel {
  max-width: 440px;
  margin: 90px auto;
}
.login-panel h1 {
  font-size: 40px;
  margin: 20px 0;
}
.login-panel form {
  margin: 34px 0 22px;
}
.login-panel label {
  display: block;
  font-size: 12px;
  margin-bottom: 10px;
}
.login-panel input {
  border: 1px solid #d7e0d1;
  border-radius: 8px;
  padding: 14px;
  background: white;
  width: 100%;
  margin-bottom: 15px;
  outline-color: #709e87;
}
.login-panel button {
  width: 100%;
}
.login-panel small {
  font-size: 11px;
  color: #97a391;
}
#login-error {
  color: #ac5046;
  padding-top: 10px;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 22px;
  background: #244f41;
  color: white;
  border-radius: 8px;
  font-size: 13px;
  z-index: 10000;
  max-width: 90vw;
  box-shadow: 0 5px 25px #0002;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 27px;
  max-width: calc(100vw - 32px);
  width: 380px;
  background: #fcfdfb;
  color: #304436;
}
dialog::backdrop {
  background: #1d31294d;
}
dialog h2 {
  font-size: 19px;
  margin-bottom: 12px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.dialog-actions button {
  border: 1px solid var(--border);
  background: white;
  border-radius: 6px;
  padding: 10px 18px;
}
.dialog-actions .danger {
  background: #a45043;
  color: white;
  border-color: #a45043;
}
@media (min-width: 1500px) {
  main {
    padding: 0 90px;
  }
}
@media (max-width: 1000px) {
  main {
    padding: 0 28px;
    margin-left: 190px;
    width: calc(100% - 190px);
  }
  .sidebar {
    width: 190px;
    padding: 30px 17px;
  }
  .page-heading {
    align-items: flex-start;
  }
  h1 {
    font-size: 25px;
  }
  .send-hint {
    display: none;
  }
  .composer-bottom .primary {
    margin-left: auto;
  }
}
@media (max-width: 640px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    padding: 19px 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .brand {
    font-size: 22px;
    gap: 11px;
  }
  .brand-icon {
    width: 37px;
    height: 39px;
    font-size: 22px;
  }
  .brand small {
    font-size: 8px;
  }
  .nav-label,
  .sidebar-foot {
    display: none;
  }
  nav {
    flex-direction: row;
    gap: 8px;
    margin-top: 20px;
  }
  nav a {
    flex: 1;
    justify-content: center;
    gap: 7px;
    font-size: 12px;
    padding: 12px 8px;
    border-radius: 7px 7px 0 0;
  }
  nav a > span {
    font-size: 17px;
    width: auto;
  }
  main {
    margin: 0;
    width: 100%;
    padding: 0 20px;
  }
  .topbar {
    height: 58px;
    font-size: 10px;
  }
  .divider {
    padding: 0 8px;
  }
  .topbar .quiet {
    font-size: 10px;
  }
  .page-heading {
    margin: 29px 0 23px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.8px;
  }
  h1 {
    font-size: 23px;
    margin: 10px 0;
  }
  p {
    font-size: 12px;
  }
  .pill {
    font-size: 10px;
    padding: 6px 9px;
  }
  .composer {
    padding: 17px 16px 13px;
  }
  .composer textarea {
    font-size: 13px;
    min-height: 140px;
  }
  .composer-bottom {
    gap: 10px;
  }
  .primary {
    padding: 10px 15px;
    font-size: 12px;
  }
  .message-card {
    padding: 16px;
  }
  .card-actions {
    gap: 5px;
  }
  .card-meta {
    font-size: 9px;
  }
  .copy-button,
  .delete-button {
    min-height: 44px;
  }
  .message-content {
    font-size: 13px;
  }
  .section-heading {
    margin-top: 23px;
  }
  .login-panel {
    margin: 50px auto;
  }
  .login-panel h1 {
    font-size: 34px;
  }
  footer {
    font-size: 9px;
    padding: 35px 0 22px;
  }
}
