:root{
  --paper:#f6f5ef;
  --card:#fffefa;
  --ink:#253b32;
  --muted:#788079;
  --line:#e3e6dc;
  --green:#335c48;
  --light:#eaf0e6;
  --orange:#a86b30;
  font-family:"Segoe UI","Microsoft YaHei",sans-serif;
  color:var(--ink);
  background:var(--paper);
  font-synthesis:none
}
*{
  box-sizing:border-box
}
body{
  margin:0
}
button,input,select,textarea{
  font:inherit
}
button,a,input,select,textarea{
  -webkit-tap-highlight-color:transparent
}
button{
  cursor:pointer
}
button:disabled{
  cursor:wait;
  opacity:.55
}
a{
  color:inherit;
  text-decoration:none
}
[hidden]{
  display:none!important
}
.topbar{
  height:88px;
  border-bottom:1px solid var(--line);
  padding:0 max(32px,calc((100vw - 1240px)/2));
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:var(--card);
  gap:16px
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:22px;
  font-weight:650;
  letter-spacing:-.6px
}
.brand-mark{
  display:grid;
  place-items:center;
  background:var(--green);
  color:#fffef5;
  width:43px;
  height:46px;
  border-radius:11px 11px 11px 3px;
  font-family:Georgia,serif;
  font-size:26px;
  font-weight:400
}
.brand small{
  display:block;
  font-size:10px;
  font-weight:400;
  letter-spacing:2px;
  color:var(--muted);
  margin-top:4px
}
.top-actions{
  display:flex;
  align-items:center;
  gap:20px
}
.connection{
  font-size:12px;
  color:var(--muted)
}
.connection:before{
  content:"";
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#a7ada6;
  margin-right:7px
}
.connection.connected:before{
  background:#527856
}
main{
  max-width:1240px;
  margin:auto;
  padding:44px 32px 60px;
  min-height:calc(100vh - 163px)
}
h1,h2,h3,p{
  margin-top:0
}
h1{
  font-size:32px;
  font-weight:600;
  letter-spacing:-1px;
  margin-bottom:12px
}
h2{
  font-size:20px;
  font-weight:600;
  letter-spacing:-.4px;
  margin-bottom:8px
}
h3{
  font-size:18px;
  font-weight:550
}
.muted,.hint{
  color:var(--muted);
  line-height:1.8
}
.muted{
  font-size:14px;
  margin-bottom:0
}
.hint{
  font-size:12px;
  margin:8px 0 0
}
.small{
  font-size:12px
}
.eyebrow{
  font-size:10px;
  letter-spacing:2.1px;
  color:#7d8b78;
  font-weight:650;
  margin-bottom:13px
}
.page-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:32px
}
.button{
  border:1px solid #d5ddcf;
  border-radius:7px;
  padding:10px 16px;
  min-height:40px;
  background:var(--card);
  color:var(--ink);
  font-size:13px;
  font-weight:550;
  white-space:nowrap;
  transition:background .15s,border-color .15s
}
.button:hover{
  background:#f0f2e9;
  border-color:#a3b49e
}
.button.primary{
  background:var(--green);
  color:#fffef5;
  border-color:var(--green)
}
.button.primary:hover{
  background:#274a39
}
.button.danger{
  color:#a04c3b;
  border-color:#e5cfc7;
}
.button.danger:hover{
  background:#faf0ec;
}
.button.danger-solid{
  color:#fff;
  background:#9e4f3d;
  border-color:#9e4f3d;
}
.button.danger-solid:hover{
  background:#863f30;
}
.row-actions{
  display:flex;
  gap:7px;
}
.mode-switch{
  display:flex;
  gap:4px;
  padding:4px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#f2f3ec;
  margin-bottom:24px;
}
.mode-switch button{
  flex:1;
  padding:10px 14px;
  border:0;
  border-radius:5px;
  background:transparent;
  font-size:13px;
  color:var(--muted);
}
.mode-switch button[aria-pressed=true]{
  color:var(--green);
  background:var(--card);
  box-shadow:0 1px 4px #253b3210;
  font-weight:600;
}
#text-panel>.checkbox-row,
#image-panel>.checkbox-row{
  margin-top:22px;
}
#image-panel{
  margin-top:22px;
}
#image-file{
  font-size:12px;
  padding:15px 12px;
  border-style:dashed;
  background:#f6f7f0;
}
#image-file::file-selector-button{
  border:1px solid #ced9c7;
  border-radius:5px;
  padding:7px 10px;
  margin-right:10px;
  background:var(--card);
  color:var(--green);
  cursor:pointer;
}
.image-options{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:16px;
  margin-top:20px;
}
.image-options label{
  font-size:12px;
}
#image-threshold{
  width:100%;
  padding:0;
  border:0;
  background:transparent;
  accent-color:var(--green);
  margin:10px 0;
  box-shadow:none;
}
#threshold-value{
  float:right;
  color:var(--muted);
  font-weight:400;
}
.image-comparison{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:16px;
  margin-top:24px;
}
.image-comparison figure{
  margin:0;
  min-width:0;
}
.image-frame{
  aspect-ratio:1;
  display:grid;
  place-items:center;
  background:#eeefe7;
  border:1px solid var(--line);
  border-radius:6px;
  overflow:hidden;
}
.image-frame img{
  width:100%;
  height:100%;
  max-width:200px;
  max-height:200px;
  object-fit:contain;
  background:white;
}
#converted-image{
  image-rendering:pixelated;
}
.image-frame span{
  padding:12px;
  font-size:11px;
  color:var(--muted);
  text-align:center;
}
.image-comparison figcaption{
  font-size:10px;
  text-align:center;
  color:var(--muted);
  margin-top:10px;
}
#image-feedback{
  margin:14px 0;
}
#delete-error{
  color:#a04c3b;
}
.style-bold{align-self:end;margin-bottom:12px;}
.delivery-label{margin-top:26px;}
#schedule-options>div{margin-top:16px;}
#schedule-options label{margin-top:12px;}
.text-preview-box{margin-top:18px;padding:16px;text-align:center;border:1px solid var(--line);background:#eeefe7;border-radius:6px;}
.text-preview-box img{border:1px solid #d4dacb;max-width:100%;height:auto;}
.weather-label{margin-top:18px;}
#weather-results{margin-top:10px;font-size:11px;}
.weather-refresh{margin-top:14px;}
.schedule-note{margin-bottom:16px;}
.daily-dog{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px;border:1px solid #dce4d3;border-radius:8px;background:#f2f5ea;margin-bottom:20px;}
.daily-dog h3{font-size:16px;margin-bottom:7px;}
.daily-dog h3 .tag{margin-left:8px;}
.daily-dog a{color:var(--green);text-decoration:underline;}
#dog-form{display:flex;gap:10px;flex-shrink:0;max-width:100%;}
#dog-device{width:160px;min-width:0;}
#dog-rule{white-space:normal;display:inline-block;line-height:1.6;}
#schedule-edit-form>label,#edit-once-options>label,#edit-weekday-options>label{margin-top:18px;}
.edit-enabled{margin-top:22px;}
#schedule-edit-error{color:#a04c3b;}
#schedule-dialog input{min-width:0;}
.voice-model-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:22px 0;}
#announcement-list .article-cell{min-width:170px;}
@media(max-width:600px){
  #announcement-table{min-width:0;width:100%;}
  #announcement-table thead{display:none;}
  #announcement-list,#announcement-list tr,#announcement-list td{display:block;}
  #announcement-list tr{padding:14px 0;border-bottom:1px solid var(--line);}
  #announcement-list td{padding:5px 0;border:0;white-space:normal;max-width:none;min-width:0;}
  #announcement-list td::before{content:attr(data-label);display:inline-block;min-width:65px;color:var(--muted);font-size:10px;}
  #announcement-list .article-cell{min-width:0;font-size:13px;line-height:1.7;}
  #announcement-list .article-cell::before{display:block;margin-bottom:3px;}
}
.voice-model{border:1px solid var(--line);border-radius:8px;margin:0;padding:18px;min-width:0;}
.voice-model legend{font-size:13px;font-weight:600;padding:0 7px;}
.voice-model label:not(.checkbox-row){margin-top:16px;}
.voice-model .checkbox-row{margin-top:15px;font-size:11px;}
#voice-settings-form>.checkbox-row{margin-top:20px;}
#voice-settings-form>button,#announcement-form>button{margin:18px 0;}
#voice-volume{accent-color:var(--green);padding:8px 0;border:0;box-shadow:none;}
@media(max-width:850px){.voice-model-grid{grid-template-columns:1fr;}}
@media(max-width:850px){.daily-dog{align-items:stretch;flex-direction:column;gap:14px;}#dog-form{flex-wrap:wrap;}#dog-device{flex:1;}}
.button.subtle{
  background:transparent;
  border-color:transparent
}
.full{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:22px
}
.stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  margin-bottom:28px;
  border:1px solid var(--line);
  background:#eeefe5;
  border-radius:10px
}
.stat{
  padding:23px 30px
}
.stat+.stat{
  border-left:1px solid #dce1d2
}
.stat span{
  font-size:13px;
  display:block;
  color:#63715f
}
.stat strong{
  display:block;
  font-family:Georgia,"Microsoft YaHei",serif;
  font-weight:400;
  font-size:42px;
  line-height:1.4
}
.stat small{
  font-size:11px;
  color:#89917f
}
.desk-grid{
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);
  gap:26px;
  align-items:start
}
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:10px;
  padding:28px
}
.section-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:24px
}
.section-heading h2{
  margin-bottom:0
}
.section-heading .eyebrow{
  margin-bottom:9px
}
.tag{
  font-size:10px;
  color:#778371;
  border:1px solid #dee4d6;
  border-radius:5px;
  padding:5px 8px;
  white-space:nowrap
}
label{
  display:block;
  font-size:13px;
  font-weight:550;
  margin-bottom:9px
}
input:not([type=checkbox]),select,textarea{
  width:100%;
  border:1px solid #dce1d6;
  border-radius:6px;
  background:#fffefa;
  color:var(--ink);
  padding:11px 12px;
  font-size:13px;
  outline:none
}
input::placeholder,textarea::placeholder{
  color:#a1a69b
}
input:focus,select:focus,textarea:focus{
  border-color:#688568;
  box-shadow:0 0 0 3px #335c4810
}
textarea{
  resize:vertical;
  line-height:1.8;
  min-height:90px
}
#publish-form>label:not(:first-child){
  margin-top:22px
}
.label-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:22px;
  margin-bottom:9px
}
.label-row label{
  margin:0
}
.file-button{
  font-size:11px;
  color:#668163;
  cursor:pointer;
  padding:4px 0
}
.text-meta{
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:10px;
  color:#8c9485;
  margin-top:8px
}
.checkbox-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-weight:400;
  font-size:12px;
  line-height:1.6
}
.checkbox-row input{
  accent-color:var(--green);
  margin:3px 0 0;
  width:15px;
  height:15px
}
.checkbox-row small{
  display:block;
  color:var(--muted);
  font-size:10px;
  margin-top:4px
}
.side-stack{
  display:grid;
  gap:24px
}
.device-list{
  max-height:285px;
  overflow:auto
}
.device-row{
  padding:15px 0;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:12px
}
.device-row:first-child{
  padding-top:0
}
.device-icon{
  width:33px;
  height:40px;
  display:grid;
  place-items:center;
  background:#eef0e7;
  border:1px solid #e0e4d6;
  border-radius:5px;
  font-size:16px;
  color:#688163;
  flex-shrink:0
}
.device-info{
  min-width:0;
  flex:1
}
.device-info strong{
  font-weight:550;
  font-size:13px;
  display:block;
  overflow-wrap:anywhere
}
.device-info small{
  color:var(--muted);
  font-size:10px;
  display:block;
  margin-top:5px
}
.device-row .tag{
  background:var(--light);
  border:0;
  font-size:10px
}
.register-form{
  padding-top:22px
}
.input-row{
  display:flex;
  gap:8px
}
.input-row input{
  min-width:0
}
.guide{
  padding:4px 10px 12px
}
.guide .eyebrow{
  margin-bottom:12px
}
.guide h3{
  margin-bottom:12px
}
.guide ol{
  padding-left:20px;
  margin:0;
  font-size:12px;
  color:#6d7769;
  line-height:2.1
}
.guide p:last-child{
  font-size:11px;
  line-height:1.9;
  color:#8b9385;
  margin:15px 0 0
}
.history-card{
  margin-top:28px;
  padding-bottom:12px
}
.history-tools{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:12px;
}
.history-tools select{
  width:170px;
  font-size:12px
}
.table-wrap{
  overflow-x:auto
}
table{
  border-collapse:collapse;
  width:100%;
  font-size:12px;
  text-align:left;
  white-space:nowrap
}
th{
  font-size:10px;
  font-weight:500;
  color:#8a9483;
  padding:13px 12px;
  background:#f5f6f0;
  border-bottom:1px solid var(--line)
}
th:first-child{
  border-radius:5px 0 0 5px
}
td{
  padding:17px 12px;
  border-bottom:1px solid #edf0e6;
  color:#7c8675
}
tbody tr:last-child td{
  border-bottom:0
}
.article-cell{
  max-width:320px;
  white-space:normal;
  overflow-wrap:anywhere
}
.article-cell strong{
  font-size:13px;
  font-weight:500;
  color:var(--ink);
  display:block;
  line-height:1.7
}
.article-cell small{
  font-size:10px;
  color:#949e8b
}
.status{
  font-size:10px;
  padding:5px 8px;
  border-radius:4px;
  display:inline-block
}
.status.pending{
  color:#9a763c;
  background:#f6efdc
}
.status.received{
  color:#50734a;
  background:#eaf1e3
}
td .button{
  font-size:11px;
  min-height:30px;
  padding:5px 9px
}
.empty{
  text-align:center;
  padding:26px 8px;
  color:#89927f;
  font-size:12px;
  line-height:1.8
}
.load-more{
  display:block;
  margin:10px auto 14px
}
.notice{
  position:fixed;
  bottom:24px;
  left:50%;
  transform:translateX(-50%);
  padding:15px 24px;
  border-radius:8px;
  background:#2f5441;
  color:#fff;
  box-shadow:0 6px 25px #20372522;
  font-size:13px;
  max-width:calc(100vw - 32px);
  width:max-content;
  z-index:10;
  line-height:1.7;
  margin:0
}
.notice.error{
  background:#8c463a
}
footer{
  max-width:1176px;
  margin:auto;
  padding:22px 0 30px;
  display:flex;
  justify-content:space-between;
  border-top:1px solid var(--line);
  font-size:11px;
  color:#8c9585
}
footer span:first-child{
  font-family:Georgia,serif;
  font-size:14px
}
.login-layout{
  display:grid;
  grid-template-columns:1fr 1fr;
  max-width:920px;
  gap:90px;
  align-items:center;
  margin:35px auto 30px
}
.intro h1{
  font-family:Georgia,"Microsoft YaHei",serif;
  font-weight:450;
  font-size:42px;
  line-height:1.5
}
.intro>p:not(.eyebrow){
  font-size:14px;
  color:#83907b;
  line-height:1.9
}
.login-card{
  padding:38px
}
.login-card h2{
  font-size:25px
}
.login-card .muted{
  margin-bottom:28px
}
.login-note{
  font-size:11px;
  color:#97a08f;
  margin:22px 0 0;
  text-align:center;
  line-height:1.8
}
.reader-art{
  width:186px;
  border-radius:14px;
  padding:14px 14px 9px;
  border:1px solid #cbd3c1;
  background:#eceee3;
  transform:rotate(-6deg);
  margin:30px 0 0 16px;
  box-shadow:10px 15px 0 #e4e7d955
}
.reader-paper{
  border:1px solid #cbd1c2;
  background:#faf9f2;
  height:153px;
  padding:17px;
  color:#6d7c61
}
.reader-paper span{
  display:block;
  font-size:9px;
  letter-spacing:2px;
  padding-bottom:9px;
  border-bottom:1px solid #bcc7b1
}
.reader-paper i{
  height:2px;
  background:#ced5c3;
  display:block;
  margin-top:9px
}
.reader-paper i:nth-child(4){
  width:80%
}
.reader-paper b{
  font-size:9px;
  font-weight:400;
  display:block;
  margin-top:15px
}
.reader-dot{
  width:4px;
  height:4px;
  border:1px solid #8d9e7d;
  border-radius:50%;
  display:block;
  margin:8px auto 0
}
dialog{
  width:min(520px,calc(100vw - 32px));
  background:var(--card);
  border:1px solid var(--line);
  border-radius:12px;
  padding:30px;
  color:var(--ink);
  box-shadow:0 20px 100px #1f392333
}
dialog::backdrop{
  background:#24372b66;
  backdrop-filter:blur(3px)
}
.dialog-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px
}
.dialog-heading h2{
  margin:0
}
dialog>label{
  margin-top:20px
}
.dialog-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:24px
}
.config-code{
  font-family:Consolas,monospace;
  font-size:12px;
  white-space:pre;
  overflow:auto
}
.preview-paper{
  display:grid;
  place-items:center;
  min-height:260px;
  background:#edeee5;
  border-radius:8px;
  margin:20px 0
}
.preview-paper img{
  border:1px solid #ccd1c1;
  box-sizing:content-box;
  box-shadow:0 4px 20px #23352512
}
.preview-paper p{
  font-size:12px;
  color:var(--muted);
  max-width:90%;
  line-height:1.8
}
.preview-controls{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-size:12px
}
.sr-only{
  position:absolute;
  left:0;
  top:0;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
:focus-visible{
  outline:2px solid #708c62;
  outline-offset:3px
}
@media(max-width:850px){
  .desk-grid{
    grid-template-columns:1fr
  }
  .side-stack{
    grid-template-columns:1fr 1fr;
    align-items:start
  }
  .login-layout{
    gap:35px
  }
  .login-card{
    padding:26px
  }
  .intro h1{
    font-size:34px
  }
  .history-heading{
    align-items:flex-start
  }
  .history-tools{
    flex-direction:column;
    gap:5px;
    align-items:flex-end
  }
  footer{
    margin:0 32px
  }
}
@media(max-width:600px){
  .topbar{
    height:76px;
    padding:0 20px
  }
  .brand{
    font-size:19px
  }
  .brand small{
    font-size:9px;
    letter-spacing:1px
  }
  .brand-mark{
    width:36px;
    height:40px
  }
  .top-actions{
    gap:5px
  }
  .connection{
    font-size:10px
  }
  main{
    padding:28px 18px 36px
  }
  .page-heading{
    align-items:flex-start;
    margin-bottom:22px
  }
  .page-heading h1{
    font-size:26px
  }
  .page-heading .muted{
    font-size:12px;
    max-width:220px
  }
  .page-heading>.button{
    padding:8px 10px;
    font-size:11px;
    margin-top:22px
  }
  .stats{
    margin-bottom:20px
  }
  .stat{
    padding:18px 12px
  }
  .stat span{
    font-size:11px
  }
  .stat strong{
    font-size:32px
  }
  .stat small{
    font-size:9px;
    line-height:1.6;
    display:block
  }
  .card{
    padding:22px 18px
  }
  .side-stack{
    grid-template-columns:1fr
  }
  .guide{
    padding:4px 8px
  }
  .desk-grid{
    gap:20px
  }
  .history-card{
    margin-top:20px
  }
  .history-tools select{
    width:130px
  }
  .history-tools .small{
    font-size:10px
  }
  .history-heading{
    gap:8px
  }
  .login-layout{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:25px;
    margin:12px auto;
    max-width:400px
  }
  .intro h1{
    font-size:30px;
    line-height:1.4;
    margin-bottom:8px
  }
  .intro h1 br{
    display:none
  }
  .intro>p:not(.eyebrow){
    font-size:12px;
    margin-bottom:0
  }
  .reader-art{
    display:none
  }
  .login-card{
    padding:26px
  }
  .text-meta{
    font-size:9px
  }
  .dialog-actions{
    flex-wrap:wrap
  }
  .preview-controls{
    font-size:11px
  }
  .preview-controls .button{
    padding:8px 10px
  }
  footer{
    margin:0 20px;
    font-size:10px
  }
  dialog{
    padding:24px 20px
  }
}
