:root{
  --bg:#eef3fb;
  --surface:#ffffff;
  --surface-soft:#f8fbff;
  --border:#d8e1ef;
  --border-strong:#c6d3e6;
  --text:#142033;
  --muted:#66758c;
  --primary:#2563eb;
  --primary-dark:#1d4ed8;
  --primary-soft:#eaf1ff;
  --success:#16a34a;
  --success-soft:#ecfdf3;
  --danger:#dc2626;
  --danger-soft:#fef2f2;
  --warning:#f59e0b;
  --shadow:0 18px 44px rgba(15, 23, 42, .08);
  --shadow-sm:0 10px 30px rgba(15, 23, 42, .06);
  --radius-xl:24px;
  --radius-lg:18px;
  --radius-md:14px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif;background:linear-gradient(180deg,#f6f9ff 0,#eef4fb 100%);color:var(--text)}
a{color:var(--primary);text-decoration:none}
a:hover{text-decoration:none}
code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace}
.layout{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:28px}
.card{width:100%;max-width:460px;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.66);border-radius:22px;box-shadow:0 28px 60px rgba(15,23,42,.12);padding:30px}
.card-wide{max-width:760px}
h1{font-size:28px;margin:0 0 10px;letter-spacing:.01em}
h2{font-size:24px;margin:0 0 12px;letter-spacing:.01em}
h3{font-size:18px;margin:0}
p.muted,.muted{margin:0;color:var(--muted);line-height:1.7}
.form-group{margin-bottom:16px}
label{display:block;font-size:14px;font-weight:600;margin-bottom:8px;color:#314157}
input[type=text],input[type=password],input[type=number],input[type=datetime-local],input[type=date],input[type=time],select,textarea{
  width:100%;min-height:46px;border:1px solid var(--border);border-radius:14px;padding:10px 14px;font-size:14px;outline:none;background:#fff;color:var(--text);transition:border-color .2s ease, box-shadow .2s ease, background-color .2s ease, transform .2s ease;
}
select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  padding-right:44px;
  border-color:#cfdcf0;
  background-color:#fff;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 5.25L7 9.25L11 5.25' stroke='%23546A89' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), linear-gradient(180deg,#ffffff 0%,#f6f9ff 100%);
  background-repeat:no-repeat,no-repeat;
  background-position:right 14px center,0 0;
  background-size:14px 14px,100% 100%;
  box-shadow:0 8px 18px rgba(15,23,42,.04), inset 0 1px 0 rgba(255,255,255,.9);
}
select:hover{
  border-color:#b8cae6;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 5.25L7 9.25L11 5.25' stroke='%232563EB' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), linear-gradient(180deg,#ffffff 0%,#eef5ff 100%);
}
textarea{min-height:96px;resize:vertical}
input[readonly]{background:#f5f8ff;color:#49607f;border-color:#d9e4f5;cursor:not-allowed;box-shadow:none}
input[readonly]:focus{border-color:#c5d6ef;box-shadow:none}
input:focus,select:focus,textarea:focus{border-color:#8eb7ff;box-shadow:0 0 0 4px rgba(37,99,235,.12)}
.row{display:flex;gap:12px}.row>*{flex:1}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border:none;border-radius:14px;background:linear-gradient(135deg,var(--primary),var(--primary-dark));color:#fff;font-size:14px;font-weight:700;cursor:pointer;box-shadow:0 12px 20px rgba(37,99,235,.16);transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease}
.btn:hover{transform:translateY(-1px);box-shadow:0 14px 24px rgba(37,99,235,.2)}
.btn-secondary{background:#fff;color:var(--text);border:1px solid var(--border);box-shadow:none}
.btn-secondary:hover{box-shadow:0 10px 18px rgba(15,23,42,.06)}
.btn-green{background:linear-gradient(135deg,#16a34a,#15803d)}
.btn-danger{background:linear-gradient(135deg,#ef4444,#dc2626)}
.btn[disabled]{opacity:.5;cursor:not-allowed;transform:none;box-shadow:none}
.alert{padding:14px 16px;border-radius:16px;margin:0 0 18px;font-size:14px;line-height:1.6;border:1px solid transparent;box-shadow:var(--shadow-sm)}
.alert-error{background:var(--danger-soft);color:#991b1b;border-color:#fecaca}
.alert-success{background:var(--success-soft);color:#166534;border-color:#bbf7d0}
.alert-info{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}
body[data-page="smart-devices"] .alert-success{
  position:fixed;
  top:16px;
  left:50%;
  transform:translateX(-50%);
  width:min(calc(100vw - 24px), 560px);
  margin:0;
  z-index:120;
  border-radius:16px;
  box-shadow:0 18px 40px rgba(15,23,42,.18);
  opacity:1;
  transition:opacity .28s ease, transform .28s ease;
}
body[data-page="smart-devices"] .alert-success.is-toast-hide{
  opacity:0;
  transform:translateX(-50%) translateY(-10px);
  pointer-events:none;
}
body[data-page="admin-home"] .admin-home-toast{
  position:fixed;
  top:16px;
  left:50%;
  transform:translateX(-50%) translateY(-10px);
  width:min(calc(100vw - 24px), 420px);
  margin:0;
  z-index:140;
  border-radius:16px;
  box-shadow:0 18px 40px rgba(15,23,42,.18);
  opacity:0;
  pointer-events:none;
  transition:opacity .24s ease, transform .24s ease;
}
body[data-page="admin-home"] .admin-home-toast.is-visible{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}
body[data-page="admin-home"] .admin-home-toast.is-toast-hide{
  opacity:0;
  transform:translateX(-50%) translateY(-10px);
}
body[data-page="frontend-home"] .frontend-home-toast{
  position:fixed;
  top:16px;
  left:50%;
  transform:translateX(-50%) translateY(-10px);
  width:min(calc(100vw - 24px), 420px);
  margin:0;
  z-index:140;
  border-radius:16px;
  box-shadow:0 18px 40px rgba(15,23,42,.18);
  opacity:0;
  pointer-events:none;
  transition:opacity .24s ease, transform .24s ease;
}
body[data-page="frontend-home"] .frontend-home-toast.is-visible{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}
body[data-page="frontend-home"] .frontend-home-toast.is-toast-hide{
  opacity:0;
  transform:translateX(-50%) translateY(-10px);
}
@media (max-width:640px){
  body[data-page="admin-home"] .admin-home-toast{
    top:12px;
    width:calc(100vw - 20px);
  }
}
@media (max-width:640px){
  body[data-page="frontend-home"] .frontend-home-toast{
    top:12px;
    width:calc(100vw - 20px);
  }
}
@media (max-width:640px){
  body[data-page="smart-devices"] .alert-success{
    top:12px;
    width:calc(100vw - 20px);
  }
}
.checkbox{display:flex;align-items:center;gap:8px;font-size:14px;color:#4b5563}
.page{min-height:100vh;padding-bottom:34px}
.topbar{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;align-items:center;padding:18px 28px;background:rgba(10,18,34,.9);backdrop-filter:blur(12px);border-bottom:1px solid rgba(255,255,255,.08);box-shadow:0 12px 30px rgba(15,23,42,.16)}
.topbar strong{font-size:18px;color:#fff}
.topbar .links{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.topbar .links a{display:inline-flex;align-items:center;justify-content:center;height:38px;padding:0 14px;border-radius:999px;background:rgba(255,255,255,.08);color:#eaf0ff;font-size:14px;transition:all .2s ease}
.topbar .links a:hover{background:rgba(255,255,255,.16);color:#fff}
.topbar-sub{font-size:13px;color:rgba(235,241,255,.7);margin-top:6px}
.dashboard{padding:34px 28px}
.dashboard-narrow{max-width:1100px;margin:0 auto}
.dashboard-wide{max-width:1280px;margin:0 auto}
.placeholder{height:420px;border:2px dashed var(--border);border-radius:18px;background:linear-gradient(180deg,#fff,#f9fafb);display:flex;align-items:center;justify-content:center;color:#9ca3af;font-size:18px}
.frontend-title-row{margin-bottom:18px}
.note{font-size:13px;color:var(--muted);line-height:1.7}
.install-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.topbar-wrap{gap:16px;flex-wrap:wrap}.links-wrap{flex-wrap:wrap}

.board-head,.doc-card,.task-panel,.frontend-task-board{
  background:rgba(255,255,255,.96);
  border:1px solid rgba(218,227,241,.9);
  border-radius:var(--radius-xl);
  box-shadow:var(--shadow);
  backdrop-filter:blur(12px);
}
.board-head{padding:22px 24px;display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:22px}
.board-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.sort-form{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.select{width:auto;min-width:180px;border-radius:16px;font-weight:600;color:#24364d}
.board-head-minimal{padding:18px 22px;justify-content:flex-end;align-items:center}
.board-head-minimal .board-actions{width:100%;justify-content:space-between}
.sort-form label{margin-bottom:0;white-space:nowrap;color:#5c6f89}
.task-sections{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.task-panel{padding:18px}
.task-panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.badge{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;border-radius:999px;padding:0 12px;background:var(--primary-soft);color:var(--primary-dark);font-size:13px;font-weight:700}
.badge-done{background:#edf2f7;color:#475569}
.task-list,.frontend-task-strip-list{display:flex;flex-direction:column;gap:14px}
.empty-box{border:1px dashed var(--border-strong);border-radius:18px;padding:26px 18px;text-align:center;color:#94a3b8;background:#f8fbff}
.task-card{background:var(--task-soft);border-left:6px solid var(--task-accent);border-radius:18px;padding:16px 16px 14px;color:var(--task-text,#1f2937);box-shadow:0 8px 18px rgba(15,23,42,.05)}
.task-card.is-done{opacity:.85}.task-card.is-device-task{box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.task-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}
.task-times{display:flex;flex-direction:column;gap:4px;align-items:flex-end;font-size:12px;color:var(--task-meta,#6b7280)}
.task-color-chip{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:26px;border-radius:999px;padding:0 10px;background:var(--task-chip-bg,rgba(255,255,255,.72));font-size:12px;font-weight:700;color:var(--task-chip-text,#111827)}
.task-content{line-height:1.8;font-size:14px;word-break:break-word}.task-content p{margin:0 0 8px}.task-content p:last-child{margin-bottom:0}
.task-inline-form{margin-top:12px}.task-action-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.task-action-row .task-inline-form{margin-top:0}.task-action-row .btn,.task-action-row form{flex:1}

.modal{position:fixed;inset:0;display:none;z-index:60}.modal.is-open{display:block}.modal-backdrop{position:absolute;inset:0;background:rgba(10,17,31,.52);backdrop-filter:blur(2px)}
.modal-dialog{position:relative;z-index:1;width:min(92vw,720px);margin:5vh auto;background:rgba(255,255,255,.98);border:1px solid rgba(228,235,245,.9);border-radius:28px;box-shadow:0 24px 60px rgba(15,23,42,.2);padding:24px 24px 22px;max-height:90vh;overflow:auto}
.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:14px}
.modal-head h3{font-size:20px}
.icon-btn{width:40px;height:40px;border:none;border-radius:999px;background:#eff4fb;font-size:24px;color:#3b4c65;cursor:pointer}
.icon-btn:hover{background:#e6edf8}
.modal-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:18px;flex-wrap:wrap}
.hidden-textarea{display:none}
.editor-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}.editor-toolbar button{border:1px solid var(--border);background:#fff;border-radius:12px;padding:8px 12px;cursor:pointer;color:var(--text)}
.editor{min-height:180px;border:1px solid var(--border);border-radius:16px;padding:12px 14px;line-height:1.8;outline:none;background:#fff}.editor:empty:before{content:attr(data-placeholder);color:#9ca3af}
.form-grid-two{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.datetime-card{display:flex;flex-direction:column;gap:12px;padding:14px;border:1px solid #d8e4f5;border-radius:18px;background:linear-gradient(180deg,#fbfdff 0%,#f3f7ff 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.88),0 10px 22px rgba(15,23,42,.04)}
.datetime-card-main{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(140px,.9fr);gap:12px}
.datetime-field{display:flex;flex-direction:column;gap:8px;margin:0}
.datetime-field span{font-size:12px;font-weight:700;color:#5a6d86;letter-spacing:.02em}
.datetime-field input,.datetime-field select{min-height:48px;border-radius:15px;border-color:#cedbef;background:#fff;box-shadow:0 6px 16px rgba(15,23,42,.04)}
.datetime-field-time select{font-weight:700}
.datetime-quick-actions{display:flex;gap:8px;flex-wrap:wrap}
.datetime-chip{appearance:none;border:none;display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 12px;border-radius:999px;background:#fff;color:#31507a;font-size:12px;font-weight:700;cursor:pointer;border:1px solid #d6e1f2;box-shadow:0 8px 18px rgba(15,23,42,.04);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,color .18s ease,background-color .18s ease}
.datetime-chip:hover{transform:translateY(-1px);border-color:#b7cbeb;color:#1d4ed8;background:#f8fbff;box-shadow:0 10px 22px rgba(15,23,42,.06)}
.datetime-chip:active{transform:none}
.color-palette{display:flex;gap:12px;flex-wrap:wrap}.color-swatch{display:flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer;margin:0}.color-swatch input{display:none}.color-swatch span{display:block;width:34px;height:34px;border-radius:10px;background:var(--swatch);border:3px solid transparent;box-shadow:0 4px 10px rgba(15,23,42,.12)}.color-swatch input:checked + span{border-color:#111827;transform:scale(1.06)}.color-swatch em{font-style:normal;font-size:12px;color:var(--muted)}.color-swatch.is-disabled{opacity:.45;cursor:not-allowed}

.doc-card{padding:22px;margin-bottom:22px}
.doc-head-row{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:10px}
.code-block{background:#0f172a;color:#e5e7eb;border-radius:18px;padding:16px 18px;line-height:1.7;overflow:auto;white-space:pre-wrap;word-break:break-word}
.table-wrap{overflow:auto}
.doc-table{width:100%;border-collapse:separate;border-spacing:0;font-size:14px}
.doc-table th,.doc-table td{border-bottom:1px solid #e6edf7;padding:14px 10px;text-align:left;vertical-align:top}
.doc-table th{background:#f7faff;font-weight:700;color:#2f415d}
.doc-table tr:last-child td{border-bottom:none}
.doc-list{margin:12px 0 0;padding-left:20px;line-height:1.8}

.frontend-task-tabs{display:flex;flex-direction:column;gap:16px}
.frontend-tab-head{display:flex;gap:12px;flex-wrap:wrap}
.frontend-tab-btn{border:none;background:#eef2ff;color:#334155;border-radius:14px;padding:12px 16px;display:inline-flex;align-items:center;gap:10px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s ease}
.frontend-tab-btn strong{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;border-radius:999px;padding:0 10px;background:rgba(255,255,255,.72);font-size:13px;color:#0f172a}
.frontend-tab-btn.is-active{background:#111827;color:#fff;box-shadow:0 10px 24px rgba(15,23,42,.18)}
.frontend-tab-btn.is-active strong{background:rgba(255,255,255,.16);color:#fff}
.frontend-tab-panel{display:none}.frontend-tab-panel.is-active{display:block}
.frontend-device-tab-panel{display:flex;flex-direction:column;gap:18px}
.frontend-device-controls-board,.frontend-device-task-board{padding:20px;border:1px solid #e1e8f3;border-radius:22px;background:linear-gradient(180deg,#fff,#fbfdff);box-shadow:0 10px 26px rgba(15,23,42,.05)}
.frontend-device-subhead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}
.frontend-device-subhead h3{margin:0 0 6px;font-size:18px;color:#0f172a}
.frontend-device-subhead .muted{margin:0;line-height:1.7}
.frontend-device-controls-board .quick-device-tabs{margin-bottom:18px}
.frontend-device-controls-board .quick-device-panel-head{margin-bottom:16px}
.swipe-row{position:relative;overflow:hidden;border-radius:18px}.swipe-action-area{position:absolute;right:0;top:0;bottom:0;width:128px;display:flex;align-items:center;justify-content:center;background:#16a34a}.swipe-action-area form{width:100%;height:100%}.swipe-done-btn{width:100%;height:100%;border:none;background:#16a34a;color:#fff;font-size:14px;cursor:pointer}.frontend-task-strip{position:relative;background:var(--task-soft);border-left:8px solid var(--task-accent);border-radius:18px;padding:16px 18px;transition:transform .25s ease;touch-action:pan-y;color:var(--task-text,#1f2937);box-shadow:0 8px 20px rgba(15,23,42,.05)}.frontend-task-strip.is-device-task{box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}.swipe-row.is-swiped .frontend-task-strip{transform:translateX(-128px)}.frontend-task-meta{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-bottom:10px;color:var(--task-meta,#6b7280);font-size:13px}.frontend-task-content{line-height:1.8;font-size:14px;word-break:break-word}.frontend-task-content p{margin:0 0 8px}.frontend-task-content p:last-child{margin-bottom:0}
.context-menu{position:absolute;display:none;z-index:5}.context-menu.is-open{display:block}.context-menu-btn{border:none;background:#111827;color:#fff;padding:12px 16px;border-radius:12px;box-shadow:0 10px 25px rgba(15,23,42,.2);cursor:pointer;white-space:nowrap}

/* 智能设备 */
.iot-hero{background:linear-gradient(135deg,#0f172a,#1d4ed8 90%);color:#fff;border-radius:28px;padding:28px;box-shadow:0 20px 48px rgba(15,23,42,.18);display:flex;justify-content:space-between;gap:22px;align-items:flex-end;margin-bottom:24px}
.iot-hero h2{margin:0 0 10px}.iot-hero p{margin:0;color:rgba(255,255,255,.84);line-height:1.8;max-width:760px}
.iot-stats{display:grid;grid-template-columns:repeat(2,minmax(110px,1fr));gap:12px}
.iot-stats span{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);border-radius:18px;padding:12px 16px;white-space:nowrap;color:#f8fbff}
.iot-stats strong{display:block;font-size:26px;line-height:1.2;margin-bottom:4px}
.iot-settings-form{margin-top:16px}
.iot-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:22px}
.iot-tabs-shell{margin-bottom:22px}
.iot-tabs{display:flex;gap:10px;flex-wrap:wrap;padding:10px;background:rgba(255,255,255,.72);border:1px solid rgba(218,227,241,.9);border-radius:22px;box-shadow:var(--shadow-sm);backdrop-filter:blur(10px);margin-bottom:18px;position:sticky;top:88px;z-index:15}
.iot-tab-btn{appearance:none;border:none;background:transparent;color:#52627a;font-size:14px;font-weight:700;padding:12px 18px;border-radius:16px;cursor:pointer;transition:background-color .2s ease,color .2s ease,box-shadow .2s ease,transform .2s ease}
.iot-tab-btn:hover{background:#eef4ff;color:var(--primary-dark)}
.iot-tab-btn.is-active{background:linear-gradient(135deg,var(--primary),var(--primary-dark));color:#fff;box-shadow:0 12px 24px rgba(37,99,235,.18)}
.iot-tab-panels{min-width:0}
.iot-tab-panel{display:none}
.iot-tab-panel.is-active{display:block;animation:iotTabFade .2s ease}
@keyframes iotTabFade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.summary-card{background:linear-gradient(180deg,#f7fbff,#eef5ff);border:1px solid #dfe7f4;border-radius:18px;padding:18px 18px 16px;box-shadow:0 10px 24px rgba(15,23,42,.04)}
.summary-card h3{margin:0 0 8px;font-size:15px;color:#37506c}
.summary-card strong{display:block;font-size:28px;line-height:1.2;margin-bottom:6px}
.summary-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.7}

.iot-device-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.iot-device-card,.iot-switch-card{border:1px solid #e1e8f3;border-radius:20px;padding:18px;background:linear-gradient(180deg,#fff,#fbfdff);box-shadow:0 10px 26px rgba(15,23,42,.05)}
.iot-card-head,.iot-switch-main{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:12px}
.iot-card-head h3,.iot-switch-main h3{margin:0 0 6px;font-size:18px}.iot-card-head p,.iot-switch-main p{margin:0;color:var(--muted);font-size:13px;line-height:1.7}
.iot-status{display:inline-flex;align-items:center;border-radius:999px;background:#f3f4f6;color:#64748b;padding:6px 12px;font-size:12px;font-weight:700;white-space:nowrap}
.iot-status.is-online{background:#dcfce7;color:#166534}.iot-status.is-offline{background:#fee2e2;color:#991b1b}.iot-status.is-unknown{background:#eff3f8;color:#64748b}
.iot-info-list{display:grid;gap:10px;margin:14px 0}
.iot-info-item{display:grid;grid-template-columns:92px 1fr;gap:10px;align-items:start;background:#f7faff;border:1px solid #e4ebf6;border-radius:14px;padding:10px 12px}
.iot-info-label{font-size:12px;font-weight:700;color:#61748e}
.iot-info-item code,.iot-info-item span{font-size:13px;color:#132033;word-break:break-all;line-height:1.7}
.iot-chip-row{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 0}

.iot-info-item-full{grid-template-columns:92px 1fr}
.is-sensor-card{border-color:#dbeafe;background:linear-gradient(180deg,#ffffff,#f7fbff)}
.iot-sensor-reading-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0 14px}
.iot-sensor-reading-card{border:1px solid #dbe7f7;border-radius:18px;padding:16px 18px;background:linear-gradient(180deg,#f8fbff,#eef6ff);display:flex;flex-direction:column;gap:6px}
.iot-sensor-reading-label{font-size:13px;color:#60738e;font-weight:700}
.iot-sensor-reading-card strong{font-size:28px;line-height:1.1;color:#0f172a}
.iot-sensor-note{margin-top:4px;padding:12px 14px;border-radius:14px;background:#f7f9fc;border:1px dashed #d9e2ef;color:#60738e;font-size:13px;line-height:1.8}

.iot-sensor-history-bar{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:14px 16px;border:1px solid #d9e7f8;border-radius:18px;background:linear-gradient(180deg,#f9fcff,#f2f7ff);margin:14px 0 0}
.iot-sensor-history-title{font-size:14px;font-weight:800;color:#244160;margin-bottom:4px}
.iot-sensor-history-desc{font-size:12px;line-height:1.7;color:#60738e}
.iot-sensor-history-form{margin:0}
.switch-label-row{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap}
.switch-label-row .note{display:block;font-size:12px;line-height:1.7;color:#60738e;font-weight:400}
.mini-switch{display:inline-flex;align-items:center;gap:10px;cursor:pointer;user-select:none}
.mini-switch input{position:absolute;opacity:0;pointer-events:none}
.mini-switch-track{position:relative;width:50px;height:28px;border-radius:999px;background:#dbe4f1;box-shadow:inset 0 0 0 1px #c7d4e7;transition:.2s ease}
.mini-switch-track::after{content:'';position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 4px 10px rgba(15,23,42,.14);transition:.2s ease}
.mini-switch input:checked + .mini-switch-track{background:linear-gradient(135deg,#22c55e,#16a34a);box-shadow:none}
.mini-switch input:checked + .mini-switch-track::after{transform:translateX(22px)}
.mini-switch-text{font-size:13px;font-weight:700;color:#3b4d67}
.mini-switch-inline{margin-top:10px}
.sensor-history-panel{display:grid;gap:14px}
.sensor-history-meta{display:flex;gap:8px;flex-wrap:wrap}
.sensor-history-table-wrap{border:1px solid #e1e8f3;border-radius:16px;overflow:auto;background:#fff}
.sensor-history-table{width:100%;border-collapse:collapse;min-width:460px}
.sensor-history-table th,.sensor-history-table td{padding:12px 14px;border-bottom:1px solid #edf2f8;text-align:left;font-size:13px}
.sensor-history-table th{background:#f7faff;color:#59708f;font-weight:800}
.sensor-history-table tbody tr:last-child td{border-bottom:0}
.sensor-history-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 16px;margin:0 0 16px;border:1px solid #e1e8f3;border-radius:16px;background:linear-gradient(180deg,#f9fbff,#f4f8ff)}
.sensor-history-toolbar-left{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.sensor-history-toolbar-left label{margin:0;font-size:13px;font-weight:700;color:#435670}
.sensor-history-toolbar-left .select, .sensor-history-toolbar-left select{min-width:140px}
.sensor-history-toolbar-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.sensor-history-toolbar .btn{min-height:40px;padding:0 14px;border-radius:12px}
.modal-dialog-wide{width:min(92vw,920px)}

.code-demo-card{margin:18px 0 6px;padding:14px 16px;border-radius:16px;background:#0f172a;color:#e5eefb;box-shadow:0 12px 24px rgba(15,23,42,.12)}
.code-demo-title{font-size:13px;font-weight:700;margin-bottom:8px;color:#c7d7f6}
.code-demo-card pre{margin:0;font-size:12px;line-height:1.8;white-space:pre-wrap;word-break:break-word;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}
.pill{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:0 12px;border-radius:999px;background:#eef4ff;color:#2d5cc0;font-size:12px;font-weight:700;border:1px solid #dbe6fb}
.pill-success{background:#ecfdf3;color:#166534;border-color:#c9f1d8}
.pill-danger{background:#fff1f2;color:#be123c;border-color:#fecdd3}
.pill-muted{background:#f4f6f9;color:#4b5563;border-color:#e5e7eb}
.iot-card-actions,.iot-switch-actions,.timer-item-actions,.iot-global-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.iot-switch-list{display:flex;flex-direction:column;gap:16px}
.iot-switch-card.is-on{border-color:#bfe8cb;background:linear-gradient(180deg,#f7fef9,#eefcf2)}
.iot-switch-state{display:inline-flex;align-items:center;justify-content:center;min-width:54px;height:36px;border-radius:999px;background:#e5e7eb;color:#475569;font-weight:700}
.iot-switch-card.is-on .iot-switch-state{background:#16a34a;color:#fff}
.iot-timer-block{margin-top:18px;padding-top:18px;border-top:1px solid #e7edf6}
.iot-timer-header{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:12px}
.iot-timer-list{display:flex;flex-direction:column;gap:12px}
.timer-item{border:1px solid #e1e8f3;border-radius:16px;padding:14px;background:#f8fbff}
.timer-item-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:10px}
.timer-item h4{margin:0 0 4px;font-size:15px}
.timer-item p{margin:0;color:var(--muted);font-size:13px;line-height:1.7}
.timer-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.timer-week-box{display:flex;gap:8px;flex-wrap:wrap;align-items:center;padding:8px 0}
.timer-week-box label{display:inline-flex;align-items:center;gap:6px;margin:0;font-weight:500}
.timer-week-box input{width:auto;min-height:auto}
.timer-enabled-row{display:flex;align-items:center;gap:8px;margin-top:8px}
.timer-enabled-row input{width:auto;min-height:auto}
.timer-form .task-action-row{margin-top:4px}
.timer-actions{display:flex;gap:8px;flex-wrap:wrap}
.iot-inline-code{display:inline-block;background:#0f172a;color:#fff;padding:4px 8px;border-radius:10px;font-size:12px}
.small-heading{font-size:15px;color:#3b4d67;margin:0 0 12px}
.status-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.iot-mini-form{display:grid;gap:12px}
.iot-mini-form label{margin:0}
.iot-mini-form input,.iot-mini-form select,.iot-mini-form textarea{margin-top:6px}

@media (max-width: 980px){
  .iot-summary-grid,.iot-device-grid{grid-template-columns:1fr}
  .iot-tabs{top:76px;overflow:auto;flex-wrap:nowrap;padding:8px;scrollbar-width:none}
  .iot-tabs::-webkit-scrollbar{display:none}
  .iot-tab-btn{flex:0 0 auto;white-space:nowrap}
}

@media (max-width: 820px){
  .install-grid,.task-sections,.form-grid-two{grid-template-columns:1fr}
  .topbar{padding:16px}
  .dashboard{padding:20px 16px}
  .board-head,.task-panel,.doc-card,.frontend-task-board{padding:16px}
  .modal-dialog{width:min(94vw,720px);margin:3vh auto;padding:18px}
  .board-actions,.sort-form,.modal-actions{width:100%}
  .sort-form .select,.sort-form .btn,.board-actions>.btn,.task-action-row>.btn,.task-action-row>form{width:100%}
  .board-head-minimal .board-actions{justify-content:stretch}
  .topbar .links{width:100%}
  .frontend-tab-head{display:grid;grid-template-columns:1fr 1fr}
}

@media (max-width:760px){
  .layout{padding:18px}
  .card{padding:24px;border-radius:18px}
  .topbar strong{font-size:17px}
  .topbar .links a{flex:1}
  .iot-hero,.iot-card-head,.iot-switch-main,.timer-item-top{flex-direction:column;align-items:stretch}
  .iot-stats{grid-template-columns:1fr 1fr;width:100%}
  .iot-switch-actions,.timer-item-actions,.iot-global-actions{width:100%;justify-content:stretch}
  .iot-switch-actions form,.iot-switch-actions .btn,.timer-item-actions form,.timer-item-actions .btn,.iot-global-actions form,.iot-global-actions .btn{width:100%}
  .iot-info-item,.iot-info-item-full{grid-template-columns:1fr}
  .iot-sensor-reading-grid{grid-template-columns:1fr}
  .doc-head-row{align-items:flex-start}
  .frontend-device-controls-board,.frontend-device-task-board{padding:16px}
  .frontend-device-subhead{flex-direction:column;align-items:stretch}
}

/* Admin home tabs + quick controls */
.admin-home-tabs{display:flex;gap:10px;flex-wrap:wrap;padding:10px;background:rgba(255,255,255,.72);border:1px solid rgba(218,227,241,.9);border-radius:22px;box-shadow:var(--shadow-sm);backdrop-filter:blur(10px);margin-bottom:18px}
.admin-home-tab-btn{appearance:none;border:none;background:transparent;color:#52627a;font-size:14px;font-weight:700;padding:12px 18px;border-radius:16px;cursor:pointer;transition:background-color .2s ease,color .2s ease,box-shadow .2s ease,transform .2s ease}
.admin-home-tab-btn:hover{background:#eef4ff;color:var(--primary-dark)}
.admin-home-tab-btn.is-active{background:linear-gradient(135deg,var(--primary),var(--primary-dark));color:#fff;box-shadow:0 12px 24px rgba(37,99,235,.18)}
.admin-home-panel{display:none}
.admin-home-panel.is-active{display:block;animation:iotTabFade .2s ease}
.quick-board-head{margin-bottom:20px}
.quick-device-tabs-shell{display:flex;flex-direction:column;gap:18px}
.quick-device-tabs{display:flex;gap:12px;flex-wrap:wrap;padding:8px;background:rgba(255,255,255,.72);border:1px solid rgba(218,227,241,.9);border-radius:20px;box-shadow:var(--shadow-sm)}
.quick-device-tab-btn{appearance:none;border:1px solid transparent;background:#fff;border-radius:16px;padding:14px 16px;min-width:180px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease,background-color .18s ease}
.quick-device-tab-btn:hover{border-color:#cfe0fb;box-shadow:0 10px 20px rgba(37,99,235,.08);transform:translateY(-1px)}
.quick-device-tab-btn.is-active{border-color:#bfd4fb;background:linear-gradient(180deg,#f9fbff,#eef5ff);box-shadow:0 14px 28px rgba(37,99,235,.14)}
.quick-device-tab-name{font-size:15px;font-weight:800;color:#0f172a;line-height:1.3}
.quick-device-tab-meta{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:#64748b;font-weight:700}
.quick-device-dot{width:9px;height:9px;border-radius:999px;display:inline-block;flex:0 0 9px}
.quick-device-dot.is-online{background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.14)}
.quick-device-dot.is-offline{background:#94a3b8;box-shadow:0 0 0 4px rgba(148,163,184,.16)}
.quick-device-panels{display:block}
.quick-device-panel{display:none}
.quick-device-panel.is-active{display:block;animation:iotTabFade .2s ease}
.quick-device-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px;padding:16px 18px;border-radius:18px;background:linear-gradient(180deg,#ffffff,#f8fbff);border:1px solid #dbe7f7;box-shadow:var(--shadow-sm)}
.quick-device-panel-head h3{margin:0 0 6px;font-size:18px;color:#0f172a}
.quick-device-panel-head .muted{margin:0}
.quick-control-type{font-size:12px;color:#64748b;font-weight:700;margin-top:6px}
.quick-switch-card .quick-control-form{margin-top:0}
.quick-control-head-compact h3{margin:0;font-size:17px;color:#0f172a}
.quick-status-pill.is-idle{background:#fee2e2;color:#991b1b}
.empty-box-compact{padding:22px 18px;border-radius:18px}
.quick-control-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}
.quick-control-card{background:#fff;border:1px solid var(--border);border-radius:18px;padding:18px;box-shadow:var(--shadow-sm);display:flex;flex-direction:column;gap:14px}
.quick-control-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.quick-control-head h3{margin:0;font-size:17px;color:#0f172a}
.quick-control-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#64748b;font-size:13px;flex-wrap:wrap}
.quick-control-meta code{font-size:12px;word-break:break-all}
.quick-control-form{margin-top:auto}
.quick-control-btn{width:100%;border:none;border-radius:14px;padding:14px 16px;font-size:16px;font-weight:800;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,opacity .18s ease}
.quick-control-btn:hover{transform:translateY(-1px)}
.quick-control-btn.is-on{background:#dcfce7;color:#166534;box-shadow:0 10px 18px rgba(22,101,52,.14)}
.quick-control-btn.is-off{background:#fee2e2;color:#991b1b;box-shadow:0 10px 18px rgba(153,27,27,.14)}
.quick-control-btn.is-offline,.quick-control-btn:disabled{background:#e5e7eb;color:#6b7280;box-shadow:none;cursor:not-allowed;transform:none;opacity:1}
@media (max-width:768px){
  .admin-home-tabs{overflow:auto;flex-wrap:nowrap;padding:8px;scrollbar-width:none}
  .admin-home-tabs::-webkit-scrollbar{display:none}
  .admin-home-tab-btn{flex:0 0 auto;white-space:nowrap}
  .quick-device-tabs{overflow:auto;flex-wrap:nowrap;scrollbar-width:none;padding:8px}
  .quick-device-tabs::-webkit-scrollbar{display:none}
  .quick-device-tab-btn{flex:0 0 78%;min-width:0;white-space:normal}
  .quick-device-panel-head{padding:14px 14px;flex-direction:column;align-items:stretch}
  .quick-control-grid{grid-template-columns:1fr}
  .quick-sensor-readings{grid-template-columns:1fr}
}

.quick-control-device{font-size:13px;color:#64748b;font-weight:600}
.quick-control-state-note{font-size:13px;color:#64748b;text-align:center}
.quick-sensor-card{background:linear-gradient(180deg,#ffffff,#f7fbff);border-color:#dbeafe}
.quick-status-pill{display:inline-flex;align-items:center;justify-content:center;padding:7px 12px;border-radius:999px;font-size:12px;font-weight:800;white-space:nowrap}
.quick-status-pill.is-online{background:#dcfce7;color:#166534}
.quick-status-pill.is-offline{background:#e5e7eb;color:#6b7280}
.quick-status-pill.is-unknown{background:#eff3f8;color:#64748b}
.quick-sensor-readings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.quick-sensor-item{border:1px solid #dbe7f7;border-radius:16px;padding:14px 16px;background:linear-gradient(180deg,#f8fbff,#eef6ff);display:flex;flex-direction:column;gap:6px}
.quick-sensor-label{font-size:13px;color:#60738e;font-weight:700}
.quick-sensor-item strong{font-size:26px;line-height:1.1;color:#0f172a}
@media (max-width:768px){
  .quick-sensor-readings{grid-template-columns:1fr}
}

.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.topbar .links a.nav-icon-link{position:relative;flex:0 0 auto;width:42px;height:42px;padding:0;border-radius:12px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.08)}
.topbar .links a.nav-icon-link:hover{background:rgba(255,255,255,.18)}
.topbar .links a.nav-icon-link .nav-icon{width:20px;height:20px;display:block}
.topbar .links a.nav-icon-link::after{content:attr(data-tooltip);position:absolute;left:50%;bottom:-40px;transform:translateX(-50%) translateY(6px);padding:6px 10px;border-radius:10px;background:rgba(10,18,34,.96);color:#fff;font-size:12px;line-height:1;white-space:nowrap;box-shadow:0 12px 30px rgba(15,23,42,.22);opacity:0;pointer-events:none;transition:all .18s ease}
.topbar .links a.nav-icon-link::before{content:'';position:absolute;left:50%;bottom:-10px;transform:translateX(-50%) translateY(6px);border:6px solid transparent;border-bottom:0;border-top-color:rgba(10,18,34,.96);opacity:0;pointer-events:none;transition:all .18s ease}
.topbar .links a.nav-icon-link:hover::after,.topbar .links a.nav-icon-link:hover::before{opacity:1;transform:translateX(-50%) translateY(0)}
@media (max-width: 768px){
  .topbar .links a.nav-icon-link{width:40px;height:40px}
  .topbar .links a.nav-icon-link::after,.topbar .links a.nav-icon-link::before{display:none}
}

@media (max-width:640px){
  .datetime-card-main{grid-template-columns:1fr}
}


.datetime-card-layui{padding:0;border:none;background:transparent;box-shadow:none}
.datetime-field-layui{gap:0}
.datetime-text-input{min-height:52px;border-radius:16px !important;border:1px solid #d8e0ec !important;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") no-repeat right 16px center/18px 18px;padding:0 48px 0 16px !important;box-shadow:0 10px 22px rgba(15,23,42,.04);font-weight:600;color:#0f172a}
.datetime-text-input::placeholder{color:#94a3b8;font-weight:500}
.datetime-text-input:hover{border-color:#c6d1e1 !important}
.datetime-text-input:focus{border-color:#7daaf5 !important;box-shadow:0 0 0 4px rgba(59,130,246,.10),0 10px 22px rgba(15,23,42,.06) !important}
.layui-laydate{border:1px solid #d8e4f5 !important;border-radius:18px !important;box-shadow:0 22px 46px rgba(15,23,42,.16) !important;overflow:hidden;z-index:99999 !important}
.layui-laydate .layui-this{background-color:#2563eb !important}
.layui-laydate-header{border-bottom-color:#eef2f7 !important}
.layui-laydate-footer{border-top-color:#eef2f7 !important}
.layui-laydate-content td,.layui-laydate-content th{height:38px !important}
.layui-laydate-content td.laydate-selected{background-color:#2563eb !important}
.layui-laydate .layui-laydate-list>li{height:32px;line-height:32px}
.layui-laydate .layui-laydate-btns-confirm{color:#2563eb !important}
@media (max-width: 768px){
  .layui-laydate{left:12px !important;right:12px !important;width:auto !important;max-width:calc(100vw - 24px) !important}
}

/* Icon enhancements + mobile laydate refinements */
.with-icon,
.field-label.with-icon,
.modal-head h3,
.task-panel-head h3,
.doc-head-row h2,
.summary-card h3,
.quick-control-btn,
.quick-control-state-note,
.admin-home-tab-btn,
.iot-tab-btn,
.topbar-pill-link,
.iot-hero h2{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.field-label.with-icon{margin-bottom:8px}
.field-label.with-icon .layui-icon,
.modal-head h3 .layui-icon,
.task-panel-head h3 .layui-icon,
.doc-head-row h2 .layui-icon,
.summary-card h3 .layui-icon,
.iot-hero h2 .layui-icon{
  color:var(--primary);
  font-size:16px;
}
.btn i.layui-icon,
.admin-home-tab-btn i.layui-icon,
.iot-tab-btn i.layui-icon,
.quick-control-btn i.layui-icon,
.quick-control-state-note i.layui-icon,
.topbar-pill-link i.layui-icon{
  font-size:15px;
  line-height:1;
}
.btn span,
.admin-home-tab-btn span,
.iot-tab-btn span,
.quick-control-btn span,
.quick-control-state-note span,
.topbar-pill-link span{display:inline-block}
.quick-control-btn{justify-content:center;gap:10px}
.quick-control-state-note{justify-content:center;gap:6px}
.quick-control-state-note .layui-icon{font-size:14px}
.topbar-pill-link{
  gap:8px;
  padding:0 14px !important;
}
.topbar-pill-link .layui-icon{font-size:16px}
.icon-btn .layui-icon{font-size:18px}
.admin-home-tab-btn,
.iot-tab-btn{justify-content:center}
.summary-card h3,
.task-panel-head h3,
.doc-head-row h2,
.iot-hero h2{display:flex}

.layui-laydate{
  border:1px solid #dbe4f2 !important;
  border-radius:20px !important;
  box-shadow:0 24px 48px rgba(15,23,42,.16) !important;
  overflow:hidden;
}
.layui-laydate-main,
.layui-laydate-content{width:auto !important}
.layui-laydate-content table{width:100% !important;table-layout:fixed}
@media (min-width: 641px){
  .layui-laydate{
    width:380px !important;
    max-width:min(380px, calc(100vw - 40px)) !important;
  }
  .layui-laydate-main,
  .layui-laydate-content{
    width:380px !important;
    max-width:min(380px, calc(100vw - 40px)) !important;
  }
}
.layui-laydate-header{
  padding:12px 16px !important;
  background:linear-gradient(180deg,#f8fbff 0%,#f2f7ff 100%);
}
.layui-laydate-header i,
.layui-laydate-header span{color:#2559c8 !important}
.layui-laydate-set-ym span,
.layui-laydate-header .laydate-set-ym{font-weight:700}
.layui-laydate-content td,
.layui-laydate-content th{height:38px !important;font-size:13px}
.layui-laydate-content th{font-weight:600;color:#64748b}
.layui-laydate .layui-this{box-shadow:0 10px 20px rgba(37,99,235,.18)}
.layui-laydate-footer{
  padding:10px 12px !important;
  background:#fff;
}
.layui-laydate-footer span{
  border-radius:10px;
  border:1px solid #d8e4f5;
  background:#fff;
  padding:0 12px;
  height:30px;
  line-height:28px;
  color:#334155;
}
.layui-laydate-footer span:hover{color:#1d4ed8;border-color:#bfd3fb}
.layui-laydate .layui-laydate-list>li{height:34px;line-height:34px}

@media (max-width: 640px){
  .modal-dialog{
    width:calc(100vw - 20px);
    margin:12px auto;
    padding:16px 14px 14px;
    max-height:calc(100vh - 24px);
    border-radius:22px;
  }
  .modal-head{margin-bottom:14px}
  .modal-head h3{font-size:18px}
  .icon-btn{width:38px;height:38px}
  .editor-toolbar{gap:6px;margin-bottom:8px}
  .editor-toolbar button{padding:7px 10px;border-radius:10px;font-size:13px}
  .datetime-text-input{
    min-height:48px;
    padding:0 42px 0 14px !important;
    border-radius:14px !important;
    background-position:right 14px center;
  }
  .layui-laydate{
    left:0 !important;
    right:0 !important;
    width:100% !important;
    max-width:none !important;
    border-radius:18px !important;
  }
  .layui-laydate-header{padding:10px 12px !important}
  .layui-laydate-content td,
  .layui-laydate-content th{height:34px !important;font-size:12px !important}
  .layui-laydate-footer{
    display:flex;
    align-items:center;
    gap:8px;
    justify-content:space-between;
    flex-wrap:nowrap;
  }
  .layui-laydate-footer span{
    padding:0 10px;
    height:28px;
    line-height:26px;
    font-size:12px;
  }
  .layui-laydate .layui-laydate-list>li{height:30px;line-height:30px;font-size:12px}
  .topbar-pill-link{flex:1 1 calc(50% - 5px);justify-content:center}
}


.timer-datetime-field{display:block}
.timer-datetime-card{margin-top:6px;padding:0;background:transparent;border:0;box-shadow:none}
.timer-datetime-card .timer-datetime-input{width:100%;min-height:48px}
.timer-datetime-note{display:block;margin-top:8px}
.timer-form .form-grid-two .timer-datetime-field{align-self:end}
.timer-form .layui-datetime-input{padding-right:44px;background-image:linear-gradient(transparent,transparent),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23647b9c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='3' ry='3'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:18px}
@media (max-width:900px){
  .timer-form .form-grid-two{grid-template-columns:1fr}
  .timer-form .timer-datetime-note{margin-top:6px}
}

/* Frontend visual refresh v22: style only */
body[data-page="frontend-home"]{
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.10), transparent 30%),
    radial-gradient(circle at top right, rgba(99,102,241,.08), transparent 28%),
    linear-gradient(180deg,#f5f8ff 0%,#edf3fb 100%);
}
body[data-page="frontend-home"] .topbar{
  background:rgba(9,16,31,.92);
  border-bottom-color:rgba(255,255,255,.10);
}
body[data-page="frontend-home"] .dashboard-narrow{max-width:1180px}
body[data-page="frontend-home"] .frontend-title-row{margin-bottom:22px}
body[data-page="frontend-home"] .frontend-title-row > div{
  position:relative;
  overflow:hidden;
  padding:28px 30px;
  border-radius:28px;
  border:1px solid rgba(219,228,241,.95);
  background:
    radial-gradient(circle at 100% 0, rgba(96,165,250,.18), transparent 36%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(247,250,255,.95));
  box-shadow:0 24px 48px rgba(15,23,42,.08);
}
body[data-page="frontend-home"] .frontend-title-row > div::after{
  content:"";
  position:absolute;
  inset:auto -10% -55% auto;
  width:260px;
  height:260px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(37,99,235,.13), rgba(37,99,235,0));
  pointer-events:none;
}
body[data-page="frontend-home"] .frontend-title-row h2{
  margin:0 0 10px;
  font-size:32px;
  letter-spacing:.01em;
  color:#0f172a;
}
body[data-page="frontend-home"] .frontend-title-row .muted{
  max-width:860px;
  font-size:14px;
  color:#5b6b82;
}
body[data-page="frontend-home"] .frontend-task-board{
  padding:26px;
  border-radius:30px;
  border:1px solid rgba(219,228,241,.95);
  box-shadow:0 28px 60px rgba(15,23,42,.08);
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,251,255,.96));
}
body[data-page="frontend-home"] .frontend-task-tabs{gap:22px}
body[data-page="frontend-home"] .frontend-tab-head{
  display:flex;
  gap:14px;
  padding:8px;
  background:linear-gradient(180deg,#f8fbff,#eef4fb);
  border:1px solid #dce6f3;
  border-radius:22px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}
body[data-page="frontend-home"] .frontend-tab-btn{
  flex:1 1 0;
  justify-content:space-between;
  min-height:62px;
  padding:16px 18px;
  border:1px solid transparent;
  border-radius:18px;
  background:transparent;
  color:#5a6b83;
  font-weight:800;
  box-shadow:none;
}
body[data-page="frontend-home"] .frontend-tab-btn:hover{
  background:rgba(255,255,255,.82);
  border-color:#d8e4f6;
  color:#0f172a;
}
body[data-page="frontend-home"] .frontend-tab-btn strong{
  min-width:34px;
  height:34px;
  padding:0 12px;
  background:#ffffff;
  border:1px solid #dce6f4;
  color:#2154c7;
  box-shadow:0 8px 18px rgba(15,23,42,.05);
}
body[data-page="frontend-home"] .frontend-tab-btn.is-active{
  background:linear-gradient(135deg,#1d4ed8,#2563eb);
  border-color:rgba(255,255,255,.16);
  color:#fff;
  box-shadow:0 18px 32px rgba(37,99,235,.24);
}
body[data-page="frontend-home"] .frontend-tab-btn.is-active strong{
  background:rgba(255,255,255,.16);
  border-color:rgba(255,255,255,.12);
  color:#fff;
}
body[data-page="frontend-home"] .frontend-device-controls-board,
body[data-page="frontend-home"] .frontend-device-task-board{
  padding:22px;
  border-radius:24px;
  border:1px solid #dde6f3;
  background:linear-gradient(180deg,#ffffff,#f8fbff);
  box-shadow:0 16px 34px rgba(15,23,42,.05);
}
body[data-page="frontend-home"] .frontend-device-subhead{
  align-items:center;
  margin-bottom:18px;
}
body[data-page="frontend-home"] .frontend-device-subhead h3{
  font-size:20px;
  margin-bottom:8px;
}
body[data-page="frontend-home"] .badge{
  min-width:42px;
  height:42px;
  padding:0 14px;
  border-radius:999px;
  background:linear-gradient(135deg,#eff6ff,#dbeafe);
  color:#1d4ed8;
  border:1px solid #c7dafc;
  box-shadow:0 10px 18px rgba(37,99,235,.10);
}
body[data-page="frontend-home"] .quick-device-tabs{
  gap:14px;
  padding:0;
  border:none;
  background:transparent;
  box-shadow:none;
  margin-bottom:18px;
}
body[data-page="frontend-home"] .quick-device-tab-btn{
  min-width:220px;
  padding:16px 18px;
  border-radius:20px;
  border:1px solid #dbe6f5;
  background:linear-gradient(180deg,#ffffff,#f9fbff);
  box-shadow:0 12px 22px rgba(15,23,42,.05);
}
body[data-page="frontend-home"] .quick-device-tab-btn:hover{
  border-color:#bfd3f8;
  box-shadow:0 16px 28px rgba(37,99,235,.10);
}
body[data-page="frontend-home"] .quick-device-tab-btn.is-active{
  background:linear-gradient(135deg,#eff6ff,#dbeafe);
  border-color:#b9d0fb;
  box-shadow:0 18px 30px rgba(37,99,235,.13);
}
body[data-page="frontend-home"] .quick-device-tab-name{font-size:16px}
body[data-page="frontend-home"] .quick-device-tab-meta{font-size:13px}
body[data-page="frontend-home"] .quick-device-panel-head{
  margin-bottom:18px;
  padding:18px 20px;
  border-radius:22px;
  border:1px solid #dde7f5;
  background:
    radial-gradient(circle at right top, rgba(96,165,250,.10), transparent 28%),
    linear-gradient(135deg,#ffffff,#f7fbff);
  box-shadow:0 14px 28px rgba(15,23,42,.05);
}
body[data-page="frontend-home"] .quick-device-panel-head h3{
  font-size:20px;
  margin-bottom:8px;
}
body[data-page="frontend-home"] .quick-control-grid{
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:20px;
}
body[data-page="frontend-home"] .quick-control-card{
  position:relative;
  border-radius:22px;
  border:1px solid #dce5f3;
  padding:20px;
  background:linear-gradient(180deg,#ffffff,#fbfdff);
  box-shadow:0 14px 30px rgba(15,23,42,.06);
  overflow:hidden;
}
body[data-page="frontend-home"] .quick-control-card::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  background:linear-gradient(180deg,#60a5fa,#2563eb);
  opacity:.9;
}
body[data-page="frontend-home"] .quick-sensor-card::before{
  background:linear-gradient(180deg,#34d399,#0ea5e9);
}
body[data-page="frontend-home"] .quick-control-head h3{
  font-size:18px;
}
body[data-page="frontend-home"] .quick-control-type{
  margin-top:7px;
  color:#6a7d97;
  letter-spacing:.02em;
}
body[data-page="frontend-home"] .quick-status-pill{
  padding:8px 13px;
  font-size:12px;
  font-weight:800;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55);
}
body[data-page="frontend-home"] .quick-status-pill.is-idle{
  background:#fff1f2;
  color:#be123c;
}
body[data-page="frontend-home"] .quick-control-btn{
  min-height:52px;
  border-radius:16px;
  font-size:16px;
  letter-spacing:.01em;
}
body[data-page="frontend-home"] .quick-control-btn.is-on{
  background:linear-gradient(135deg,#dcfce7,#bbf7d0);
  color:#166534;
  box-shadow:0 14px 24px rgba(22,101,52,.12);
}
body[data-page="frontend-home"] .quick-control-btn.is-off{
  background:linear-gradient(135deg,#fef2f2,#fee2e2);
  color:#991b1b;
  box-shadow:0 14px 24px rgba(153,27,27,.10);
}
body[data-page="frontend-home"] .quick-control-state-note{
  margin-top:2px;
  justify-content:flex-start;
  text-align:left;
  color:#607089;
}
body[data-page="frontend-home"] .quick-sensor-readings{gap:14px}
body[data-page="frontend-home"] .quick-sensor-item{
  padding:16px 18px;
  border-radius:18px;
  border:1px solid #dbe8fa;
  background:linear-gradient(180deg,#f8fbff,#eef5ff);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85);
}
body[data-page="frontend-home"] .quick-sensor-label{
  font-size:12px;
  color:#6b7f99;
  letter-spacing:.04em;
}
body[data-page="frontend-home"] .quick-sensor-item strong{
  font-size:30px;
  color:#0f172a;
}
body[data-page="frontend-home"] .frontend-task-strip-list{gap:16px}
body[data-page="frontend-home"] .frontend-task-strip{
  border-left-width:5px;
  padding:18px 20px;
  border-radius:22px;
  box-shadow:0 12px 26px rgba(15,23,42,.05);
}
body[data-page="frontend-home"] .frontend-task-strip:hover{
  transform:translateY(-1px);
}
body[data-page="frontend-home"] .frontend-task-meta{
  margin-bottom:12px;
  justify-content:space-between;
  color:#5e7088;
}
body[data-page="frontend-home"] .frontend-task-content{
  font-size:15px;
  line-height:1.9;
  color:#22324a;
}
body[data-page="frontend-home"] .swipe-row{
  border-radius:22px;
}
body[data-page="frontend-home"] .swipe-action-area,
body[data-page="frontend-home"] .swipe-done-btn{
  background:linear-gradient(135deg,#16a34a,#22c55e);
}
body[data-page="frontend-home"] .empty-box,
body[data-page="frontend-home"] .empty-box-compact{
  border-radius:22px;
  border:1px dashed #cdd9eb;
  background:linear-gradient(180deg,#fbfdff,#f3f7fc);
  color:#6a7b92;
}

@media (max-width: 820px){
  body[data-page="frontend-home"] .frontend-title-row > div{
    padding:22px 18px;
    border-radius:22px;
  }
  body[data-page="frontend-home"] .frontend-title-row h2{
    font-size:26px;
  }
  body[data-page="frontend-home"] .frontend-task-board{
    padding:18px;
    border-radius:24px;
  }
  body[data-page="frontend-home"] .frontend-tab-head{
    grid-template-columns:none;
    gap:10px;
  }
  body[data-page="frontend-home"] .frontend-tab-btn{
    min-height:56px;
    padding:14px 16px;
  }
  body[data-page="frontend-home"] .frontend-device-controls-board,
  body[data-page="frontend-home"] .frontend-device-task-board{
    padding:18px;
    border-radius:20px;
  }
  body[data-page="frontend-home"] .quick-device-tab-btn{
    flex:0 0 82%;
    min-width:0;
    border-radius:18px;
  }
  body[data-page="frontend-home"] .quick-device-panel-head,
  body[data-page="frontend-home"] .quick-control-card,
  body[data-page="frontend-home"] .frontend-task-strip{
    border-radius:18px;
  }
  body[data-page="frontend-home"] .quick-control-grid{
    grid-template-columns:1fr;
    gap:16px;
  }
  body[data-page="frontend-home"] .quick-sensor-item strong{
    font-size:28px;
  }
}

@media (max-width: 560px){
  body[data-page="frontend-home"] .dashboard{padding:16px 14px 24px}
  body[data-page="frontend-home"] .topbar{padding:14px 12px}
  body[data-page="frontend-home"] .topbar .links a{height:36px;font-size:13px}
  body[data-page="frontend-home"] .frontend-title-row .muted{font-size:13px;line-height:1.75}
  body[data-page="frontend-home"] .frontend-tab-head{padding:6px;border-radius:18px}
  body[data-page="frontend-home"] .frontend-tab-btn{border-radius:14px;font-size:13px}
  body[data-page="frontend-home"] .frontend-tab-btn strong{min-width:30px;height:30px;padding:0 10px}
  body[data-page="frontend-home"] .quick-device-tabs{gap:10px;margin-bottom:14px}
  body[data-page="frontend-home"] .quick-device-tab-btn{padding:14px 14px;flex-basis:88%}
  body[data-page="frontend-home"] .quick-device-tab-name{font-size:15px}
  body[data-page="frontend-home"] .quick-device-panel-head h3,
  body[data-page="frontend-home"] .frontend-device-subhead h3{font-size:18px}
  body[data-page="frontend-home"] .quick-control-card{padding:16px}
  body[data-page="frontend-home"] .quick-control-head h3{font-size:16px}
  body[data-page="frontend-home"] .quick-control-btn{min-height:48px;font-size:15px}
  body[data-page="frontend-home"] .quick-sensor-item{padding:14px 15px}
  body[data-page="frontend-home"] .quick-sensor-item strong{font-size:25px}
  body[data-page="frontend-home"] .frontend-task-strip{padding:16px 16px 15px}
  body[data-page="frontend-home"] .frontend-task-content{font-size:14px;line-height:1.85}
}

/* task cards refined */
.task-panel{
  padding:20px 20px 18px;
  border-radius:24px;
}
.task-list,
.frontend-task-strip-list{
  gap:12px;
}
.task-card,
.frontend-task-strip{
  position:relative;
  overflow:hidden;
  border-left:0;
  border:1px solid rgba(219,227,239,.92);
  background:linear-gradient(180deg,rgba(255,255,255,.98) 0%, var(--task-soft) 200%);
}
.task-card::before,
.frontend-task-strip::before{
  content:"";
  position:absolute;
  left:0;
  top:14px;
  bottom:14px;
  width:4px;
  border-radius:999px;
  background:var(--task-accent);
}
.task-card{
  padding:18px 18px 16px;
  border-radius:22px;
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}
.task-card-head{
  margin-bottom:10px;
  gap:14px;
}
.task-color-chip{
  min-width:0;
  height:28px;
  padding:0 12px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(214,224,239,.9);
  box-shadow:0 4px 12px rgba(15,23,42,.04);
}
.task-times{
  gap:5px;
  font-size:12px;
  color:var(--task-meta,#64748b);
}
.task-times time,
.frontend-task-meta time{
  display:inline-flex;
  align-items:center;
  padding:5px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(217,226,240,.88);
  box-shadow:0 4px 10px rgba(15,23,42,.03);
}
.task-content,
.frontend-task-content{
  line-height:1.9;
}
.task-content{
  font-size:15px;
  color:var(--task-text,#1f2937);
}
.task-action-row{
  margin-top:16px;
  padding-top:12px;
  border-top:1px solid rgba(220,228,240,.92);
  justify-content:flex-end;
  align-items:center;
  gap:8px;
}
.task-action-row .task-inline-form{
  display:flex;
}
.task-action-row .btn,
.task-action-row form{
  flex:none;
  width:auto;
}
.task-icon-action{
  min-width:38px;
  width:38px;
  min-height:38px;
  height:38px;
  padding:0;
  border-radius:12px;
  box-shadow:none;
}
.task-icon-action span{
  display:none;
}
.task-icon-action .layui-icon{
  font-size:17px;
}
.task-icon-done{
  background:#eefbf3;
  border:1px solid #ccead7;
  color:#15803d;
}
.task-icon-done:hover{
  background:#e4f7eb;
  box-shadow:0 10px 18px rgba(21,128,61,.10);
}
.task-icon-edit{
  background:#fff;
  border:1px solid #d7e2f0;
  color:#334155;
}
.task-icon-edit:hover{
  background:#f8fbff;
  box-shadow:0 10px 18px rgba(15,23,42,.06);
}
.task-icon-delete{
  background:#fff4f4;
  border:1px solid #fecaca;
  color:#dc2626;
}
.task-icon-delete:hover{
  background:#feecec;
  box-shadow:0 10px 18px rgba(220,38,38,.10);
}
.task-card.is-done{
  opacity:1;
}
.task-card.is-done .task-content{
  color:#475569;
}

.swipe-row{
  border-radius:20px;
}
.swipe-action-area{
  right:8px;
  top:8px;
  bottom:8px;
  width:72px;
  justify-content:flex-end;
  background:transparent;
}
.swipe-action-area form{
  display:flex;
  align-items:center;
  justify-content:center;
}
.swipe-done-btn{
  width:52px;
  height:52px;
  border:none;
  border-radius:16px;
  background:linear-gradient(135deg,#16a34a,#22c55e);
  color:#fff;
  font-size:0;
  cursor:pointer;
  box-shadow:0 12px 20px rgba(22,163,74,.20);
}
.swipe-done-btn::before{
  content:"✓";
  font-size:24px;
  font-weight:700;
  line-height:1;
}
.frontend-task-strip{
  padding:16px 18px 15px;
  border-radius:20px;
  box-shadow:0 10px 22px rgba(15,23,42,.05);
}
.swipe-row.is-swiped .frontend-task-strip{
  transform:translateX(-72px);
}
.frontend-task-meta{
  margin-bottom:10px;
  justify-content:flex-end;
  color:var(--task-meta,#64748b);
  font-size:12px;
}
.frontend-task-content{
  font-size:14px;
  color:var(--task-text,#22324a);
}
.context-menu-btn{
  width:46px;
  height:46px;
  padding:0;
  border-radius:14px;
  font-size:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.context-menu-btn::before{
  content:"✓";
  font-size:22px;
  line-height:1;
}

body[data-page="frontend-home"] .frontend-task-strip-list{
  gap:14px;
}
body[data-page="frontend-home"] .frontend-task-strip{
  padding:18px 18px 16px;
  border-radius:22px;
  border-left-width:0;
}
body[data-page="frontend-home"] .frontend-task-strip::before{
  top:16px;
  bottom:16px;
}
body[data-page="frontend-home"] .frontend-task-meta{
  margin-bottom:10px;
  justify-content:flex-end;
}
body[data-page="frontend-home"] .frontend-task-content{
  font-size:15px;
  line-height:1.9;
}
body[data-page="frontend-home"] .swipe-action-area{
  right:10px;
  top:10px;
  bottom:10px;
  width:74px;
}
body[data-page="frontend-home"] .swipe-done-btn{
  width:54px;
  height:54px;
  border-radius:18px;
}

@media (max-width: 820px){
  .task-action-row{
    justify-content:flex-start;
  }
  .task-action-row > .btn,
  .task-action-row > form{
    width:auto;
  }
}

@media (max-width: 560px){
  .task-panel{
    padding:16px;
    border-radius:20px;
  }
  .task-card{
    padding:16px 16px 14px;
    border-radius:18px;
  }
  .task-card::before,
  .frontend-task-strip::before{
    top:12px;
    bottom:12px;
  }
  .task-action-row{
    margin-top:14px;
    padding-top:10px;
  }
  .task-icon-action{
    width:36px;
    min-width:36px;
    height:36px;
    min-height:36px;
    border-radius:11px;
  }
  body[data-page="frontend-home"] .frontend-task-strip,
  .frontend-task-strip{
    padding:15px 15px 14px;
    border-radius:18px;
  }
  .swipe-action-area,
  body[data-page="frontend-home"] .swipe-action-area{
    right:8px;
    top:8px;
    bottom:8px;
    width:68px;
  }
  .swipe-done-btn,
  body[data-page="frontend-home"] .swipe-done-btn{
    width:48px;
    height:48px;
    border-radius:15px;
  }
  .swipe-row.is-swiped .frontend-task-strip{
    transform:translateX(-68px);
  }
}


/* task cards style refresh v25 */
.task-panel{
  padding:18px;
  border-radius:26px;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
}
.task-list,
.frontend-task-strip-list{
  gap:14px;
}
.task-card,
.frontend-task-strip{
  background:linear-gradient(180deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.94) 100%);
  border:1px solid rgba(222,230,241,.95);
  box-shadow:0 10px 26px rgba(15,23,42,.045);
}
.task-card::before,
.frontend-task-strip::before{
  width:3px;
  top:16px;
  bottom:16px;
  background:linear-gradient(180deg,var(--task-accent),rgba(255,255,255,.35));
}
.task-card-head{
  margin-bottom:12px;
  align-items:center;
}
.task-color-chip{
  height:24px;
  padding:0 10px;
  font-size:11px;
  letter-spacing:.01em;
  color:#52627a;
  background:#ffffff;
  border:1px solid rgba(220,228,240,.95);
  box-shadow:none;
}
.task-times,
.frontend-task-meta{
  gap:6px;
  font-size:12px;
}
.task-times time,
.frontend-task-meta time{
  padding:4px 9px;
  background:#f8fbff;
  border:1px solid rgba(221,229,240,.9);
  box-shadow:none;
}
.task-content,
.frontend-task-content{
  font-size:15px;
  line-height:1.92;
  color:#182435;
}
.task-content strong,
.frontend-task-content strong{
  color:#0f172a;
}
.task-action-row{
  margin-top:12px;
  padding-top:0;
  border-top:none;
  gap:6px;
}
.task-icon-action{
  width:34px;
  min-width:34px;
  height:34px;
  min-height:34px;
  border-radius:10px;
  background:#fff;
  box-shadow:none;
}
.task-icon-action .layui-icon{
  font-size:15px;
}
.task-icon-done{
  background:#f3fbf6;
  border:1px solid #d7efe0;
  color:#16a34a;
}
.task-icon-done:hover{
  background:#ecf9f1;
  box-shadow:none;
}
.task-icon-edit{
  background:#ffffff;
  border:1px solid #e1e8f3;
  color:#475569;
}
.task-icon-edit:hover{
  background:#f8fbff;
  box-shadow:none;
}
.task-icon-delete{
  background:#fff7f7;
  border:1px solid #fee2e2;
  color:#ef4444;
}
.task-icon-delete:hover{
  background:#fff1f1;
  box-shadow:none;
}
.frontend-task-strip{
  padding:16px 16px 15px;
  border-radius:18px;
}
.frontend-task-main{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.swipe-action-area,
body[data-page="frontend-home"] .swipe-action-area{
  right:10px;
  top:10px;
  bottom:10px;
  width:60px;
}
.swipe-done-btn,
body[data-page="frontend-home"] .swipe-done-btn,
.context-menu-btn{
  width:42px;
  height:42px;
  border-radius:14px;
  box-shadow:none;
}
.swipe-done-btn,
body[data-page="frontend-home"] .swipe-done-btn{
  background:#ffffff;
  border:1px solid #d7efe0;
}
.swipe-done-btn::before,
.context-menu-btn::before{
  color:#16a34a;
  font-size:20px;
}
.context-menu-btn{
  background:#ffffff;
  border:1px solid #d7efe0;
}
.swipe-row.is-swiped .frontend-task-strip{
  transform:translateX(-60px);
}
@media (max-width: 560px){
  .task-panel{
    padding:15px;
    border-radius:20px;
  }
  .task-card,
  .frontend-task-strip{
    border-radius:16px;
  }
  .task-card::before,
  .frontend-task-strip::before{
    top:13px;
    bottom:13px;
  }
  .task-content,
  .frontend-task-content{
    font-size:14px;
  }
  .task-icon-action{
    width:32px;
    min-width:32px;
    height:32px;
    min-height:32px;
    border-radius:9px;
  }
  .swipe-action-area,
  body[data-page="frontend-home"] .swipe-action-area{
    width:54px;
    right:8px;
    top:8px;
    bottom:8px;
  }
  .swipe-done-btn,
  body[data-page="frontend-home"] .swipe-done-btn,
  .context-menu-btn{
    width:38px;
    height:38px;
    border-radius:12px;
  }
  .swipe-row.is-swiped .frontend-task-strip{
    transform:translateX(-54px);
  }
}
